-
-
Save mirzap/4046020 to your computer and use it in GitHub Desktop.
WordPress Walker for ZURB's Foundation Top Bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foundation-menu.php and foundation-nav-walker.php should be included in the WordPress functions.php file. | |
The code in foundation-top-bar.php should be added below the body tag in header.php | |
Setup a menu in WordPress admin under Appearance > Menus | |
Use the section class on a menu item to create a menu section title | |
Foundation Top Bar Doc: http://foundation.zurb.com/docs/navigation.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="top-bar-container fixed contain-to-grid"> | |
<nav class="top-bar"> | |
<ul> | |
<li class="name"> | |
<h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1> | |
</li> | |
<li class="toggle-topbar"><a href="#"></a></li> | |
</ul> | |
<section> | |
<?php foundation_top_bar_l(); ?> | |
<?php foundation_top_bar_r(); ?> | |
</section> | |
</nav> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome, this is precisely what I needed great job!!