Integrate video play icon on video in wordpress

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

Leave a Reply

Your email address will not be published. Required fields are marked *