Hey all!
I'm building a site for a friend which uses this Wordpress theme:
^ 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:
and a snippet of css in the stylesheet:
I want to add links to category pages in the menu, but if I add an example like this to the menu:
There is no underline for that page.
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?
If anyone can help I'd be hugely grateful, thank you in advance!
I'm building a site for a friend which uses this Wordpress theme:
^ 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:
Code:
<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');?>
Code:
.current_page_item a { color:#000; text-decoration: underline; }
Code:
<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?
Code:
<li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>" title="Home">Home</a></li>
Comment