- This topic has 4 replies, 2 voices, and was last updated 15 years, 11 months ago by imported_Ryan.
-
AuthorPosts
-
December 4, 2008 at 6:28 am #476cptnem0Member
Hello,
Thanks for this great plugin!
I am using in a page navigation drop down, so parent pages show childs on mouse over.
I would like to be able to:
– If on child highlight/show background color of parent
This way user knows what parent page he/she is in when in child or grandchild.
Im thinking it will need to be done in php to give a attribute to parent (ie if child then span parent etc)
Ill happily pay a donation, let me know what this is worth. $25?
Here is my css:
#suckerfishnav {
font-size:16px;
font-family:helvetica,sans-serif;
font-weight:bold;
width:100%;
}
#suckerfishnav, #suckerfishnav ul {
float:left;
list-style:none;
line-height:20px;
padding:0;
margin:0;
width:100%;
}
#suckerfishnav a {
display:block;
color:#efefef;
text-decoration:none;
padding:0px 10px;
margin-right: 10px;
margin-left: 10px;
}
#suckerfishnav li {
float:left;
padding:0;
}
#suckerfishnav ul {
position:absolute;
left:-999em;
height:auto;
width:170px;
font-weight:normal;
margin:0;
line-height:1;
}
#suckerfishnav li li {
width:170px;
font-weight:bold;
font-family:helvetica,sans-serif;
}
#suckerfishnav li li a {
padding:4px 10px;
width:80px;
font-size:14px;
color:#efefef;
}
#suckerfishnav li ul ul {
margin:-23px 0 0 100px;
}
#suckerfishnav li li:hover {
background:#172532;
}
#suckerfishnav li ul li:hover a, #suckerfishnav li ul li li:hover a, #suckerfishnav li ul li li li:hover a, #suckerfishnav li ul li li li:hover a {
color:#fff;
}
#suckerfishnav li:hover a, #suckerfishnav li.sfhover a {
color:#fff;
}
#suckerfishnav li:hover li a, #suckerfishnav li li:hover li a, #suckerfishnav li li li:hover li a, #suckerfishnav li li li li:hover li a {
color:#efefef;
}
#suckerfishnav li:hover ul ul, #suckerfishnav li:hover ul ul ul, #suckerfishnav li:hover ul ul ul ul, #suckerfishnav li.sfhover ul ul, #suckerfishnav li.sfhover ul ul ul, #suckerfishnav li.sfhover ul ul ul ul {
left:-999em;
}
#suckerfishnav li:hover ul, #suckerfishnav li li:hover ul, #suckerfishnav li li li:hover ul, #suckerfishnav li li li li:hover ul, #suckerfishnav li.sfhover ul, #suckerfishnav li li.sfhover ul, #suckerfishnav li li li.sfhover ul, #suckerfishnav li li li li.sfhover ul {
left:auto;
background:#3c74a2;
}
#suckerfishnav li:hover, #suckerfishnav li.sfhover {
background:#172532;
}December 4, 2008 at 6:38 am #4295cptnem0MemberAfter writing I thought of checking source code (doh)
Found current_page_ancestor attribute.
Thanks anyway…
December 4, 2008 at 11:03 am #4296imported_RyanMemberHi,
Our premium CSS generator is able to do this … https://geek.hellyer.kiwi/premium_support/December 5, 2008 at 3:36 am #4297cptnem0MemberThanks Ryan,
What about adding a static link? Ie: I have a page outside of wordpress.
Can I add other static pages to drop down/child of static link?
Thanks…
December 5, 2008 at 10:41 am #4298imported_RyanMemberYou can add a whole dropdown (or multiple dropdowns) via the custom code option in the admin panel. Then you can add links to anything you want.
-
AuthorPosts
- You must be logged in to reply to this topic.