Search code examples
csswordpresstwitter-bootstraptwitter-bootstrap-3megamenu

How to convert yamm3 into wordpress


I am using bootstrap 3.2 in my wordpress project. I want to create a megamenu in bootstrap. I have found YAMM 3 has this functionality. But this is in HTML. Can any one tell me how can i integrate it in my wordpress project?


Solution

  • did you try use this nav walker? https://github.com/macdonaldr93/yamm-nav-walker

    so your code should look like this

    <?php
        wp_nav_menu( array(
            'menu'              => 'primary',
            'theme_location'    => 'primary',
            'depth'             => 4,
            'container'         => 'div',
            'container_class'   => 'collapse navbar-collapse',
            'container_id'      => 'bs-example-navbar-collapse-1',
            'menu_class'        => 'nav navbar-nav yamm',
            'fallback_cb'       => 'Yamm_Nav_Walker_menu_fallback',
            'walker'            => new Yamm_Nav_Walker())
        );
    ?>