wp_nav_menu

    0

    3

    Al Bor

    navnav_menumenu•••

    The code creates a drop-down menu using the WordPress nav_menu() function. The first parameter is the container in which the menu will be displayed, in this case a div. The second parameter is the container_class, which is set to tt-collapse-content. This class will make the menu dropdown appear as a collapsed toolbar at the bottom of the page. The third parameter is the menu_class, which is set to tt-list. This class will make the menu act like a list of posts. The final parameter is the theme_location, which is set to footer_menu_categories. This will ensure that the menu is displayed in the footer of the site.

    Shortcut: nav

    <?php
      wp_nav_menu( array(
        'container'       => 'div',
        'container_class' => 'content_class',
        'menu_class'      => 'menu_class',
        'theme_location'  => 'footer_menu',
      ));
    ?>
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.