Audio
-
Hello.
I am a musician and bought Laytheme after a design friend recommended it.
Now I see the only way to implement audio is to embed soundcloud links. If I didnt overlook a feature. The problem is I don
t want soundcloud branding on my website.Could there be an audio player in the future? Or should I get another solution like another wordpress template?
Cheers, Julius
-
hey Julius! i guess you want to embed audio using wordpress' standard/built-in mp3 player. That one doesn't work in lay theme currently, but I believe its a bit ugly anyway.
Anyway, to get an unbranded audio player, please upload an mp3 into your media library. Then click on that mp3 to open the information and copy the "URL".
Now in the gridder please go to "+more" -> "+html".
Now enter:<audio src="YOUR-URL" controls> </audio>
Here is a very technical explanation about the "audio" tag: https://developer.mozilla.org/en/docs/Web/HTML/Element/audio
Here is a list of embeds that should work (in case you dont want to go for the unbranded audio player):
https://codex.wordpress.org/Embedsthis includes spotify. If your song is played through spotify you get some money for that no?
-
Hey @arminunruh !
how do I delete the download option in the controls of the audio player? Not really good in html, so I could need a little help here :-)Thank you!
Nico -
source:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
https://wicg.github.io/controls-list/explainer.html<audio controls controlslist="nodownload" src="/media/cc0-audio/t-rex-roar.mp3"></audio>
add it using +more -> +html
in the gridderand the url needs to be the url of your audio file, and it should be uploaded using the media library
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it