I'm building a site for a friend which uses this Wordpress theme:
http://www.felixkrusch.de/about
^ As you can see by visting the site, the title of the current page is always underlined on the main menu.
In the code the menu is displayed by this code:
Expand|Select|Wrap|Line Numbers
- <li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>" title="Home">Home</a></li>
- <?php wp_list_pages('title_li=&depth=1');?>
Expand|Select|Wrap|Line Numbers
- .current_page_item a {
- color:#000;
- text-decoration: underline;
- }
Expand|Select|Wrap|Line Numbers
- <a href="blahblah.com/cat/videos">Videos</a>
Does anyone know a way that I can achieve the same underline effect for non-Pages I add to the menu?
There must be some way to adapt this code for other URLs?
Expand|Select|Wrap|Line Numbers
- <li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>" title="Home">Home</a></li>