Site logo

Archived topic

main nav always open

3 replies · Started by Chad Biggs on April 15, 2017

Viewing posts 1–4 of 4

How can I keep my mobile main nav open?

Would you still want to be able to open/close it, or do you just want it to be open all the time?

Open at all times... Something else I've noticed about the main nav and the secondary, is that the rule says text-align:left but it aligns center when the mobile menus are horizontal. Do you know what would cause this?

First, add this CSS:

@media (max-width: 768px) {
    .main-navigation .menu-toggle {
        display: none;
    }
}

Then, add this PHP:

add_filter( 'generate_navigation_class','tu_navigation_classes' );
function tu_navigation_classes( $classes ) {
	$classes[] = 'toggled';
	return $classes;
}

That should do it :)

This archived topic is closed to new replies.