Parent Page Active

Forums Forums Menus Parent Page Active

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #476
    cptnem0
    Member

    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;
        }

    #4295
    cptnem0
    Member

    After writing I thought of checking source code (doh)

    Found current_page_ancestor attribute.

    Thanks anyway…

    #4296

    Hi,
    Our premium CSS generator is able to do this … https://geek.hellyer.kiwi/premium_support/

    #4297
    cptnem0
    Member

    Thanks 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…

    #4298

    You 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.