Im trying to integrate video play icon on video in wordpress ,but my javascript is not working though i entered my script in header footer plugin and i tried including js file as well .

My html code is

My script is

$(‘.video’).parent().click(function () { if($(this).children(“.video”).get(0).paused){ $(this).children(“.video”).get(0).play(); $(this).children(“.playpause”).fadeOut(); }else{ $(this).children(“.video”).get(0).pause(); $(this).children(“.playpause”).fadeIn(); } });

Read more here: Integrate video play icon on video in wordpress


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: