Has it ever happened to you on a website where there are several autoplay videos that start to play all at once…
It happens more than you think.
For example, you put a video with autoplay sound in the background in the sidebar, which nothing interferes with the front page of your website but it turns out that on a particular page or entry you have another video with sound, which also plays automatically, and that becomes a crazy symphony. I tell you that this is just an example, but it happens more than you think and it is easy to fix.
How to mute videos individually
If you have uploaded a video to your site and want to mute it, go to the video settings, check the “Mute” box and save the changes.
How to mute all videos automatically and by default
Now let’s make sure that no video with autoplay has sound by default. In this case, the solution is to mute the WordPress player altogether with a bit of code, this one:
Code language: PHP (php)