Follow

Auto play/muted video header

You can edit file \wp-content\themes\paul\js\main.js. In file need search 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,
                auto: true,
                muted: true,
                onReady: function () {
                    $("#playvideo").click();
                },
                hideUs: [$(".header-content-wrap")]
            });
        }
    };

muted: true, you can set this true or false.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.