Home › Forums › Support › How can I add custom js? This topic has 3 replies, 2 voices, and was last updated 3 years, 7 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts September 19, 2020 at 7:21 am #1449863 Ricardo Hi, I am using wp video player, but I want to customize it. I wonder if you could help me with that. I would like to change the js of the video like this: var video = document.getElementById(“wp_mep_1”); $(video).on({ mouseenter: function () { video.setAttribute(“controls”,”controls”) }, mouseleave: function () { video.removeAttribute(“controls”); } }); How can I create an id to the video player element and conect it to this? Thanks! September 19, 2020 at 9:42 am #1450127 LeoStaff Customer Support Hi there, Are you referring to the video player from WordPress core? If so you will need to check with WordPress support on this. September 20, 2020 at 12:24 am #1450588 Ricardo Yes! I understand. I thought that I needed to use elements to do that. I’ll contact them. Regards, Ricardo September 20, 2020 at 8:58 am #1451154 LeoStaff Customer Support Let’s see what they say first. You might be able to use the element to add the code. Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In