''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)
  • You must be logged in to reply to this topic.

Register

You will be emailed a link to set your password.

Login

Lost password?