Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #396725

    Hi, I have set up a single page site The menu items use #anchor links to navigate a user up and down the long, scrolling single page. Is there a way to permanently show lines under the menu items?

    The default is to just have the lines under the menu items show when when a user hovers over them.

    Thanks much!

    T

    #396995

    Hi rkr777!

    If your clicking on an anchor and it scrolls to a certain part of the page then it should be highlighting it. Can you send us a link to your page and deactivate all plugins?

    Cheers!
    Elliott

    #397092
    This reply has been marked as private.
    #397601

    Hi!

    you can use this code in Quick CSS field:

    .avia-menu-fx {
    opacity: 1;
    visibility: visible;
    }
    

    Regards,
    Andy

    #397630
    This reply has been marked as private.
    #398026

    Hi!

    I don’t see anything wrong with how you set up the color section and anchor menu but the current-menu-item class is not being applied on the active menu. Please try this on functions.php:

    add_action('wp_footer', 'ava_current_menu');
    function ava_current_menu(){
    ?>
    <script>
    (function($){
       $(".av-main-nav li a").click(function() {
    	  $(".av-main-nav li a").removeAttr("class");
    	  $(this).addClass("active");
       });
    })(jQuery);
    </script>
    <?php
    }

    Add this to the Quick CSS field:

    av-main-nav li a.active > .avia-menu-fx {
    opacity: 1;
    visibility: visible;
    }

    Best regards,
    Ismael

    #399031
    This reply has been marked as private.
    #399431

    Hi!

    Yes, I know what you’re trying to do and that is the purpose of the code above. I checked the site again but it’s not working / loading. Please check. After you added the modifications, please remove browser cache then reload the page.

    Best regards,
    Ismael

    #399683
    This reply has been marked as private.
    #400017

    Hi!

    My bad. There’s a missing dot in the css mod. Please use this:

    .av-main-nav li a.active > .avia-menu-fx {
    opacity: 1;
    visibility: visible;
    }

    Best regards,
    Ismael

    #400091
    This reply has been marked as private.
    #401266

    Hi!

    That is the default behavior of the anchor links. Did you follow the instructions provided here (http://kriesi.at/documentation/enfold/add-anchors-to-your-page-for-single-page-navigation/)? Please post the login details here. We would like to check it.

    Best regards,
    Ismael

    #401539
    This reply has been marked as private.
    #401915

    Hey!

    The code on your Quick CSS field is incorrect. Also, the anchor name on the color section were capitalized. Make sure that the anchor name and links are identical. Please remove browser cache then check the page: http://www.puertaburritos.com/

    Cheers!
    Ismael

    #402001

    That did the trick! That’s awesome dude! Thanks so much for your help!

    Two more things…
    – Is there a way to have the underline move to the next menu item when scrolling to the next anchor?
    – Currently there is no underline on initial load or when the page is refreshed. Is there a way to do that?

    Cheers!

    T

    • This reply was modified 9 years, 8 months ago by rkr777.
    #402900

    It’s working now! Thanks for your support. You guys are the best!

    T

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Enfold/ Permanent underlining of menu items’ is closed to new replies.