How to Add Music to Elementor Background Video on Autoplay

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น • 28

  • @VICENTXIII
    @VICENTXIII ปีที่แล้ว

    You are the greatest man thanks

  • @GiovanniDeLaRosa-s9w
    @GiovanniDeLaRosa-s9w ปีที่แล้ว +1

    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
      @itscesargil  ปีที่แล้ว

      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
      @dorcasukueje945 ปีที่แล้ว

      I'm having the same issue. Please where you able to find a solution for it?

  • @MalikAwais-k5o
    @MalikAwais-k5o 3 หลายเดือนก่อน

    how can we unmute bg video by default?

  • @creatrixarena3113
    @creatrixarena3113 7 หลายเดือนก่อน

    can some pls tell me how to change the hover effect to volume on while clicking. Please help

  • @BeautyGlow_Tips
    @BeautyGlow_Tips 6 หลายเดือนก่อน

    there is not sound on background? for what i was looking for

    • @itscesargil
      @itscesargil  6 หลายเดือนก่อน

      how may i be of assistance ?

    • @BeautyGlow_Tips
      @BeautyGlow_Tips 6 หลายเดือนก่อน

      @@itscesargil i wanted to ask where t put the Java code its the confusing thing for me

    • @itscesargil
      @itscesargil  6 หลายเดือนก่อน

      @@BeautyGlow_Tips 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

  • @JaswinderSingh-zq3jw
    @JaswinderSingh-zq3jw 2 ปีที่แล้ว +1

    Where we can put that code please help me.

  • @jacobwonder6735
    @jacobwonder6735 2 ปีที่แล้ว +1

    Exactly what I needed! Thank you so much for your video.

    • @jacobwonder6735
      @jacobwonder6735 2 ปีที่แล้ว

      Not working on mobile if I clone the section. :/

    • @itscesargil
      @itscesargil  2 ปีที่แล้ว

      @@jacobwonder6735 Hi! Can you specify what's not working?

    • @jacobwonder6735
      @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
      @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
      @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');
      } }); });

  • @HuyPham-qi9up
    @HuyPham-qi9up 9 หลายเดือนก่อน +1

    help me. it not working

  • @ehsanalee8008
    @ehsanalee8008 2 ปีที่แล้ว +1

    Hey great video, I have followed all as you did. but still, confusion where to add that javascript code?

    • @takaruangdesign1406
      @takaruangdesign1406 2 ปีที่แล้ว

      do you get the answer already? i kind of hard too, please give me some advice

  • @hichmaz1241
    @hichmaz1241 7 หลายเดือนก่อน

    where to put the HTML code please?
    Thks

  • @saeedmohsen1482
    @saeedmohsen1482 5 หลายเดือนก่อน

    you are the best thanks alot ♥♥♥

  • @muhammadmridulhosenkibria9934
    @muhammadmridulhosenkibria9934 2 ปีที่แล้ว +1

    this video is not working

  • @jyljeanne2937
    @jyljeanne2937 8 หลายเดือนก่อน +1

    not working dommage 🤷

    • @itscesargil
      @itscesargil  8 หลายเดือนก่อน

      dang. it use to work lol. elementor has had a lot of updates since this video, unfortunately

    • @hayagoldberg3525
      @hayagoldberg3525 6 หลายเดือนก่อน +1

      @@itscesargil worked for me