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 »

[SOLVED] Parent & child problems / categories VS pages


  #1  
Old Apr 22, 2011, 05:27 AM
Spidey
 
13 posts · Apr 2011
I'm using Atahualpa 3.5.3
I have two problems, searched the forum, try a lot of things, but impossible to find a solution.

First one :
In my page menu i have a link to a category, when selected the color does not change.
i've add that :

HTML Code:
/* For CURRENT */
ul.rMenu-hor li.current_page_item a:link,
ul.rMenu-hor li.current_page_item a:visited,
ul.rMenu-hor li.current_page_item a:active,
ul.rMenu-hor li.current_page_item a:hover {
background: #05A505 !important;
color: #000000 !important;
}
works well fo the regular pages but not for his item :-(

Second problem
I have a drop-down menu. When i select a child item i want to highlight the parent. Can't find a way to do that...
I've try that, but it does not works :

HTML Code:
/* ================================================ */
/* how to highlight parent of current page          */
/* ================================================ */
ul.rMenu li.current_page_parent a:link, 
ul.rMenu li.current_page_parent a:active, 
ul.rMenu li.current_page_parent a:hover, 
ul.rMenu li.current_page_parent a:visited, 
ul.rMenu li.current_page_parent {
background: #00ffff !important;
}
/* ++++++++++++++++++++++++++++++++++++++++++++++++++ */
My website is --> http://bit.ly/esa8pJ

Last edited by Spidey; Apr 22, 2011 at 05:31 AM.
  #2  
Old Apr 22, 2011, 05:34 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
have you applied the 353 BUGFIX's? espically BUGFIX 353-01: Fix styling when using the new WordPress menus
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Apr 22, 2011, 06:20 AM
Spidey
 
13 posts · Apr 2011
ok it's better thanks !
But now all items in the drop-down menu are selected and the small arrow have disappear. :-(

Also my category link item is still not working.


I've that :

HTML Code:
/* ================================================ */
/* how to highlight parent of current page          */
/* ================================================ */
ul.rMenu li.current_page_parent a:link, 
ul.rMenu li.current_page_parent a:active, 
ul.rMenu li.current_page_parent a:hover, 
ul.rMenu li.current_page_parent a:visited, 
ul.rMenu li.current_page_parent {
background: #05A505 !important;
color: #000000 !important;
}
/* ++++++++++++++++++++++++++++++++++++++++++++++++++ */

/* For CURRENT */
ul.rMenu-hor li.current_page_item a:link,
ul.rMenu-hor li.current_page_item a:visited,
ul.rMenu-hor li.current_page_item a:active,
ul.rMenu-hor li.current_page_item a:hover {
background: #05A505 !important;
color: #000000 !important;
}

Last edited by Spidey; Apr 22, 2011 at 07:01 AM.
  #4  
Old Apr 22, 2011, 07:10 AM
Spidey
 
13 posts · Apr 2011
Ok first problem solved !
I've removed the a: and it works.

HTML Code:
/* ================================================ */
/* how to highlight parent of current page          */
/* ================================================ */
ul.rMenu li.current_page_parent link, 
ul.rMenu li.current_page_parent active, 
ul.rMenu li.current_page_parent hover, 
ul.rMenu li.current_page_parent visited, 
ul.rMenu li.current_page_parent {
background: #05A505 !important;
color: #000000 !important;
}
/* ++++++++++++++++++++++++++++++++++++++++++++++++++ */

Now i need to fix the category problem. The color still does not change when selected.
  #5  
Old Apr 22, 2011, 07:33 AM
Spidey
 
13 posts · Apr 2011
OK solved !

If it can help someone, to change the color of a category in a page menu, use: current-menu-item

HTML Code:
/* For CURRENT */
ul.rMenu li.current-menu-item a:link,
ul.rMenu li.current-menu-item a:visited,
ul.rMenu li.current-menu-item a:active,
ul.rMenu li.current-menu-item a:hover {
background: #05A505 !important;
color: #000000 !important;
}

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to turn link of pages in page menu on or off e.g. turn parent off & child on Deansta22 Page & Category Menu Bars 8 Jan 18, 2011 02:01 PM
Menu Parent Pages covered up by child pages benjamin_preisner Page & Category Menu Bars 5 Nov 26, 2010 08:52 PM
Child pages not showing for one parent page only - and only on ie8 on vista harrisons16s New Versions, & Updating 6 Nov 3, 2010 03:37 PM
Child pages don't keep parent page in menu highlighted ribbu Page & Category Menu Bars 12 Dec 15, 2009 12:43 PM
Redirect child pages to parent jkgourmet Page & Category Menu Bars 4 Oct 28, 2009 07:57 PM


All times are GMT -6. The time now is 12:22 AM.


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