Auto play audio
-
Hi!
I have two questions: what’s the code to autostart an audio file; and what’s the code to resize the audio player (my wish is to make it invisible, ie make it 0x0 pixels).
Here’s my original code:
[audio mp3='https://escalanarede.files.wordpress.com/2015/05/birds-chirping.mp3'|loop=yes][/audio]
Thanks
JPThe blog I need help with is: (visible only to logged in users)
-
Hi there,
what’s the code to autostart an audio file
The WordPress audio player doesn’t support autostart or autoplay. To make an audio file start automatically, you’ll need to embed a third-party player like the SoundCloud Audio Player.
what’s the code to resize the audio player (my wish is to make it invisible, ie make it 0x0 pixels)
The only built-in styling for the WordPress audio player is the dark scheme, which you can enable by adding style=”dark” to your audio code.
To make other changes to how the audio player looks, you’ll need to use Custom CSS. I recommend our guide to How to Find Your Theme’s CSS to help you identify exactly what CSS code you need to make your desired changes.
If you’d like to see how other people customize their sites with CSS we also have a CSS Customization forum. It can be a great place to get ideas and help from others (including some volunteers with extensive CSS experience).
- The topic ‘Auto play audio’ is closed to new replies.