Tagged: x
-
AuthorPosts
-
August 9, 2016 at 3:57 am #1123397
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…
August 9, 2016 at 5:07 am #1123453Hello 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.
August 9, 2016 at 5:33 am #1123469Thanks 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
August 9, 2016 at 7:31 am #1123581Hi 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
August 9, 2016 at 8:54 am #1123693Thanks, 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 theif 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.phpAugust 9, 2016 at 9:54 am #1123799Hi There,
Thanks for the input.
Let us know if you need help with anything else.
Joao
-
AuthorPosts