Change side bar on post page (2 posts)

  1. iM1
    Posted 8 years ago #

    Can someone tell me how I can get the side bar to change to a different one (that a make) on the post pages from the ones on the main pages?

  2. Adam Brown
    Posted 8 years ago #

    You want conditional tags.

    In sidebar.php, something like this:

    <?php if (is_single()){ ?>
    ... put what you want to display on single post pages ...
    <?php }else{ ?>
    ... put what you want on the rest of your blog
    <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic