Support » Fixing WordPress » Sidebar Missing

  • Resolved thewritersmanifesto



    I installed a new blog for a friend the other day and am having trouble to display the sidebar while using the navigational links along the top. The blog is designed to represent a static site. Therefore all the top nav links are done as pages and the ones in the footer are individual posts within the same named categories.

    However, when I click on any links along the top the sidebar doesn’t show (I’m using widgets)but when clicking on the links in the footer (categories) the sidebar shows.

    I checked on all the theme files and they all contain the get sidebar php code.

    I’m lost as to why I can’t see the sidebar and wonder whether there is some code that tweaks this for good?

    The site is:


Viewing 5 replies - 1 through 5 (of 5 total)
  • I think that the person who designed the theme did this on purpose. Some themes don’t display sidebar on pages, only on posts. The easiest solution is use another theme, but you can change the way the theme displays pages,
    presentation -> Theme editor
    look at the post.php, copy where and how it calls the sidebar,
    paste that code to page.php
    Pay attention that what you call “Footer”, the author called sidebar, what you call “sidebar”, it’s the “sd_right” on the code.

    Thanks crazy_jane,

    I managed to get it so that all the post meta is showing now in the pages as a sidebar, but I still can’t see posts and categories. I copied the whole code starting from sd_right into the page.php but I think something is still missing.

    Could you help please.

    I download the theme and looking at the php, you should add to the single.php

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('right_sidebar') ) : ?>
    	<?php endif; ?>

    right below

    <div class="sd_right">
    	<div class="text_padding">

    And you should delete everything between

    <h2>Post Meta</h2>


    class="datea">_E_</span>','</li>'); ?>
            <?php endwhile; endif; ?>

    because that’s what is causing that meta to appear, instead of your right sidebar.


    Thank you, that worked a treat. I actually had to add it to page.php but I think that was a typo on your behalf.
    I appreciate your help 🙂

    I was thinking about single.php because when I access a single post, I still see the meta. So maybe you should add it to single.php and page.php.
    I’m glad that I could help you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sidebar Missing’ is closed to new replies.