• 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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Anand Kumar

    (@anand_kumar)

    Is it happening after recent plugin update? Or have you changed or updated your theme?

    Thread Starter KristenMathiasen

    (@kristenmathiasen)

    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

    (@lunalamers)

    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
    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.