Title: JavaScript not working
Last modified: November 10, 2023

---

# JavaScript not working

 *  Resolved [35mmd](https://wordpress.org/support/users/35mmd/)
 * (@35mmd)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-working-35/)
 * 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):
 *     ```wp-block-code
       <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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fjavascript-not-working-35%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-working-35/#post-17191592)
 * Hi [@35mmd](https://wordpress.org/support/users/35mmd/),
 * Sorry to hear you’re having difficulties! Unfortunately, we are unable to provide
   support for Pro-only features through this forum.
 * If you’re able to get in touch with us through our Pro support line at [https://help.codesnippets.pro/](https://help.codesnippets.pro/),
   we should be able to help you out there.
 *  Moderator [Support Moderator](https://wordpress.org/support/users/moderator/)
 * (@moderator)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-working-35/#post-17191949)
 * > I purchased your Premium version
 * For pro or commercial product support please contact the developer directly on
   their site. This includes any pre-sales topics as well.
 * [https://help.codesnippets.pro/](https://help.codesnippets.pro/)
 * As the developer is aware, commercial products are [not supported in these forums](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products).
   I am sure they will have no problem supporting you there.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘JavaScript not working’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 2 replies
 * 4 participants
 * Last reply from: [Support Moderator](https://wordpress.org/support/users/moderator/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-working-35/#post-17191949)
 * Status: resolved