[Support request] How do I hide entire header section globally?

Home Forums Support [Support request] How do I hide entire header section globally?

Home Forums Support How do I hide entire header section globally?

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1345312
    Aaron

    Hi,

    How can I remove the header section globally from my website?

    I don’t want to have to use the disable elements on every single page, especially when I add new pages now and again. I can’t hide it with css, because you’ve already got some !important css being applied in GeneratePress’s css.

    The reason I want to hide it is so I can make a header in Elementor as I have more freedoms with Elementor. Currently Elementors overrides it but it seems to load a tiny bit after GeneratePress’ loads.

    Thanks!

    #1345405
    David
    Staff
    Customer Support

    Hi there,

    if you’re using Elementors Header Template builder then this removes the GP header entirely.

    But disabling the GP Header site wide can be achieved using the Layout Element:

    https://docs.generatepress.com/article/layout-element-overview/

    Out of interest do you have an example of the Site Header you’re trying to create?

    #1345819
    Aaron

    Hi David,

    It’s not hiding the GP header at all… I can see it under the header and if I move the header a little I can see it lots. I’ve had to make the header bigger than it should be just to hide it at the moment.

    We’ve actually wanted to make lots of site headers in the past and we’ve always had to make sacrifices because GP headers are pretty limited.

    Is there a way I can drop you some links privately to some of the sites where we have headers (and what we’ve done to get them more like we have wanted them?)

    #1346181
    David
    Staff
    Customer Support

    Can you provide a link to the site where i can see the issue?
    You can edit your original topic and use the Site URL field to share the link privately.

    #1350763
    Aaron

    Hi David,

    I provided a video instead as I’ve loaded a few different different sites. Another thing we often do is a “split copyright” so we have the copyright for example in the bottom left of the screen and privacy policy/terms and conditions in the bottom right.

    #1350778
    Leo
    Staff
    Customer Support

    Can you please link us to the page in question? Videos don’t really help for issues like this.

    Another thing we often do is a “split copyright” so we have the copyright for example in the bottom left of the screen and privacy policy/terms and conditions in the bottom right.

    Try the footer bar widget area:
    https://docs.generatepress.com/article/footer-bar-widget-area/

    #1350880
    Aaron

    @Lio,

    How do they not help, they show you multiple links (look at top of screen) and explain whats what with them. (I can only provide 1 link in the edit, not 6 different websites)

    > Try the footer bar widget area:

    Doesn’t help because the sites already have footer widgets. I need split footer copyright + footer widgets.

    #1350887
    Leo
    Staff
    Customer Support

    We know for sure that the option David suggested absolutely works to remove GP’s header globally.

    Can you edit the original topic and remove the YouTube link and add it a site URL where the issue can be seen?

    #1353603
    Aaron

    Hi Leo,

    I already said: (I can only provide 1 link in the edit, not 6 different websites)

    That’s why a video is better. (Other than the obvious me showing you exactly what we are trying to acheive)

    #1353660
    David
    Staff
    Customer Support

    I am looking at the first site in your video.
    I see a GP Site Header followed by a page fully constructed in Elementor.

    What exactly is the issue here ? I cannot see an Elementor Header as well as the GP header being displayed.

    #1354447
    Aaron

    That’s pretty weird… It was visible in the HTML, I added some CSS to hide it but… it’s gone now. I could see 2 the other day for ages…

    The footer issue on the website starting with mac….. is still there.

    #1354539
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    I’m also seeing a standard GeneratePress site header with our navigation and sticky navigation on the first site. Are you wanting to remove this header as it’s seen right now and replace it with an Elementor header?

    As for the footer widget issue, can you make sure the Footer Widgets metabox on that page (or through a Layout Element) isn’t overriding the option in the Customizer? Those two methods (on-page metabox and Layout Element) will both override the Customizer.

    Let me know 🙂

    #1355779
    Aaron

    Hi Tom,

    So earlier I couldn’t see that header, yet I can again now… nothing has been changed. Yes we want to remove that header globally because we’ve replaced it with an Elementor one due to the limitations of GeneratePress’ header.

    As for the footer issue, Yes! It was the Footer Widgets option. I am not sure why every page is by default choosing 4 widgets.

    Is there a way to force update all pages/posts meta to just 3 or better yet, to Default?

    #1355815
    Tom
    Lead Developer
    Lead Developer

    You could try this:

    add_filter( 'generate_footer_widgets', function( $widgets ) {
        if ( '4' == $widgets ) {
             $widgets = '3';
        }
    
        return $widgets;
    } );

    As for the header, using a Layout Element to disable the site header will work. It uses a function to completely remove the GP HTML.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.