microcipcip
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Fixing WordPress
In reply to: build-in menu WordPress 3.0 questionOk, I have found the solution:
http://stackoverflow.com/questions/5132080/wordpress-menu-highlight-with-pagination/5136425Forum: Fixing WordPress
In reply to: WordPress Menu and PaginationOk, I have found the solution:
http://stackoverflow.com/questions/5132080/wordpress-menu-highlight-with-pagination/5136425Forum: Themes and Templates
In reply to: Highlight Tab MenuIt works!
Thank you so much!I post here the final code if somebody has to do the same.
<ul id="navtabs"> <li<?php if ( in_category('1') ) { echo ' class="current"'; } ?>><a href="<?php bloginfo('url'); ?>"><span>Home</span></a></li> <li<?php if ( in_category('9') ) { echo ' class="current"'; } ?>><a href="?cat=9"><span>Portfolio</span></a></li> <li<?php if ( in_category('6') ) { echo ' class="current"'; } ?>><a href="?cat=6"><span>Tutorials</span></a></li> <li<?php if ( in_category('8') ) { echo ' class="current"'; } ?>><a href="?cat=8"><span>Chi Siamo</span></a></li> </ul>Forum: Themes and Templates
In reply to: Conditional Formatting and Template TagsHi, if you look the source code when you click on a category link, you can see that there is this class: current-cat, so I guess that you should add this in the second declaration in the CSS file.
Viewing 4 replies - 1 through 4 (of 4 total)