Archived topic
Layout Settings not working on Blog Page
7 replies · Started by Patrick on July 9, 2018
The Layout settings are not working for the Blog page on this site:
https://learnavprogramming.com/courses/blog/
They are currently set to:
Sidebars (none), Footer Widgets (0), Disable Elements (Secondary Menu), Page Header (Hero)
The same settings work fine on the blog posts and Main page.
Any ideas?
Hi Patrick,
WordPress doesn't accept input from meta boxes on the blog page. You can disable the sidebars for the blog page in Customiser > Layout > Sidebars.
Are you using sidebars, footer widgets, secondary menu anywhere else on the site? As they can all be disabled in the Customiser. If you are then we can throw a little bit of code at it ( or wait for GP 1.7 which is in Beta where this is super simple ).
Thanks for the fast reply!
By customiser do you mean this?:
https://drive.google.com/file/d/1dXKb4olvMc6UWxRiVUwruJFZE7Rs5rQA/view?usp=sharing
Result:
https://drive.google.com/file/d/1uT8EGQFSXxwfW0jXQ3vW4h5YTIiRHPb8/view?usp=sharing
I am not using sidebars anywhere right now.
Would be nice to have the option though (it is an online course sit, so the course lessons might benefit from sidebars).
Hi Patrick,
If you go WP Dashboard > Appearance > Customiser.
Here you can make global customisations, that can be overwritten at a page level by the Layout Module you are currently using.
Thanks.
So I used Appearance > Customize to disable the sidebars, and footer widgets globally.
But why do the Layout controls (like disable secondary navigation) of the Post Page not work?
I have different menus for different pages, so that cannot be handled globally.
The Layout module is a meta box, and unfortunately they won't work on Blog / Archive pages, as they don't have a page ID that can be queried.
The good news is, GPP 1.7 which is currently in Beta, introduces a new module called Elements, one of those Elements is the Layout module. This will come with Display Rules, so it will be super easy to assign different settings for individual posts / pages / templates (blog / archives etc).
Some more info here:
Sounds good.
Looking forward to 1.7!
Thanks for the help :-)
You're welcome! Have an explore of the Customiser, note that under Layout there is a specific Blog section that adds lots of functions, its also where Featured Image settings are controlled globally :)