Skip to content

Instantly share code, notes, and snippets.

@congthien
Created April 25, 2017 15:08
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 congthien/d9a9d8274485ce6da44161edae359715 to your computer and use it in GitHub Desktop.
Save congthien/d9a9d8274485ce6da44161edae359715 to your computer and use it in GitHub Desktop.
change menu close button
function onepress_site_header(){
?>
<header id="masthead" class="site-header" role="banner">
<div class="container">
<div class="site-branding">
<?php
onepress_site_logo();
?>
</div>
<!-- .site-branding -->
<div class="header-right-wrapper">
<a href="#0" id="nav-toggle"><?php _e('Menu', 'onepress'); ?><span></span></a>
<nav id="site-navigation" class="main-navigation" role="navigation">
<ul class="onepress-menu">
<?php wp_nav_menu(array('theme_location' => 'primary', 'container' => '', 'items_wrap' => '%3$s')); ?>
</ul>
</nav>
<!-- #site-navigation -->
</div>
</div>
</header><!-- #masthead -->
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment