Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] current_page_item

Build custom WP THEMES, without
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
Old May 14, 2010, 07:26 PM
24 posts · May 2010

I have the pages widget on my sidebar and I am trying to style the current page as follows:

div.widget ul li.current_page_item a:link, div.widget ul li.current_page_item a:visited, div.widget ul li.current_page_item a:active {

This CSS I am inserting in Style WIDGETS > Widget Content Box, but it is having no effect.

I am either doing something wrong, placing it in the wrong or ? Can Someone point me in the right direction please ?

Old May 15, 2010, 06:48 AM
juggledad's Avatar
22,188 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
add the CSS to ATO->Add HTML/CSS Inserts->CSS Inserts
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
Old May 15, 2010, 12:53 PM
24 posts · May 2010
Thanks, that has done the trick almost. It has underlined the menu item as expected, but also underlined the sub menu items. The CSS is now:
div.widget li.current_page_item a {
text-decoration: underline;

The menu structure has sub pages, how do I stop the sub pages being underlined ?
Old May 15, 2010, 03:07 PM
24 posts · May 2010
Ok, cracked it, had to add this to get it to work for me...

div.widget ul li.page_item a, div.widget ul ul li.page_item a, div.widget ul ul ul li.page_item a {
background-color: #FFFFFF;
div.widget ul li.current_page_item a, div.widget ul ul li.current_page_item a, div.widget ul ul ul li.current_page_item a {
background-color: #FADB49; font-weight : bold;


All times are GMT -6. The time now is 08:17 AM.

Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.