How to override main layout for blog page

  • Author
    Posts
  • #120331

    Hi,

    I have set up my page with a main layout with header area and content area full width without columns:

    Screenshot

    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:

    Screenshot

    … 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
    Philipp

    #120723
    Zed
    Cryout Creations mastermind

    Hi,

    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.
    #121232

    Hmmm,

    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
    Philipp

    #121818

    Any tips, anyone?

    Cheers
    Philipp

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘How to override main layout for blog page’ is closed to new replies.