Is it happening after recent plugin update? Or have you changed or updated your theme?
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?
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