Sound effect
-
-
<script> var mysound = new Audio('http://localhost:10020/wp-content/uploads/2025/03/mixkit-fast-double-click-on-mouse-275.wav'); jQuery(document).on('mouseup', 'a[data-expand]', function(){ mysound.play(); }) </script>Enter this css in "lay options" -> "custom css & html" -> "custom head content"
for the url part, get the right URL like this:

upload a short sound to media library, click on the file, you get the file url:

for me, its:
http://localhost:10020/wp-content/uploads/2025/03/mixkit-fast-double-click-on-mouse-275.wav
i got this file from here:

-
-
-
not sure! maybe put audio element inside the page html
<audio style="display:none;" preload="auto" src="http://localhost:10020/wp-content/uploads/2025/03/mixkit-fast-double-click-on-mouse-275.wav"></audio>Enter this html in "lay options" -> "custom css & html" -> "custom html at bottom"
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
most browsers and mobile devices only play sounds once you have interacted/tapped on the website at least once
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login