Forums

Different sidebar for Pages + Posts? (4 posts)

  1. lotech
    Member
    Posted 6 years ago #

    I'm currently creating a theme based off Kubrick and I want to have a sidebar present on any posts but don't want to have a sidebar on pages.
    Thanks to a horizontal menu on the header the sidebar has become just a post archive menu so has no relevence to the pages.

    I'm sorry if this is already been answered or explained but I'm not haing much luck finding it here or via google, any help/guidence would be appreciated.

  2. intricateartist
    Member
    Posted 6 years ago #

    While you're altering the theme, in the page template (page.php) and single post template (post.php), remove the get_sidebar function.

  3. cori
    Member
    Posted 6 years ago #

    If you want it on all post webpages you actually want to include it on single.php.

    I think you'll need to add it to single.php; as I recall it's not in the single-post template in Kubrick.

  4. lotech
    Member
    Posted 6 years ago #

    perfect, I realised there was a page.php but didn't realise the post template was single.php (and the associated archive and so forth).

    Thanks for helping me on that one.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.