[Support request] main nav always open

Home Forums Support [Support request] main nav always open

Home Forums Support main nav always open

  • This topic has 3 replies, 2 voices, and was last updated 7 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #306223
    Chad Biggs

    How can I keep my mobile main nav open?

    #306307
    Tom
    Lead Developer
    Lead Developer

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

    #306350
    Chad Biggs

    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?

    #306437
    Tom
    Lead Developer
    Lead Developer

    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 🙂

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