Follow

Auto-loop video in header

For looping video you should edit file jquery.videoHelper.js in folder wp-content\themes\paul\js and replace code:

        function initYT() {
            var id = _this.$el.attr("data-video-id"),
                player = new YT.Player("yt_" + id, {
                    height: '1080',
                    width: '1920',
                    videoId: id,
                    playerVars: {
                        controls: 0,
                        rel: 0,
                        showinfo: 0,
                        modestbranding: 1
                    },

with this one:

function initYT() {
            var id = _this.$el.attr("data-video-id"),
                player = new YT.Player("yt_" + id, {
                    height: '1080',
                    width: '1920',
                    videoId: id,
                    playerVars: {
                        controls: 0,
                        rel: 0,
                        showinfo: 0,
                        modestbranding: 1,
		        loop : 1,
			playlist : id
                    },
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk