Homepage › Community Forums › Aspire Theme Support › How to make smooth scrolling occur on front page? › Reply To: How to make smooth scrolling occur on front page?
I do not have any other custom code or plugins that load JS files that I am aware of.
I got this code from Victor Font who is a Moderator on the StudioPress forums.
Here is a link to that post in the StudioPress forum: https://studiopress.community/topic/custom-javascript-scroll-to-id-all-of-a-sudden-stopped-working/
Also, here is the website that I am experiencing these issues with:
https://devsite2.savvyprosolutionsllc.com/
Here is the enqueue code I am using in the front-page.php file for this script:
/* SavvyPro Custom Smooth Scroll to ID
function savvypro_adding_scripts() {
wp_enqueue_script( 'savvypro-scrollTo-id-script', get_stylesheet_directory_uri() . '/js/savvypro-scrollTo-id.js', array( 'jquery' ), '1.0.0', true );
wp_enqueue_script('savvypro_scrollTo_id_script');
}
add_action( 'wp_enqueue_scripts', 'savvypro_adding_scripts' );
<!--formatted--><!--formatted--><!--formatted-->
Here is the error I keep getting showing up in Chrome Developer:
Does your Site need a Fresh New look? Need help with some customizations? Whether it's a Large or Small Project, we can help! Check out some of the products and services we offer and make sure to Contact Us to see how we can assist!