Skip to content

Instantly share code, notes, and snippets.

@scottnix
Last active January 1, 2016 02:09
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 scottnix/8077123 to your computer and use it in GitHub Desktop.
Save scottnix/8077123 to your computer and use it in GitHub Desktop.
Thematic Theme remove #access menu
// reference http://thematictheme.com/forums/topic/removing-thematic_access-only-on-the-front-page/
// remove access from front page and home (usually same page)
function childtheme_override_access() {
if ( !is_front_page() || !is_home() ) { ?>
<div id="access">
<div class="skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip navigation to the content', 'thematic' ); ?>"><?php _e('Skip to content', 'thematic'); ?></a></div><!-- .skip-link -->
<?php
if ( ( function_exists("has_nav_menu") ) && ( has_nav_menu( apply_filters('thematic_primary_menu_id', 'primary-menu') ) ) ) {
echo wp_nav_menu(thematic_nav_menu_args());
} else {
echo thematic_add_menuclass(wp_page_menu(thematic_page_menu_args()));
}
?>
</div><!-- #access -->
<?php }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment