Disable replay function for header video

Hello guys,

is there a option to disable the replay of my header video, so its just only played once?

Website: https://bit.ly/2H5N46Z

Hello there,

Please try doing the below steps:

  1. Install and activate the TC Custom JavaScript plugin
  2. Go To Appearance > Custom JavaScript
  3. Paste the following code into the provided box
    // Disable loop on video header
    jQuery(function($) {
      $(window).on('load', function() {
    	   $('.wp-custom-header video').prop('loop', false);
      });
    });
  1. Update

One you’re done, you may need to flush any applied cache, as it usually blocks new code addition to take changes. https://codex.wordpress.org/I_Make_Changes_and_Nothing_Happens

Regards,
Kharis

Thank you, it works perfectly :slightly_smiling_face::+1:

You’re welcome!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis