Some code below the footer
-
Hi,
after the last update this code appears below the footer of each page.
let iframe = document.querySelector('iframe'); let player = new Vimeo.Player(iframe); let playing = false; let simulationTime = 0; player.on('play', function(e) { playing = true; }); player.on('pause', function(e) { playing = false; }); /** * Event fired when user want to fast forward */ player.on('seeked', function(e) { if (e.seconds > simulationTime) { player.setCurrentTime(simulationTime).then(function(seconds) { }).catch(function(error) { switch (error.name) { case 'RangeError': // The time is less than 0 or greater than the video's duration break; default: // Some other error occurred break; } }); } else { simulationTime = data.seconds; } }); /** * Keep time going */ window.setInterval(function() { if (playing) { simulationTime++; } }, 1000);
I disabled all plugins and themes and reactivated one by one. The problem is related to Woodmart, because when you enable “Twenty Nineteen” theme, the code disappears.
Thank you
Hello,
Please provide the site admin access to the private area
Best Regards
We have checked your site and found that the following issue is caused by child theme custom code. Try to switch to parent theme and check if this problem apearce again.
Regards
Yes you are right.
We are investigating changes to the function.php file.
Thank you
Best Regards
You are welcome! If you have any questions please feel free to contact us.
Best Regards
The topic ‘Some code below the footer’ is closed to new replies.