+ Reply to Thread
Results 1 to 6 of 6

Thread: Sidebar disappears if there are widgets?

  1. #1
    Join Date
    Nov 2009
    Posts
    3

    Smile Sidebar disappears if there are widgets?

    Hello. I'm using the Cutline 3 column split theme and WP 2.8.5. Everytime I try to add widgets on any of the left or right sidebar the other things (search, recent entries, etc.) disappears. Tried this on 2.8.6, same thing. How do I get around this please? Thank you very much.

  2. #2
    Join Date
    Feb 2009
    Posts
    605

    Default

    That's the default way of coding sidebar files to support widgets but here's a workaround. Open sidebar.php and find this line:

    PHP Code:
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?>
    Move it downwards until right before this line:

    PHP Code:
    <?php endif; ?>
    This will make your widgets appear AFTER the search, recent entries, and Flickr stream sidebar items.

    If you want your widgets to appear BEFORE those three, do the opposite. Move up <?php endif; ?> until it's right after the first line of code.

    Hope that makes sense to you.




    Quote Originally Posted by releaser View Post
    Hello. I'm using the Cutline 3 column split theme and WP 2.8.5. Everytime I try to add widgets on any of the left or right sidebar the other things (search, recent entries, etc.) disappears. Tried this on 2.8.6, same thing. How do I get around this please? Thank you very much.

  3. #3
    Join Date
    Nov 2009
    Posts
    3

    Default

    Thank you! The workaround works great in r_sidebar.php. I have a few more questions, though.

    Is there a way, on the r_sidebar.php, to position widgets in between say, search and recent entries?

    On the l_sidebar.php, only the widgets added in wordpress will appear and anything else (widgets coded in the php file like the search, recent entries, etc.) still disappear. Is there a different way around that?

  4. #4
    Join Date
    Feb 2009
    Posts
    605

    Default

    r_sidebar: unless you're willing to make another widget area that's really it. You should read more about widgetizing themes on the WordPress site.

    l_sidebar: do the same thing I mentioned earlier.





    Quote Originally Posted by releaser View Post
    Thank you! The workaround works great in r_sidebar.php. I have a few more questions, though.

    Is there a way, on the r_sidebar.php, to position widgets in between say, search and recent entries?

    On the l_sidebar.php, only the widgets added in wordpress will appear and anything else (widgets coded in the php file like the search, recent entries, etc.) still disappear. Is there a different way around that?

  5. #5
    Join Date
    Nov 2009
    Posts
    3

    Smile

    Thanks for your help.

  6. #6
    Join Date
    Jan 2010
    Posts
    1

    Default

    Quote Originally Posted by admin View Post
    That's the default way of coding sidebar files to support widgets but here's a workaround. Open sidebar.php and find this line:

    PHP Code:
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?>
    Move it downwards until right before this line:

    PHP Code:
    <?php endif; ?>
    This will make your widgets appear AFTER the search, recent entries, and Flickr stream sidebar items.

    If you want your widgets to appear BEFORE those three, do the opposite. Move up <?php endif; ?> until it's right after the first line of code.

    Hope that makes sense to you.
    thx really help

+ Reply to Thread

Similar Threads

  1. Widgets not working
    By evanpatterson in forum Community Exchange
    Replies: 2
    Last Post: 06-15-2009, 11:50 PM
  2. Sidebar & widgets Fonts etc.
    By Robert Young in forum Sidebar
    Replies: 1
    Last Post: 05-04-2009, 12:43 PM
  3. Child Page content disappears
    By jgjones in forum Bugs & Fixes
    Replies: 2
    Last Post: 04-13-2009, 08:00 AM
  4. Replies: 1
    Last Post: 02-24-2009, 02:14 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts