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

[SOLVED] Parent & child problems / categories VS pages


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #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
 
20,151 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
have you applied the 353 BUGFIX's? espically BUGFIX 353-01: Fix styling when using the new WordPress menus
  #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 05:15 PM.


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