Play Audio On Click Using Elementor With A Button, Icon Or Image

Play Audio On Click Using Elementor With A Button, Icon Or Image

Uriel Soto

2 года назад

37,432 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Valerie Express
Valerie Express - 15.11.2023 17:17

Great tutorial, is there a way you can create a tutorial or suggest one that creates a post or updates another post based on current post actions or click of a button? For example, I have a transportation company and loads is a post type and accounting is another one so when I update the load status to complete or paid, I want to automatically create an accounting post like income or expense for example

Ответить
R Adams
R Adams - 11.11.2023 18:01

Is there a way to play audio on mouseover or hover? Not on clicking.

Ответить
AreYouJustNelson
AreYouJustNelson - 31.10.2023 15:57

Hi @UrielSoto thanks for the video above. I'm creating a website for a voice recording studio and the company demoreel plays great on the header.

My challenge is for their artists to also have individual clicks on a Media Carousel. As a carousel only has 1 CSS Class input, I can't assign any one class to the individual artist images for a user to click into. Have any thoughts on working around that?

Ответить
hassan raza
hassan raza - 28.10.2023 22:46

I am using on home page on different locations but only working first location.. And does not work on other location now what can i do???

Ответить
Pain
Pain - 18.10.2023 20:16

If someone wants to play the audio when you hover the mouse over the button, just change the "Click" to "mouseenter"

Ответить
Energy 106 Belfast
Energy 106 Belfast - 17.10.2023 15:38

Can this be done for a radio stream?

Ответить
QUVE
QUVE - 16.09.2023 13:33

Genius!

Ответить
Ness Experiencias
Ness Experiencias - 30.08.2023 01:03

Is there any way of auto play on page load?

Ответить
Christian
Christian - 20.08.2023 10:11

Thank you so much !

Ответить
Zaber Ansary
Zaber Ansary - 04.08.2023 19:27

Hi, Thanks for this awesome tutorial. Im looking for a way to play bird songs when someone clicks on an image of the bird. There will be say 40-50 bird photos in one page and all with click to listen its call feature. Can your method be used to accomplish something like this? If any different then how? Can you please reply? Thanks

Ответить
Syed Sajjad
Syed Sajjad - 31.07.2023 13:43

Thank you so much

Ответить
Cashflow Chronicles Shorts
Cashflow Chronicles Shorts - 26.07.2023 17:31

easy to follow! unfortunately custom css requires a subscription!!!

Ответить
Unpack Once and Done
Unpack Once and Done - 21.06.2023 01:53

btw, thank you for the video

Ответить
Unpack Once and Done
Unpack Once and Done - 21.06.2023 01:53

I can only get one mp3 file to work with one button. I would like to add multiple mp3s to multiple buttons, but it doesn't seem to work. Does this only work with one mp3 per page?

Ответить
Megan Good
Megan Good - 17.06.2023 02:49

Code works but it is making my icon go left aligned. Any way to code it so that it stays centered?

Ответить
Jake
Jake - 19.05.2023 01:47

doesnt work

Ответить
Suresh Kumar Gautam
Suresh Kumar Gautam - 18.05.2023 04:41

Really helpful for me thank you bro

Ответить
Gabriel Pinto-Hasagiv
Gabriel Pinto-Hasagiv - 24.04.2023 17:49

AMAZING!!! Thank you for your great tutorial, came just in place ♥

Ответить
Tina Bobby
Tina Bobby - 19.04.2023 15:07

Did this like ten times. When button was clicked nothing happened

Ответить
fred3r1k
fred3r1k - 24.03.2023 14:35

doesnt work for me: Uncaught SyntaxError: Identifier 'audioBTN' has already been declared

Ответить
Sekti
Sekti - 24.02.2023 09:20

Work Great .., But How to auto play the audio when page load..?

Ответить
nthgnews
nthgnews - 23.02.2023 17:30

everything's good until i save it, click on the preview and try to play the audio... then nothing is happenning.
Does the website have to be host ? (mine is not for the moment) or is it something else?

Ответить
Maria Claudia Ochoa Prieto
Maria Claudia Ochoa Prieto - 20.12.2022 01:27

Hello, thank you very much for your contribution! It works perfect on Chrome and Mozilla, but not on Mac or iPhone, do you know what can I do?

Ответить
Tinmar
Tinmar - 16.12.2022 15:51

Worked great for me thanks.

Ответить
Yogi
Yogi - 08.12.2022 08:49

Awesome video! This may be the solution I've been looking for. Quick question. What if you want to play more than one audio bite? If the first one is selected followed by the second one, will the first one automatically stop playing or will they both play at the same time, based on the audio length?

If they both play is there a way to have only one play at a time? Thanks in advance!!!

Ответить
Dmitry Kamchatka
Dmitry Kamchatka - 24.11.2022 18:17

Very good tutorial, thanks for the video. But it doesn't work for mobile devices. Replacing "click" with tap, touchstart, etc. does not help. Works great on desktops.

Ответить
pacificprospector
pacificprospector - 13.11.2022 00:27

You are awesome! thank you!

Ответить
Dan Prakoso
Dan Prakoso - 03.11.2022 06:56

Thanks for your tutorial. Can we combine that click with scroll to id? I trying to add link scroll to id but it didn't work. It's work fine when You just add code to button without link.

Ответить
Janis Semjonovs
Janis Semjonovs - 23.10.2022 23:10

Thank's for good tutorial. Unfortunatelly it does not work for several audio tracks in one page. Also with the changing the clases for each new icon it does not work. Can you please give some solution or make a tutorial for this problem?

Ответить
Joanetta Hendel
Joanetta Hendel - 22.10.2022 00:34

Outstanding tutorial. I was able to use these instruction to play and pause a music video used in a container background. It worked perfectly! What a great tutorial!

Ответить
Mick Bannon
Mick Bannon - 20.09.2022 16:45

Thank you so much for this Uriel...works brilliantly.

Ответить
Salman Muyassar
Salman Muyassar - 17.09.2022 06:50

Thank you so much 😁

Ответить
Ivan Britto
Ivan Britto - 14.09.2022 18:16

Great! Thanks for the video!

Ответить
Attahiru Jibrin
Attahiru Jibrin - 10.09.2022 09:15

Thank you

Ответить
Madson
Madson - 04.09.2022 21:38

the code is not exist

Ответить
John T
John T - 31.08.2022 00:48

Thank you, excellent presentation and works as expected - however when I click the button the page goes to the top - what can I do to stop this ?

Ответить
Herry Darmawan
Herry Darmawan - 19.08.2022 07:00

Hi, thanks for the video!
I'd like to ask a question. can we get the element class from button popup? i try it but it didnt work.

Ответить
Christiaan Bos
Christiaan Bos - 18.08.2022 11:40

I have a music player made in a pop-up but the code doesn't work in a pop-up? Is there a change of code necessary to let it work in a pop-up?

Ответить
MarieHopkinson Music
MarieHopkinson Music - 12.08.2022 09:29

Thank you I am making an album release landing page and this helped me a lot to get the song to play in the same window :) thanks

Ответить
#1 Ghost Tour
#1 Ghost Tour - 03.08.2022 18:25

Awesome video. Thank you!

Ответить
Mhd. Tondi Alfarizi
Mhd. Tondi Alfarizi - 15.07.2022 05:20

Hi, thank you so much but have you tried in on elementor popup? I tried on elementor popup but it didn't work as well

Ответить
Salvatore de Mosticos
Salvatore de Mosticos - 24.05.2022 11:57

Here is the code.. the link os broken

<script>
let audioButton = document.querySelector('.audio-button')
audioButton.addEventListener("click", function(){
var audio = document.getElementById("audio");

if (audio.paused) {
audio.play();
}else{
audio.pause();
// audio.currentTime = 0
}
});
</script>

<audio id="audio" src=""></audio>

Ответить
Oksana Melnyk
Oksana Melnyk - 05.05.2022 14:32

Thanks for help!

Ответить
Nocap Financials
Nocap Financials - 27.04.2022 07:48

Thanks, hopefully, Elementor will release a feature for this soon....

Ответить
Pablo Ibarguren
Pablo Ibarguren - 18.04.2022 06:43

I hope that the google translator does its job well hahaha.
is it possible to play an audio just by hovering over it, instead of having to click it?

Ответить
UGN
UGN - 02.04.2022 14:49

super nice! thx!
I have multiple images with sound and was wondering how I can stop playing one sound when the other starts playing. Right now everything is playing at the same time :D

Ответить
Abdul Khalek
Abdul Khalek - 21.03.2022 16:41

thanks

Ответить
TheSuicideFist
TheSuicideFist - 17.03.2022 11:45

Perfect super fantastic. You mind is made of gold. Thanks a million.

Ответить