• Hi,

    Sorry, if this has been brought up before, but I am using my WP as a website in which one of the pages serves as the blog. For this page only I would like the sidebar to be different. How can I go about fixing this? I am using the April Rose template (which I didn’t get from WP) and my site is still in preview so I don’t believe anyone would be able to see it yet.

    Thanks,
    Dee

Viewing 3 replies - 1 through 3 (of 3 total)
  • You could use conditional tags :
    is_page(‘2’) Where 2 is the page ID.
    is_page(‘about’) Where about is the page slug

    put this in sidebar.php:

    <?php (is_page('2')) { ?>
    sidebar content for specific page
    <?php } else { ?>
    default sidebar code
    <?php } ?>

    You’ll have to edit the theme and add an additional sidebar. I’m assuming you have changed your reading preferences to show a Static Page on the homepage in place of your recent posts, so your blog page should be using the index.php template. Here’s a guide on adding sidebars:
    Adding Extra Sidebar to your WordPress Theme

    Thread Starter deesavoy

    (@deesavoy)

    wow guys, thanks so much for the quick help. I’m going to look through the tutorial, but I also have a question about the conditional tags. I’m a real newbie. Where would I put these tags and at what spot in sidebar would I put code?

    Thanks again for all the help!

    All the best,
    Dee

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘help with sidebar’ is closed to new replies.