Is there any way to use the JS behind the scroll-top-link button for other navigation? I have jump links in an accordion slider at the top of my page, but the action is abrupt.
Thanks
Hey philfm!
Thank you for using the theme!
Do you mind if we take a look at the actual page? They should have the same speed because any anchor links utilize the scrollspy script.
Cheers!
Ismael
Hey Phil!
Try adding to your theme functions.php (at the end):
function apply_smoothscroll_to_all_links(){
?>
<script type="text/javascript" charset="utf-8">
jQuery(window).load(function(){
jQuery('a[href*=#]').avia_smoothscroll("body");
});
</script>
<?php
}
add_action('wp_footer', 'apply_smoothscroll_to_all_links');
Cheers!
Josue
Hi!
Try changing the URL from:
http://mckeown.marketing/#message
to
#message
Best regards,
Josue
Hmm, it’s weird because i tried it on my install and it did work fine, can you create an administrator account and post it here as a private reply?
Cheers!
Josue
Hey!
Everything was fine, except for the page structure, you needed to set the ID in the respective Color Section, i already did it for #research:
http://mckeown.marketing/
http://mckeown.marketing/wp-admin/post.php?post=9&action=edit&message=1
Documentation:
http://kriesi.at/documentation/enfold/add-anchors-to-your-page-for-single-page-navigation/
Cheers!
Josue
Many thanks for your support on this Josue.
You are welcome, glad we could help :)
Regards,
Josue