Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

''Adding a menu toggle button on small screens'' in WordPress

Home Forums Older releases 1.0.x ''Adding a menu toggle button on small screens'' in WordPress

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3044
    borak100
    Participant

    Tutorial ”Adding a menu toggle button on small screens” not working with:

    <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'main-menu', 'menu_class' => 'sm sm-mint' ) ); ?>

    in WordPress (header.php file)???

    In same header.php file with code below working fine:

    <ul id="main-menu" class="sm sm-mint">
                  <li><a href="index.php">Home</a></li>
    	      <li><a href="#">About us</a>
                    <ul>
                      <li><a href="aboutus1.php">About us 1</a></li>
                      <li><a href="aboutus2.php">About us 2</a></li>
                    </ul>
                  </li>
                  <li><a href="news.php">News</a></li>
                  <li><a href="contakt.php">Contact</a></li>
     </ul>
    #3054
    admin
    Keymaster

    Please also pass the 'container' => 'false' parameter and it should work – e.g.:

    <?php wp_nav_menu( array( 'theme_location' => 'primary', 'container' => 'false', 'menu_id' => 'main-menu', 'menu_class' => 'sm sm-mint' ) ); ?>
    #3064
    borak100
    Participant

    Working fine.
    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘1.0.x’ is closed to new topics and replies.