Site logo

Archived topic

Issue disabling header and main menu

10 replies · Started by Fernando on December 26, 2017

Viewing posts 1–11 of 11

Dear support
I am working in a 'one page' design and I've disabled the menu and header on it. The problem I facing is when I see the page in mobile view, menu and logo show up. Is this a expected behavior? How I can disable them no matter the viewport since I'll add them using Elementor?
Looking forward to your comments
Best regards

Hi there,

Can you link me to the page in question?

This is http://bit.ly/2E3hftA
Reduce the viewport in order to see header and menu how show up.
My intention is that they are placed them using Elementor Pro and not with GP
Thanks

yes, I want that but removing the site logo as well and indicating one specific page.
Is that possible?

BTW, the filter works but it does not when page has a mobile view. I mean, when I see in a desktop view, the menu is gone, but when I reduce the window the menu appears at the top, along with the logo.

Yes, that works but I'd like to disable only in this page, not in the whole site.
Is there any way without appeal to a CSS solution?
Regards

Hi there,

Give this PHP a try:

add_filter( 'option_generate_menu_plus_settings', 'tu_disable_mobile_header' );
function tu_disable_mobile_header( $options ) {
    if ( is_front_page() ) {
        $options['mobile_header'] = 'disable';
    }

    return $options;
}

Hi Tom and Leo. That works!
Excellent support as always
Have a excellent happy new year!
Best regards

Glad we could help!

You as well :)

This archived topic is closed to new replies.