Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] current_page_item


  #1  
Old May 14, 2010, 07:26 PM
smitp11
 
24 posts · May 2010
[SOLVED] current_page_item

Hi,

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 {
color:#365DA0;
font-weight:bold;
text-decoration:underline;
}

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 ?

Thanks.
  #2  
Old May 15, 2010, 06:48 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
add the CSS to ATO->Add HTML/CSS Inserts->CSS Inserts
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old May 15, 2010, 12:53 PM
smitp11
 
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 ?
  #4  
Old May 15, 2010, 03:07 PM
smitp11
 
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;
}

Thanks.

All times are GMT -6. The time now is 07:04 AM.


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