JavaScript not working | WordPress.org

[ad_1]

Hello,
I purchased your Premium version and have a JavaScript that is working, when put in Divi->Theme Options-> Integration -> Code <head>.

But it’s not working when I deactivate it in Divi and put in your Plugin
– Option: “Load JS in the <head> section”
– In the plugin I removed <script> & </script>
– I deactivated all JS related options in WpRocket

The code (moves footer always to bottom of a page):

<script>
jQuery(function($) {
    $(document).ready(function() {
        if ($('body').height() < $(window).height()) {
            $('footer').css({
                'position': 'fixed',
                'bottom': '0px',
                'left': '0',
                'right': '0'
            });
        }
    });
});
</script>

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer