Sounds on clicks

A client of mine asked me if i could have specific sounds on click for his site. This is new to me and im not sure if this is possible in webflow. If so how do u integarte cpecific sounds on a button click?

Here is my public share link: LINK
(how to access public share link)

totally possible with some custom code.

I have a similar issue. Did you get any proper solution? psiphon

1 Like


As I was looking for a similar solution (i.e. triggering a sound on click, specifically to demo how to pronounce a specific word) I ended up on this thread and wanted to write down what worked for me, in case it can help someone else. I basically implemented one of the solutions mentioned in this stackoverflow post, specifically using a custom code embed with the following code:

<audio id="play" src="//"></audio>
<a onclick="playSound()" outline="none">
	<img src="" width="8" alt="How do you pronounce Hyphae?" class="icon">

In my case is the sound “hyphae_en_gb_1.mp3” being played when the user clicks on the icon “speaker.svg”, you’ll have to swop those file path to what is relevant to you use case. Also, don’t forget to paste the following JS in “Project Settings> Custom Code tab>Footer code”:

	function playSound () {
1 Like

Hello Chiaradesignsthings,

Thanks for your suggestion!
Do you maybe have a clonable project with your solution?

Hi Chiara, is it possible to use this code snipet with a standard button?
how would you go about using this method to populate several sounds across standard site elements (to be triggered by an interaction…)