Music Button Custom Code

Hi guys, I’m trying to create a button that plays/stops music when clicked using custom code, but I can’t make it work.
I’ve tried different solutions that I found in the forum but none of them worked.

Can’t find what I’m doing wrong, maybe a more experienced developer could help me out.

Thanks in advance!


Here is my site Read-Only: https://preview.webflow.com/preview/retro-music-button?utm_medium=preview_link&utm_source=designer&utm_content=retro-music-button&preview=2649504ce704e09c6e778062c516d95d&workflow=preview

Hi @Sergio_Gancedo you are using file from Dropbox and Dropbox should not be used as media source. You can upload your audio on any other service as Soundcloud, mixcloud etc and use their provided URL’s. If you trying to do only personal tests you have to change end of Dropbox link from dl=0 to raw=1

https://cln.sh/R8qTzT

Thank you so much Stan!!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.