Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionthis may be a stupid topic but a client has commissioned me this: some music to be included in some pages. I can not find any plugins to help me do this. Do you know anyone? Now, I was thinking if you could do with php by creating a simple plugin or using js with a small script. What's better? Can you help me? Thanks
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 6 years ago.
Improve this questionthis may be a stupid topic but a client has commissioned me this: some music to be included in some pages. I can not find any plugins to help me do this. Do you know anyone? Now, I was thinking if you could do with php by creating a simple plugin or using js with a small script. What's better? Can you help me? Thanks
Share Improve this question asked Nov 6, 2018 at 21:01 user153664user153664 2- I don't think several modern browsers even allow auto-playing audio without the user clicking a button first. – Jacob Peattie Commented Nov 7, 2018 at 5:48
- Asking for plugin recommendations is considered to be Off Topic. This question would be better asked over at The Official WordPress Forums – Howdy_McGee ♦ Commented Nov 14, 2018 at 17:03
1 Answer
Reset to default 1I would do your best to talk them out of it.
https://moz/blog/how-to-convince-a-client-their-site-doesnt-need-music
If all else fails
<audio src="horse.ogg" controls>
Your browser does not support the audio element.
</audio>
https://www.w3schools/tags/att_audio_src.asp