Skip to content

Instantly share code, notes, and snippets.

@davidkryzaniak
Created July 15, 2014 19:42
Show Gist options
  • Save davidkryzaniak/49779e72154cc5e94169 to your computer and use it in GitHub Desktop.
Save davidkryzaniak/49779e72154cc5e94169 to your computer and use it in GitHub Desktop.
function custom_top_navigation()
{ ?>
<h3 class="assistive-text"><?php _e( 'Menu', 'getnoticed' ); ?></h3>
<div class="assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'getnoticed' ); ?>"><?php _e( 'Skip to content', 'getnoticed' ); ?></a></div>
<div id="primary-menu">!
<?php wp_nav_menu( array( 'theme_location' => 'primary', 'container' => false, 'fallback_cb' => false, 'depth' => 2 ) ); ?>
</div>
<?php getnoticed_social( array( 'class' => 'social', 'theme_location' => 'header' ) ); ?>
<div class="mobile_actions">
<a class="mobile_menu" href="#menu">menu</a>
<div id="mobile_search"></div>
</div>
<?php }
add_action( 'getnoticed_top_navigation', 'custom_top_navigation',11);
function remove_default_actions() {
remove_action( 'getnoticed_top_navigation', 'getnoticed_top_navigation',11);
}
add_action('after_setup_theme','remove_default_actions',11);
@abuckman
Copy link

Remove ",11" on line 19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment