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 » Page & Category Menu Bars »

Color of children of current page in menu

Old Mar 22, 2009, 02:38 PM
BradBrown's Avatar
54 posts · Mar 2009
This is a really fabulous theme. I was able to get the look I wanted very quickly and easily with almost no editing of the theme files. There were a few minor things I had to do manually, like putting an author avatar next to post headings, but nearly everything I wanted to do could be done through the theme settings.

I did find what appears to be a small bug in the page menu coloring. I fixed it, but I thought I'd pass the info along.

When the current page has child pages, the menu bar uses the hover color for the child pages as well as current page.

If that doesn't make sense, here's an example. Go to: http://www.bradbrownmagic.com/sandbox/?page_id=34 . Hover over the "Programs" menu item. All the child items are displayed using the hover color, green, when I would have expected them to be the "normal" color, blue. You can see the behavior I would expect in the live version of the site here: http://forhiskidsonline.org/programs/

Here's what I changed. In the header.php file, I updated the CSS for the current page menu items to use a child selector to ensure that only the current page's link gets the highlight applied.

Original Version:
ul.rMenu li.current_page_item a:link, 
ul.rMenu li.current_page_item a:active, 
ul.rMenu li.current_page_item a:hover, 
ul.rMenu li.current_page_item a:visited, 
ul.rMenu li a:hover
Corrected Version:
ul.rMenu li.current_page_item>a:link, 
ul.rMenu li.current_page_item>a:active, 
ul.rMenu li.current_page_item>a:hover, 
ul.rMenu li.current_page_item>a:visited, 
ul.rMenu li a:hover
The category bar would presumably have the same behavior, but I'm not using it in my site.

Thanks again for all your work in putting together and supporting this theme!



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make Current page color different than Hover color? 25jai Page & Category Menu Bars 7 Jul 17, 2009 05:06 AM
Page menu background color : 2 colors possible? Len Page & Category Menu Bars 1 Jun 17, 2009 01:31 PM
Help Color Customizing Page Menu Bar Please hovering Header configuration & styling 3 Mar 29, 2009 04:31 AM
Fixed width site. Different page background color from body color? blueprairie Forum How-To 1 Mar 20, 2009 08:55 PM
Page Menu Bar - Pressed background color bseppa Page & Category Menu Bars 1 Dec 19, 2008 12:44 AM

All times are GMT -6. The time now is 05:50 PM.

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