Follow

YouTube video header autoplay

These option was not included to theme, but you could implement it by yourself.

Find file main.js on your FTP in folder /wp-content/themes/paul/js. In this file find this part of code

    theme.initVideoHeader = function () {
        var $fsBlock = $("#fs-block"),
            $fsVideo = $fsBlock.find("#fs-video");

        if ($fsVideo.length) {
            $fsBlock.videoHelper({
                viewport: $fsBlock,
                onReady: function () {
                    ;
                },
                hideUs: [$(".header-content-wrap")]
            });
        }
    };

and replace it with this one

    theme.initVideoHeader = function () {
        var $fsBlock = $("#fs-block"),
            $fsVideo = $fsBlock.find("#fs-video");

        if ($fsVideo.length) {
            $fsBlock.videoHelper({
                viewport: $fsBlock,
                onReady: function () {
                    $fsBlock.find('#playvideo').click();
                },
                hideUs: [$(".header-content-wrap")]
            });
        }
    };
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