Forums

[resolved] Consistent sidebar contents on all pages (5 posts)

  1. moose123
    Member
    Posted 4 years ago #

    Hello,

    I want my blog to display its sidebar contents consistently on all pages. As of now, they're only showing up on my home page (my blog posts). Subsequent static pages are only showing part of the sidebar.

    I tried the solution from this topic but I am unclear about how to do it.

    My site is here and I pasted my sidebar code here.

    I'm guess it has something to do with <?php if(is_home()) {?>, or adding to it so WP knows to include all pages, not just home.

    I greatly appreciate any help.

    moose

  2. Jeremy Clark
    Moderator
    Posted 4 years ago #

    Fixed sidebar file here.
    http://wordpress.pastebin.ca/869779

  3. moose123
    Member
    Posted 4 years ago #

    jeremyclark13, it worked! thanks so much. i see that you took out <?php if(is_home()) {?>, but can you tell me what else you removed?

    thanks a ton!!

  4. Jeremy Clark
    Moderator
    Posted 4 years ago #

    Yes all I took out was the
    <? php if (is_home()) { ?>
    and a <? php } ?> that closed that tag. This only allow the code that was between the { } to only be shown on the home page.

  5. moose123
    Member
    Posted 4 years ago #

    perfect. thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic