Site logo

Archived topic

Function to remove "menu-toggle" inside generate_inside_navigation

3 replies · Started by Philipp on March 28, 2021

Viewing posts 1–4 of 4

Hey there,

is it possible to remove the "menu-toggle" button that is inside the generate_inside_navigation() function with PHP, I don't look for just hiding it with CSS.

Thank you :)

Mh that's a bummer. Another route I could go would be to remove the whole

#site-navigation div from the #masthead but that does unfortunately nothing:

add_action( 'after_setup_theme','tu_remove_sitenav' );
function tu_remove_sitenav() {
	remove_action( 'generate_after_header_content', 'generate_add_navigation_float_right', 7 );
}

Any hints?

Hi there,

can you explain what it is your trying to achieve ? Are you just wanting the desktop menu displayed on all devices?

As per your function it should work as long as you have the navigation set to Float Right.

This archived topic is closed to new replies.