Title: Scripts not execute
Last modified: May 16, 2020

---

# Scripts not execute

 *  [KristenMathiasen](https://wordpress.org/support/users/kristenmathiasen/)
 * (@kristenmathiasen)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/scripts-not-execute/)
 * Hi Header and Footer scripts.
    I’ve been using this scripts for the last 3 or
   4 years with no problems but now it doesn’t execute the scripts in header or 
   footer. I have tried to deactivate all plugins and I have tried various PHP-versions
   from 5.6 to 7.4 (it runs 7.3 when it worked) I have tried to install an earlier
   backup but that didn’t work either. Do you have any ideas what the problem is?
   Kind regards Kristen
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fscripts-not-execute%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Anand Kumar](https://wordpress.org/support/users/anand_kumar/)
 * (@anand_kumar)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/scripts-not-execute/#post-12845470)
 * Is it happening after recent plugin update? Or have you changed or updated your
   theme?
 *  Thread Starter [KristenMathiasen](https://wordpress.org/support/users/kristenmathiasen/)
 * (@kristenmathiasen)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/scripts-not-execute/#post-12847309)
 * Hi Anand.
    I’m not sure when it happened. It was discovered from the helpdesk-
   guys that normally have a chat-function running via javascript. Therefor it has
   only been 1 or 2 days it hasn’t worked. I have updated som plugins over the last
   week when I get a notice from WordFence but I have tried to deactivate all plugins
   and I also have rolled the site back to a previous version 3 weeks ago. I also
   run WordPRess Webhealth and it says good with no remarks at all. That’s why I’m
   totally on the blank with what’s happening. Do you have any idea why this particular
   plugin doesn’t work anymore?
 *  [Luna](https://wordpress.org/support/users/lunalamers/)
 * (@lunalamers)
 * [6 years ago](https://wordpress.org/support/topic/scripts-not-execute/#post-12889060)
 * It seems I have the same problem. The script doesn’t execute and I can’t find
   it in the source code of the page either.
 * Could you please take a look at mine too?
 * This is the script I added:
 * <script type=”text/javascript”>
    // Responsive product comparison table JS
 * $( “ul” ).on( “click”, “li”, function() {
    var pos = $(this).index()+2; $(“tr”).
   find(‘td:not(:eq(0))’).hide(); $(‘td:nth-child(‘+pos+’)’).css(‘display’,’table-
   cell’); $(“tr”).find(‘th:not(:eq(0))’).hide(); $(‘li’).removeClass(‘active’);
   $(this).addClass(‘active’); });
 * // Initialize the media query
    var mediaQuery = window.matchMedia(‘(min-width:
   640px)’);
 *  // Add a listen event
    mediaQuery.addListener(doSomething);
 *  // Function to do something with the media query
    function doSomething(mediaQuery){
   if (mediaQuery.matches) { $(‘.sep’).attr(‘colspan’,4); } else { $(‘.sep’).attr(‘
   colspan’,2); } }
 *  // On load
    doSomething(mediaQuery); </script>
 * This is the page: [https://www.nickysmassage.nl/test-keuzehulp](https://www.nickysmassage.nl/test-keuzehulp)
   
   I secured it with a password: wordpress

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

The topic ‘Scripts not execute’ is closed to new replies.

 * ![](https://ps.w.org/header-and-footer-scripts/assets/icon-256x256.png?rev=1799457)
 * [Header and Footer Scripts](https://wordpress.org/plugins/header-and-footer-scripts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-and-footer-scripts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-and-footer-scripts/)
 * [Active Topics](https://wordpress.org/support/plugin/header-and-footer-scripts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-and-footer-scripts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-and-footer-scripts/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Luna](https://wordpress.org/support/users/lunalamers/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/scripts-not-execute/#post-12889060)
 * Status: not resolved