Welcome to our Help Center 👋

Customize play button shape

How to change the shape of the play button
Written by James Christensen
Updated 2 months ago

We think hexagons are the best shape ever, but everyone is entitled to their own opinion 😉

That's why, you can change the shape of the play button on the SmartVideo player!

Just follow these simple instructions:

If you're using the SmartVideo plugin for WordPress:

Simply visit the SmartVideo plugin Settings menu.

Under Change the shape of the play button you can select Rectangle, Circle, or Default (our beloved hexagon). After choosing your shape, click Save Settings.

If you want to manually edit the script in your head tag (not recommended):

Note: this method will not work if you have SmartVideo enabled on your site via our WordPress plugin.

Add this snippet to the SmartVideo script in the head tag of your site:

theme: {button:"rectangle"},

or

theme: {button:"circle"},

Example configuration:

<script data-cfasync="false">
    var swarmoptions = {
        swarmcdnkey: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
        theme: {primaryColor:"#ffde17", button:"rectangle"},
        iframeReplacement: "iframe",
        autoreplace: {
            youtube: true
        }
    };
</script>
<script data-cfasync="false" src="//assets.swarmcdn.com/cross/swarmdetect.js"></script>

Need some help? Give us a shout by clicking the button in the bottom right corner of this page!

Keywords: change button , change play button , customise button , player customise button

Did this answer your question?