-
AuthorPosts
-
February 16, 2015 at 2:51 pm #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
February 16, 2015 at 7:53 pm #396995Hi 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!
ElliottFebruary 16, 2015 at 9:32 pm #397092This reply has been marked as private.February 17, 2015 at 4:59 pm #397601Hi!
you can use this code in Quick CSS field:
.avia-menu-fx { opacity: 1; visibility: visible; }
Regards,
AndyFebruary 17, 2015 at 5:24 pm #397630This reply has been marked as private.February 18, 2015 at 11:48 am #398026Hi!
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,
IsmaelFebruary 19, 2015 at 5:03 pm #399031This reply has been marked as private.February 20, 2015 at 4:17 am #399431Hi!
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,
IsmaelFebruary 20, 2015 at 3:16 pm #399683This reply has been marked as private.February 21, 2015 at 10:32 am #400017Hi!
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,
IsmaelFebruary 21, 2015 at 5:03 pm #400091This reply has been marked as private.February 24, 2015 at 10:38 am #401266Hi!
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,
IsmaelFebruary 24, 2015 at 5:30 pm #401539This reply has been marked as private.February 25, 2015 at 9:22 am #401915Hey!
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!
IsmaelFebruary 25, 2015 at 12:58 pm #402001That 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, 10 months ago by rkr777.
February 26, 2015 at 6:45 pm #402900It’s working now! Thanks for your support. You guys are the best!
T
-
AuthorPosts
- The topic ‘Enfold/ Permanent underlining of menu items’ is closed to new replies.