Skip to content

dankerizer/wp_foundation_navwalker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

wp_foundation_navwalker

Cara Penggunaan

require_once( trailingslashit( get_template_directory() ) . 'libs/wp_foundation_navwalker.php' );

Jangan lupa register menu nya

    register_nav_menu('primary', __('Primary Menu', TEXTDOMAIN));

Kemudian di header bisa anda buat seperti ini

 <div class="top-bar-left">
            <?php
            $args = array(
                'theme_location' => 'primary',
                'echo' => true,
                'depth' => 3,
                'container' => false,
                'items_wrap'     => '<ul id="%1$s" class="%2$s desktop-menu" data-dropdown-menu>%3$s</ul>',
                'menu_class' => 'menu dropdown',
                'fallback_cb'       => 'wp_foundation_navwalker::fallback',
                'walker'            => new wp_foundation_navwalker()
            );
            wp_nav_menu( $args);?>

        </div>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages