• http://www.amandamarie.info/

    I want to completely hide the sidebar for all of the pages (that is, everything but the “blog” section, or the posts, of this website). I hopefully would like to include the background color of the sidebar as well, that is make the rap image dependent on it being a post.

    How exactly do I use the is_page() test in the sidebar.php file to do this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter rla128

    (@rla128)

    Any help?

    Just delete/comment out the call for the sidebar in the page template.

    Thread Starter rla128

    (@rla128)

    I want it to show up in everything else though, buddy… actually, I want to be able to edit what exactly shows up on what pages.

    Wish it was that simple.

    Well, if you can explain what you’d like maybe it will become simple.
    When you said “pages” I thought about Pages cretaed by WP. Was I wrong? Pages are using the page.php template, posts and archive views are using different templates. Believe me, I made that theme 🙂

    Thread Starter rla128

    (@rla128)

    I do suppose I could do that if I wanted to get rid of the sidbar altogether. Along those lines, can I get rid of the background image on those pages, too?

    I suppose I’m also asking how to use conditions to make only certain parts of the sidebar appear for certain pages.

    Hmmm.
    To get rid of the (brown) bg image of the sidebar for Pages – you will have to save the single.php as page.php and edit it accordingly.

    Otherwise you can use Conditional_Tags to display selectively stuff, e.g.
    if (is_page(’32’)) –> show this

    Thread Starter rla128

    (@rla128)

    Yeah, I couldn’t figure out how to get the conditional stuff to work… not too much actual knowledge of the rules of php…

    I was sort of hoping for some generalized help on that.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Hiding sidebar on pages.’ is closed to new replies.