Skip to content

Instantly share code, notes, and snippets.

@pengwynn
Created November 2, 2009 03:50
Show Gist options
  • Save pengwynn/223921 to your computer and use it in GitHub Desktop.
Save pengwynn/223921 to your computer and use it in GitHub Desktop.
// change thematic's default nav to be category based instead of page based
// Create #access
// In the header div
function mytheme_access() { ?>
<div id="access">
<div class="skip-link"><a href="#content" title="<?php _e('Skip navigation to the content', 'thematic'); ?>"><?php _e('Skip to content', 'thematic'); ?></a></div>
<!-- list categories instead, see args here: http://codex.wordpress.org/Template_Tags/wp_list_categories -->
<?php wp_list_categories('orderby=name&show_count=1&exclude=10'); ?>
</div><!-- #access -->
<?php }
add_action('thematic_header','mytheme_access',9);
// Remove default Thematic actions
function remove_thematic_actions() {
remove_action('thematic_header', 'thematic_access', 9);
}
add_action('init','remove_thematic_actions');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment