WordPress.org

Forums

Adding a sidebar to each page (2 posts)

  1. OTFaithful
    Member
    Posted 2 years ago #

    Hi guys, my website is

    http://www.oldtraffordfaithful.com

    I'd like to add the sidebar to all my pages. When you click on the page 'Old Trafford Faithful' or 'Write For Us/Contact Us' the sidebar disappears.
    Can anyone help?

  2. Chris Fritz
    Member
    Posted 2 years ago #

    It looks like the sidebar isn't being called on individual pages. Look at your index.php and single.php and they should have this line (or something similar) near the bottom:

    <?php get_sidebar(); ?>

    That'll probably appear right before this line:

    <?php get_footer(); ?>

    Those call the sidebar template and footer templates and it looks like on your page.php, there's probably no line to call the sidebar. You probably just need to add that line and you'll be good!

Topic Closed

This topic has been closed to new replies.

About this Topic