• 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • While you’re altering the theme, in the page template (page.php) and single post template (post.php), remove the get_sidebar function.

    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.

    Thread Starter lotech

    (@lotech)

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Different sidebar for Pages Posts?’ is closed to new replies.