-
AuthorPosts
-
August 1st, 2021 at 17:51 #120331
Hi,
I have set up my page with a main layout with header area and content area full width without columns:
This is perfect for almost all of my content pages. The only exception would be the blog page, where I want to have a sidebar on the right with latest entries, calendar, the usual. But when setting the blog page to “Blog-Template” or to “Two columns, sidebar right”, this has no effect. The blog page stays fullwidth with no sidebar.
On the contrary, when setting Tempera’s main layout to two columns with sidebar right:
… this applies not only to the blog page but to every page. Taking this as default an manually changing all other pages to fullwidth is no option. Too many of then and also this would not apply to some of the woocommerce pages.
So why doesn’t an individual template for the blog page override the Tempera mail layout and how can this be done?
Thanks
PhilippAugust 17th, 2021 at 16:44 #120723ZedCryout Creations mastermindHi,
WordPress handles the homepage and blog page as special sections, on which the (selected) pages’ template option are ignored and have no effect. These sections will normally use the theme’s configured general layout, like most of the site.
This behaviour can only be changed by adding functionality to the site through custom code.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.September 7th, 2021 at 15:30 #121232Hmmm,
thanks for the feedback.
I can’t imagine this is some unusual usecase, so is there any proven custom code available that would restore the right column to the blog page when the general layout set in Tempera is “no sidebars”?
Thanks
PhilippSeptember 21st, 2021 at 18:38 #121818Any tips, anyone?
Cheers
Philipp -
AuthorPosts
The topic ‘How to override main layout for blog page’ is closed to new replies.