Thanks Malihu!
I activated the plugin and added this to the bottom of the functions.php file:
// Add scripts to wp_footer()
function child_theme_footer_script() { ?>
<script>
(function($){
$(window).on("load",function(){
$.mPageScroll2id("scrollTo","#main");
});
})(jQuery);
</script>
<?php }
add_action( 'wp_footer', 'child_theme_footer_script' );
I then cleared the site cache and browser cache, but it didn’t work.
I then tried changed “$.mPageScroll2id” to “$.m_PageScroll2id”, cleared caches, but that didn’t work either. I’m still working on debugging it now.
Thanks again,
FlexiThemes