Skip to content

Instantly share code, notes, and snippets.

@tanjimahmmed
Last active February 23, 2020 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanjimahmmed/4117a6d82f46d454f9d9e0ee11d42d03 to your computer and use it in GitHub Desktop.
Save tanjimahmmed/4117a6d82f46d454f9d9e0ee11d42d03 to your computer and use it in GitHub Desktop.
navigation area
<a class="header__toggle-menu" href="#0" title="Menu"><span>
<?php _e("Menu", 'philosophy'); ?></span>
</a>
<nav class="header__nav-wrap">
<h2 class="header__nav-heading h6">
<?php _e('Site Navigation', 'philosophy') ?>
</h2>
<?php
$philosophy_menu = wp_nav_menu( array (
'theme_location' => 'topmenu',
'menu_id' => 'topmenu',
'menu_class' => 'header__nav',
'echo' => false,
) );
$philosophy_menu = str_replace("menu-item-has-children", "menu-item-has-children has-children", $philosophy_menu);
echo $philosophy_menu;
?>
<a href="#0" title="Close Menu" class="header__overlay-close close-mobile-menu">
<?php _e("Close", 'philosophy') ?>
</a>
</nav> <!-- end header__nav-wrap -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment