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 »

Highlight active category / page item in menus


  #26  
Old Apr 20, 2009, 11:20 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Please post or PM me your URL
  #27  
Old Apr 21, 2009, 09:39 PM
ScottKarlins's Avatar
ScottKarlins
 
16 posts · Apr 2009
Atlanta, GA
Flynn,

Got it all working. After reviewing your solutions for Tigger, and learning what each line was actually doing!, I got it all set:

/* DEFAULT */
div.flexipages_widget ul li.current_page_item a:link,
div.flexipages_widget ul li.current_page_item a:visited {
background: #ffffff !important;
border-left: solid 7px #cccccc !important;
color: #666666 !important;
}
/* For HOVER */
div.flexipages_widget ul li.current_page_item a:active,
div.flexipages_widget ul li.current_page_item a:hover {
background: #ffffff !important;
border-left: solid 7px #000000 !important;
color: #000000 !important;
}
/* For CURRENT */
div.flexipages_widget ul li.current_page_item a:link,
div.flexipages_widget ul li.current_page_item a:visited,
div.flexipages_widget ul li.current_page_item a:active,
div.flexipages_widget ul li.current_page_item a:hover {
background: #ffffff !important;
border-left: solid 7px #000000 !important;
color: #000000 !important;
}
/* Reset children of CURRENT */
div.flexipages_widget ul li.current_page_item ul li a:link,
div.flexipages_widget ul li.current_page_item ul li a:visited {
background: #ffffff !important;
border-left: solid 7px #cccccc !important;
color: #666666 !important;
}
div.flexipages_widget ul li.current_page_item ul li a:active,
div.flexipages_widget ul li.current_page_item ul li a:hover {
background: #ffffff !important;
border-left: solid 7px #000000 !important;
color: #000000 !important;
}


Sorry for all the posts!

Thank you,
Scott K.
  #28  
Old Jul 22, 2009, 02:35 AM
msc3
 
7 posts · Jul 2009
Flynn,

I'm also using the Flexipages plugin. I got it so that the active page is highlighted on the side navigation, which only contains secondary pages. but I want my primary page to show as active as well, so that the user knows which section they are in. Currently, I only have two primary pages that have sub pages, but I can't figure out how to make their respective primary page links, which are displayed across the top, appear as active when the user is on one the sub pages. Any suggestions?

Best,
Michael
  #29  
Old Jul 22, 2009, 08:43 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Look into the source code (or use Firebug) to see what the parent of the currently active page got as additional CSS class, should be "current_page_parent". Then add that class to the CURRENT section of the code

/* For CURRENT */
div.flexipages_widget ul li.current_page_item a:link,
div.flexipages_widget ul li.current_page_item a:visited,
div.flexipages_widget ul li.current_page_item a:active,
div.flexipages_widget ul li.current_page_item a:hover,
div.flexipages_widget ul li.current_page_parent a:link,
div.flexipages_widget ul li.current_page_parent a:visited,
div.flexipages_widget ul li.current_page_parent a:active,
div.flexipages_widget ul li.current_page_parent a:hover
{
...


If there are several levels, all ancestors of the currently active page should get
current_page_ancestor, add that like current_page_parent to highlight all ancestors of the current page
  #30  
Old Jul 23, 2009, 12:04 AM
msc3
 
7 posts · Jul 2009
[Solved] That worked! I used firebug to determine the class of the primary navigation links, it now it works exactly the way I would expect. Thanks! Money is in your account.
  #31  
Old Mar 17, 2010, 02:43 AM
Mikii
 
23 posts · Jul 2009
Quote:
Originally Posted by msc3
[Solved] That worked! I used firebug to determine the class of the primary navigation links, it now it works exactly the way I would expect. Thanks! Money is in your account.
msc3, could you post your final code? I could use it.

Thanks!

Michele
  #32  
Old Apr 30, 2012, 07:08 PM
heimir
 
10 posts · Jan 2009
This is working well for me:

/* DEFAULT */
div.flexipages_widget ul li.current_page_item a:link,
div.flexipages_widget ul li.current_page_item a:visited {
background: #ffffff !important;
border-left: solid 7px #cccccc !important;
color: #666666 !important;
}
/* For HOVER */
div.flexipages_widget ul li.current_page_item a:active,
div.flexipages_widget ul li.current_page_item a:hover {
background: #ffffff !important;
border-left: solid 0px #000000 !important;
color: #000000 !important;
}
/* For CURRENT */
div.flexipages_widget ul li.current_page_item a:link,
div.flexipages_widget ul li.current_page_item a:visited,
div.flexipages_widget ul li.current_page_item a:active,
div.flexipages_widget ul li.current_page_item a:hover {
background: #ffffff !important;
border-left: solid 0px #ffffff !important;
color: #DF5408 !important;
font-weight:bold;
}

/* Reset children of CURRENT */
div.flexipages_widget ul li.current_page_item ul li a:link,
div.flexipages_widget ul li.current_page_item ul li a:visited {
background: #ffffff !important;

color: #254125 !important;
font-weight:normal;
}

Last edited by heimir; Apr 30, 2012 at 07:13 PM.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Both Blog page and Static Front page highlight when Blog page selected lomaprietapottery Page & Category Menu Bars 20 Jul 13, 2012 05:58 PM
[SOLVED] Page Menu Sub Menus of Equal Width Craig Mattice Page & Category Menu Bars 4 Jun 17, 2009 04:46 AM
Customizing category menu bar with different images for every item GeoParadise Page & Category Menu Bars 5 Apr 17, 2009 06:50 PM
Dropdown menus displace the page. zoefriedlander Page & Category Menu Bars 3 Apr 16, 2009 12:41 AM
Page Menu Bar: Last Item on the Right-Hand Margin? PittFunck Page & Category Menu Bars 5 Mar 9, 2009 09:26 AM


All times are GMT -6. The time now is 01:48 AM.


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