Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1123397

    isakfyksen
    Participant

    Hi, I want to add a sidebar to only the posts page and single post pages, how do I go about doing so?

    I’ve created a custom sidebar, set it to show up on the blog and set the template for the blog to be ‘layout – content left, sidebar right’

    However, nothing shows up…

    http://brandhost.no/~wav/info/nyheter

    #1123453

    Lely
    Moderator

    Hello There,

    To achieve sidebar on Blog page and single post page, please go to Appearance > Customize > Layout and Design >Content Layout : Sidebar Left, Content Right or Content Left, Sidebar Right. Then go to Appearance > Widgets : Add widget to Main Sidebar.

    Hope this helps.

    #1123469

    isakfyksen
    Participant

    Thanks for quick reply 🙂

    I know I can do that, but that would add a sidebar for all pages on the site, i only want them for the posts page and single posts

    #1123581

    Joao
    Moderator

    Hi Therem

    Follow what Lely recommended you, than on the pages you don´t want a side bar, you click Edit Page on your WordPress top Admin Bar and once you are in the WordPress Backend Editor of each of your pages you need to go to Page Attributes > Page templates and select Blank, No Container, Header, Footer

    Please see image attached.

    You need to do that to every page you don´t want a sidebar.

    Hope it helps

    Joao

    #1123693

    isakfyksen
    Participant

    Thanks, works fine now 🙂

    I’ll just mention it in case someone searches for this topic at a later point:

    I did have to make a copy of framework/views/renew/_landmark-header.php in my child theme, and remove the if statement that eliminates the title bar for the template I’m now using, in order to keep it.

    e.g. I removed the line <?php if ( ! x_is_blank( 1 ) && ! x_is_blank( 2 ) && ! x_is_blank( 4 ) && ! x_is_blank( 5 ) ) : ?> and its corresponding <?php endif; ?> from _landmark-header.php

    #1123799

    Joao
    Moderator

    Hi There,

    Thanks for the input.

    Let us know if you need help with anything else.

    Joao