Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1401075

    Nabeel A
    Moderator

    Hi again,

    I went ahead and added the following code:

    jQuery(window).load(function() {
      	jQuery('body').on('click', '.mejs-overlay-play', function() {
      		jQuery(this).parents('.x-video.player').addClass('hide-icon');
       	});
    });

    And it’s working fine now. Please clear your browser’s cache and check the page again.

    Cheers!

    #1401696

    Piranhabar_web
    Participant

    Hi Nabeel,

    Amazing! Thanks sooo much to you and the team, I appreciated this so much!

    #1401775

    Paul R
    Moderator

    You’re welcome! 🙂

    #1419290

    Piranhabar_web
    Participant

    Hi guys,

    One last thing on this, is it possible to make the image itself clickable also (see attached image for reference),

    I’ve found that the image graphic is ‘blocking’ the content behind it from being clicked,

    Many thanks,

    Barry

    #1419819

    Rue Nel
    Moderator

    Hey Barry,

    Thanks for updating in! To resolve your issue, please make use of this custom css instead:

    .mejs-video .mejs-layer {
        background-image: url(http://2016testing.piranhabar.ie/wordpress/wp-content/uploads/2017/03/PB_Play_pink.svg);
        background-position: center center;
        background-repeat: no-repeat !important;
        background-size: 100px;
    }
    
    .x-video-icon:before {
        display: none;
    }

    This should add the background image to the clickable area and remove the old play icon.

    Hope this helps. Kindly let us know.

    #1420044

    Piranhabar_web
    Participant

    Hi Rue Nel,

    Thanks so much for this, exactly what I hoped for 🙂

    Just one small thing, when I’m playing a video now and then pause the video, I can’t continue on playing as the screen is stuck (as in the video is frozen in the div.). It feels like something is covering it from being clicked.

    Does this make sense?

    Cheers

    Barry

    #1420408

    Rad
    Moderator

    Hi there,

    It seems to be okay, I can play it after pausing it. Is it specific to a video? What device you’re testing it with?

    Thanks!

    #1420641

    Piranhabar_web
    Participant
    This reply has been marked as private.
    #1420643

    Piranhabar_web
    Participant
    This reply has been marked as private.
    #1420962

    Rue Nel
    Moderator

    Hey Barry,

    Thanks for updating in! I have tested the page and I can confirm that it is somehow block and you cannot play again the video after you have paused it. To resolve this, please add the following css code in the customizer, Appearance > Customize > Custom > Edit Global CSS

    .hide-icon .mejs-video .mejs-layer {
        display: none !important;
    }

    Please let us know if this works out for you.

    #1421430

    Piranhabar_web
    Participant

    Hi Rue Nel,

    Amazing, works perfectly, thanks so much!

    #1421449

    Paul R
    Moderator

    You’re welcome! 🙂