Last active
January 1, 2016 02:09
-
-
Save scottnix/8077123 to your computer and use it in GitHub Desktop.
Thematic Theme remove #access menu
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
// 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