Created
May 9, 2017 04:00
-
-
Save anonymous/227bcda5ab2c9bc29c7dccdf4eae739a to your computer and use it in GitHub Desktop.
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
function education_hub_add_primary_navigation() { | |
?> | |
<div id="main-nav" class="clear-fix"> | |
<div class="container"> | |
<nav id="site-navigation" class="main-navigation" role="navigation"> | |
<button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><i class="fa fa-bars"></i><?php esc_html_e( 'Menu', 'education-hub' ); ?></button> | |
<div class="wrap-menu-content"> | |
<?php | |
wp_nav_menu( | |
array( | |
'theme_location' => 'primary', | |
'menu_id' => 'primary-menu', | |
'fallback_cb' => 'education_hub_primary_menu_fallback', | |
) | |
); | |
?> | |
</div><!-- .menu-content --> | |
</nav><!-- #site-navigation --> | |
</div> <!-- .container --> | |
</div> <!-- #main-nav --> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment