anchor link highlighted


  • Member
    hhuchon
    May 10, 2016 at 10:43 am #28400

    Hi there,

    I’m using mystickyplugin to add a second menu at the top of the page, which anchors to different sections of the page. I’d like to highlight the menu that the user clicked to reach a section, so that visually we know which is the title of the section. Obviously, the solution is either php, either js, creating a specific class added to the active link, and then you change the css of this new class. The problem is … do you know what is the name of this class in fortuna theme? Obviously, the guy from mystickymenu plugin specify some code to add but it has to be customized with the class used by the theme …

    Here is what he says :

    .myfixed .current_page_item > a,
    .myfixed .current_page_ancestor > a,
    .myfixed .current-menu-item > a,
    .myfixed .current-menu-ancestor > a {
    color: #fff !important;
    font-style: normal !important;
    background-color: #C00!important;
    }
    This examples works with Twenty Thirteen theme, for other themes you will need to enter your element classes if different.

    Thanks for your help

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.