Support » Fixing WordPress » My side bar is not showing in my presentation page.

  • Hello,
    My right side bar is not showing at all on the presentation menu, though the are some default right side bar when looking at the blog it self.

    my blog is:

    Can someone guide me whet I need to do? I lloked at the help and tryied different solutions, non of them worked.

    I have this part in my index.php file/ maye that means something:

    $current_page = $post->ID; // Hack to prevent the no sidebar error

    can someone also tell me what this part means?


Viewing 5 replies - 1 through 5 (of 5 total)
  • That code simply checks to see if the current page is for a single post as indicated by the post’s ID number, and if so it includes the file called sidebar-right.php.

    It also means the Theme developer did not “register” the right sidebar correctly for it to show up under your Presentation menu ( I assume you mean so that you can put widgets in it?)
    EDIT: (sorry I mispoke so corrected here)

    If you don’t need to add widgets then registering your sidebar(s) is not important – but if you want your sidebar to show up on all pages that use your index.php file then remove the line that checks if the current_page = $post->ID

    I want to add widgets…so it seems my sidebars are not registered properly.

    here is the relevant piece of code for that:

    if ( function_exists(‘register_sidebars’) )
    register_sidebars(2, array(
    ‘before_widget’ => ‘<!–sidebox start –><div id=”%1$s” class=”dbx-box %2$s”>’,
    ‘after_widget’ => ‘</div></div><!–sidebox end –>’,
    ‘before_title’ => ‘<h3 class=”dbx-handle”>’,
    ‘after_title’ => ‘</h3><div class=”dbx-content”>’,

    as I said, on my presentation menu the 1nd side bar doesn’t appear. but it seems to me from what I read that this is the way it suppose to be registered. am I wrong?


    Anybody can might help with this problem?


    in 2.5, the widget presentation area doesnt show all sidebars at once. theres a dropdown menu to choose your sidebars and add widgets

    I know that…but when I press the drop down menu I have only one option which is “sidebar 1”. so I’m still looking for that solution.


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘My side bar is not showing in my presentation page.’ is closed to new replies.