Site logo

Archived topic

Generate Section Sidebars while excluding the home page

30 replies · Started by David on June 30, 2017

Viewing posts 16–30 of 31

Page Header is still not appearing.

Any chance you can send me temporary admin login details?

Credential sent to email. Thanks!

Hmm very strange, something is preventing the Page Header from being hooked in.

Sections and Page Header work together - this page is an example of that: https://generatepress.com/premium/

Any custom functions? Any hooks removed from templates? Specifically the generate_after_header hook?

Does this happen on just this one page? Have you tried on another page? Tried on a different website?

Any custom functions?
After Footer Widgets
[cwa id='after-footer-widgets']

Any hooks removed from templates? No hooks removed.

Specifically the generate_after_header hook? None.

Does this happen on just this one page? This is happening site wide.

Have you tried on another page? I did create a test post and another page.

Tried on a different website? Not yet. I will try on a local server.

This is the snippet for the Page Header:

add_filter( 'generate_sections_sidebars','lh_generate_sections_sidebars' );
function lh_generate_sections_sidebars() {
    if ( is_front_page() ) {
        return false;
    }
    
    return true;
}

I tested this on another install and I am getting the same result. Here is what I discovered when I turned off Use Section. The Page Header appears. I think this get us closer to the issue.

I tried this several times now and it is very consistent. Sliding "Use Section" on causes the Page Header to disappear.

Any recommendations?

Thanks!

Checking back any ideas as to what I need to do next. I have exhausted the list of items you provided. Thanks!

Here's what I'm experiencing: https://www.screencast.com/t/0g7MZbGu5mpX

Having Sections shouldn't have any say whether the page header content is displayed or not.

Are you following these same steps?

Another discovery on another test install.

Page Header Location
Above Content Area - (Page Header appears)
Inside Content Area - (Page Header doesn't appear)

Single Post Header Location
Above Content Area - (Page Header appears)
Inside Content Area - (Page Header doesn't appear)

Ah yes, that makes sense. Sections takes over the content of the page and removes those hooks.

In GP 1.4 beta, there's a filter we can use to check if Sections are active and move the page header above the content area.

In fact, I should probably add this to core - will do so for 1.4 beta I'm hoping to release today.

That is great. In this case I want the Page Header to appear Inside Content Area for Posts.

Looking forward to the update. Thanks Tom.

Just made the change to the next beta release :)

Sweet. I can't wait to put it into action. Btw, what is the filter? I would like to put it into use.

This archived topic is closed to new replies.