Is there a way to make a Category a Navigation button?
like this:
HOME | ABOUT | CATEGORY 1
Is there a way to make a Category a Navigation button?
like this:
HOME | ABOUT | CATEGORY 1
I would like to know how too..
Could hardcode the Category archive link in the template that houses your navigation.
Resources:
Stepping Into Templates
Template Hierarchy
just create a page called "category 1"
use a plugin called page links to to set the page to the category url.
you should be all set
Nice solution viceng, thanks.
It's a great mod!
but...
the class of the menuitem that represents the categoy will not change to 'active' or 'current-page-item'. My visitor cannot see wha page he is on.
Any thoughts on how to solve that?
Thanks
if (get_option('show_on_front') != 'page') {
$class = '';
if (is_home() || is_archive() || is_single() || is_paged() || is_search()) {
$class = 'current_page_item';
}
?>
<li class="<?php echo $class; ?>"><a href="<?php echo get_option('home'); ?>">Home</a></li>
<?php } ?>
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
May be the cause of eh above problem? I don't understand it.
its a great plugin because i dont have to edit header.php (or any other) so if i change themes the navigation stays there (as long as i add appropriate css to the new theme)
also i dont have du uncomment the standard list_pages navi
but as kimmeehh pointed out the current_item highlight isnt working.
if anyone finds a fix please share!
This topic has been closed to new replies.