Exactly what I needed! Thank you so much for your video.
@jacobwonder6735
2 жыл бұрын
Not working on mobile if I clone the section. :/
@itscesargil
2 жыл бұрын
@@jacobwonder6735 Hi! Can you specify what's not working?
@jacobwonder6735
2 жыл бұрын
@@itscesargil Thanks for replying! If I set it up to it working, clone it, set the first to be desktop only, and the second mobile only, the button does NOT work on mobile. I suspect the classes being the same might be the issue.
@jacobwonder6735
2 жыл бұрын
@@itscesargil Basically I need to rewrite the JS with different class names, so that's what I have to figure out! Ha. I am unsure how toggle_sound is in the JS
@jacobwonder6735
2 жыл бұрын
@@itscesargil Solved it! toggle_sound does nothing, the icon does NOT need a class. The JS identifies the button by the class the mute icon ads. So to solve for that, I simply need to change the icon the mobile only section sees, and put the new class in the OG code. I just duplicated it. document.addEventListener('DOMContentLoaded', function() { var toggleSoundButton = document.querySelector('.fa-volume-mute'); var heroBackgroundVideo = document.querySelector('.herosection video'); toggleSoundButton.addEventListener('click', function (event) { if (heroBackgroundVideo.muted !== false){ heroBackgroundVideo.muted=false; toggleSoundButton.classList.add('fa-volume-up'); } else { heroBackgroundVideo.muted=true; toggleSoundButton.classList.remove('fa-volume-up'); } }); }); document.addEventListener('DOMContentLoaded', function() { var toggleSoundButton = document.querySelector('.fa-volume-off'); var heroBackgroundVideo2 = document.querySelector('.herosection2 video'); toggleSoundButton.addEventListener('click', function (event) { if (heroBackgroundVideo2.muted !== false){ heroBackgroundVideo2.muted=false; toggleSoundButton.classList.add('fa-volume-up'); } else { heroBackgroundVideo2.muted=true; toggleSoundButton.classList.remove('fa-volume-up'); } }); });
@user-hp7lm9bo7s
11 ай бұрын
Great video, I just did everything all works perfect, but when I duplicated the section for mobile and dropped in my mobile resized video the volume button stopped working on the desktop video. Did you make two sections with two different sets of codes for mobile and desktop? Or did you use one video for both?
@itscesargil
11 ай бұрын
I believe it's just one video/section. It's been a while lol. But if you are having issues with mobile then yes I would try creating a specific version for mobile
@dorcasukueje945
7 ай бұрын
I'm having the same issue. Please where you able to find a solution for it?
@JaswinderSingh-zq3jw
2 жыл бұрын
Where we can put that code please help me.
@creatrixarena3113
2 ай бұрын
can some pls tell me how to change the hover effect to volume on while clicking. Please help
@ehsanalee8008
2 жыл бұрын
Hey great video, I have followed all as you did. but still, confusion where to add that javascript code?
@takaruangdesign1406
2 жыл бұрын
do you get the answer already? i kind of hard too, please give me some advice
@hichmaz1241
2 ай бұрын
where to put the HTML code please? Thks
@BeautyTipsforgirls3
Ай бұрын
there is not sound on background? for what i was looking for
@itscesargil
Ай бұрын
how may i be of assistance ?
@BeautyTipsforgirls3
Ай бұрын
@@itscesargil i wanted to ask where t put the Java code its the confusing thing for me
@itscesargil
Ай бұрын
@@BeautyTipsforgirls3 I see! I believe there has been several elementor updates made so unfortaintely the video isn't exactly the same steps as it once was
@HuyPham-qi9up
4 ай бұрын
help me. it not working
@muhammadmridulhosenkibria9934
2 жыл бұрын
this video is not working
@jyljeanne2937
3 ай бұрын
not working dommage 🤷
@itscesargil
3 ай бұрын
dang. it use to work lol. elementor has had a lot of updates since this video, unfortunately
Пікірлер: 26