|
#26
Apr 20, 2009, 11:20 PM
|
|
|
|
3,768 posts · Oct 2008
Munich, Germany
|
|
Please post or PM me your URL
|
#27
Apr 21, 2009, 09:39 PM
|
|
|
|
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
Jul 22, 2009, 02:35 AM
|
|
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
Jul 22, 2009, 08:43 PM
|
|
|
|
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
Jul 23, 2009, 12:04 AM
|
|
[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
Mar 17, 2010, 02:43 AM
|
|
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
Apr 30, 2012, 07:08 PM
|
|
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.
|
|