Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Jump link from menu to mid page scroll

Home / Forums / Virtue Theme / Jump link from menu to mid page scroll

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
October 20, 2017 at 9:38 am

Hi there,

From a previous support thread (#155623) I got this script from Ben:

“The solution (although I would still suggest you add the anchor to the top of the row, not below the column title, you can add an ID in the row settings which would work nicely) is to add javascript to change the way the browser links to an anchor so that you can add a 188px offset for the links.

<script type=”text/javascript”>jQuery(window).load(function () {jQuery(‘body’).localScroll({offset: -188});jQuery.localScroll.hash({offset: -188});});</script>

There is your javascript you can add in the footer scripts of your theme options.”

I tried that myself and it heads to the the correct spot and then at the last second jumps back up under the header. Is there a different tweak?

The site is dev.43designs.com

Thank you,

Luke

  • The forum ‘Virtue Theme’ is closed to new topics and replies.