[Support request] How can I add custom js?

Home Forums Support [Support request] How can I add custom js?

Home Forums Support How can I add custom js?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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!

    #1450127
    Leo
    Staff
    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.

    #1450588
    Ricardo

    Yes!

    I understand. I thought that I needed to use elements to do that.

    I’ll contact them.

    Regards,
    Ricardo

    #1451154
    Leo
    Staff
    Customer Support

    Let’s see what they say first.

    You might be able to use the element to add the code.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.