This is fixed in version 1.0.2
Diregard my last post. I got it to work by just putting the code in footer.php below wp_footer() function, as your original post stated 🙂
Thanks again, Malihu!
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