[Resolved] Sidebar Missing
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: http://www.stepuptojoy.com
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.
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; ?>
<div class="sd_right"> <div class="text_padding">
And you should delete everything between
class="datea">_E_</span>','</li>'); ?> <?php endwhile; endif; ?> </ul>
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 🙂
- The topic ‘[Resolved] Sidebar Missing’ is closed to new replies.