Change image on accordion tab click in Elementor Pro

Поділитися
Вставка
  • Опубліковано 27 вер 2024
  • Learn how to change an image whenever a user opens an accordion.
    Source Code:
    urielsoto.com/...
    🟢 Email Technical Support:
    urieljsoto.gum...
    🔵 Video Call Technical Support:
    urieljsoto.gum...
    🔴 Download My Custom Templates:
    urieljsoto.gum...
    🔵 Join Our Facebook Community!
    bit.ly/urielsot...
    🟢 Hire Me:
    urielsoto.com/...
    🟢 My Web Agency:
    vluxdesigns.com/
    PRODUCTS I USE FOR MY WEBSITES:
    🔴 Get Elementor Pro - My Favorite Page Builder
    bit.ly/urielele...
    CONTACT ME:
    My Website: urielsoto.com/​
    Facebook: / urielsotodev
    Linkedin: / uriel-soto-976b3117a

КОМЕНТАРІ • 67

  • @oOKiniaKissOo
    @oOKiniaKissOo 3 місяці тому +2

    Omg I was fighting with chat gpt and copilot all day to tell me how to do it and they FAILED. I can't believe I didn't search on youtube earlier. with your video I did it in 10 minutes it wasn't even difficult. YT is always filled with heroes like you who don't wear capes 😂 You saved me thank you!!

  • @LytboxStudio
    @LytboxStudio 2 роки тому +5

    I dig this method for the switching images. Another good one! Cheers!

    • @UrielSoto
      @UrielSoto  2 роки тому +1

      Thanks man! Nice to see you here

    • @dzakiahsana6
      @dzakiahsana6 2 роки тому

      @@UrielSoto Hii, i have problem. I use advanced accordion from essential addon cause need customize the content with save template. But this accordion nothing number like #elemenotor-tab-3435 do u have idea for this?

  • @combinedcreative
    @combinedcreative 8 місяців тому +2

    I noticed that Elementor changed its tags so now had to use "#e-n-accordion-item-" and it works perfectly.
    However is there any way to get a smooth fadeIn of the image after you click?

  • @matheuss1810
    @matheuss1810 11 місяців тому +3

    Muito obrigado, salvou um brasileiro😀

  • @aryahmdm
    @aryahmdm Рік тому +5

    is there any css to make the image fade in/out whenever we switch between image? This is a great tutorial btw, thank you!

    • @zamilahamed
      @zamilahamed Рік тому

      After this line: jQuery(".toggle-img img").attr('src',img)
      Add this code:
      .animate({opacity: '0'}).animate({ opacity: '1'});

  • @potokipaul
    @potokipaul 3 місяці тому

    thank you, this worked perfectly

  • @robertacerami3036
    @robertacerami3036 Рік тому +1

    how can I use video instead img?

  • @haley5501
    @haley5501 Рік тому

    I need two of these accordions on the same page. It's not working under this instance.

  • @BMikel
    @BMikel 2 роки тому +1

    Is it possible to use one function to change img src dynamically? Maybe create variable for img src and update it according to left link href

    • @UrielSoto
      @UrielSoto  2 роки тому

      Can you elaborate on this?

  • @PriyathamMuddala
    @PriyathamMuddala 10 місяців тому

    How do I do it for the Divi theme builder?

  • @bflsridersrepublic2999
    @bflsridersrepublic2999 Рік тому

    Is it possible to reverse this so that when you click on an image it opens the accordion.

  • @prokassim
    @prokassim 2 роки тому

    Great Tutorial, thank you very much.

  • @NiharSajal
    @NiharSajal Рік тому

    Thank you so much brother

  • @secession77
    @secession77 Рік тому

    And how does it look on mobile view?

  • @fernandovalle05
    @fernandovalle05 Рік тому

    thank u, great tutorial.

  • @justtubing3719
    @justtubing3719 Рік тому +1

    Tried this but nothing worked.

  • @ariefhanyy
    @ariefhanyy 2 місяці тому

    I'm wondering if this mobile responsive too?

  • @Moderator.
    @Moderator. Рік тому +2

    Not working anymore.

    • @freereinveterans
      @freereinveterans Рік тому

      I noticed the same unfortunately. The title "tab" labeling doesn't seem to exist anymore when I inspect. Looks like elementor updated their accordion widget and that may be part of the problem?

    • @ThatGuyBarrold
      @ThatGuyBarrold 9 місяців тому +1

      @@freereinveterans inspect the element. I had to update from "#elementor-tab-title-" to "#e-n-accordion-item-" and then it worked perfectly 👌😁

    • @DeanneBawar
      @DeanneBawar 7 місяців тому +1

      @@ThatGuyBarrold Thank you for your comment!! I was lost because it's not working but your comment is the solution to make it work.

    • @astralinerscity
      @astralinerscity Місяць тому +1

      @@ThatGuyBarrold saved the day, thanks

  • @rubenbad1869
    @rubenbad1869 2 роки тому

    Nice work, Thanks. is it possible to get something similar but on hover! like using a icon box ou image box, 3 or 4 widgets, when we hover the text, the image change?

    • @UrielSoto
      @UrielSoto  2 роки тому +1

      Yes Ill add it to the list. Change image on hovering a different element

  • @watchandlearn7945
    @watchandlearn7945 Рік тому

    Thank you and subsribed your channel 👍👍👍👍👍👍

  • @AwaisKhokhar02
    @AwaisKhokhar02 Рік тому

    I can't see any css to animate image while loading. It's just simply change.

  • @sergiopinna3818
    @sergiopinna3818 11 місяців тому

    How can I use this metod to change a Elementor video block?

  • @pedrosanhueza7747
    @pedrosanhueza7747 5 місяців тому

    You're the best

  • @bySterling
    @bySterling Рік тому

    Very cool!

  • @TerryApodaca
    @TerryApodaca 2 роки тому +2

    Great tutorial, but I have one request/issue:
    How can we change back to the very original image if the user closes all the tabs?

    • @rikderks
      @rikderks Рік тому +1

      Have your desired first image as the accordeon item no1

  • @akhileshkesharwani9209
    @akhileshkesharwani9209 Рік тому

    Brother this is not working with tab. have you made and tutorial on the same method using tab?

    • @UrielSoto
      @UrielSoto  Рік тому

      Tab might use a different css class

  • @BrunoMucheroni
    @BrunoMucheroni Рік тому +1

    no work in firefox

  • @mayavadstudiosadmin
    @mayavadstudiosadmin Рік тому

    not working in firefox, demonstrate with elementor pro

  • @DonDiablo_US
    @DonDiablo_US 10 місяців тому

    Gracias

  • @GGT5323
    @GGT5323 Рік тому

    Thanks bro !

    • @GGT5323
      @GGT5323 Рік тому

      I used it divi

  • @jessaesguerra5631
    @jessaesguerra5631 2 роки тому

    How to add multiple images?

    • @UrielSoto
      @UrielSoto  2 роки тому

      I'll have something coming out soon.

  • @luanafabianski2862
    @luanafabianski2862 9 місяців тому +1

    testei exatamente como no vídeo e não funcionou

  • @DipeshSharma93
    @DipeshSharma93 Рік тому +1

    Is it possible to add animation for images on change? If so, please share code. Thank you :)

  • @anupamajosh
    @anupamajosh 8 місяців тому +1

    Great video. I was looking for this and found it. Thanks for your amazing content. Keep them coming!!!

  • @viniciuspalu
    @viniciuspalu Рік тому +1

    Hi thx for the great content.
    How can I use this metod to change a Elementor video block?

  • @mageshraja4187
    @mageshraja4187 Рік тому +1

    Great & Easy Method, Thank You, Uriel Soto :)

  • @nenadjovanovic1626
    @nenadjovanovic1626 Рік тому

    Hey man, got a more complicated problem so I thought if you have time you could help me. I have tabs, and above the tabs, actually the header pages that I want to be changed when the one of the tabs is clicked, I tried with slides but I'm new in this so I don't know how to connect them, I could try with images but I need template cuz there is text on that page, sorry for messy explanation, hope you see this.

  • @AadityaSharmas
    @AadityaSharmas Рік тому

    It's working fine, if we want to replace not even an image but a div or full widget? (call to action elementor widget) then what will be code?

  • @ldelmar3875
    @ldelmar3875 10 місяців тому

    is there any solution that would not require coding? I basically just want the headlines on the left and the switch the content on the right (being different containers that I can edit and customize in elementor)

    • @UrielSoto
      @UrielSoto  10 місяців тому

      Using the experimental feature called nested elements or just adding a elementor template shortcode

  • @tabeascherling6786
    @tabeascherling6786 Рік тому

    How do I have to edit the code, when I have more than 1 of these accordions on one singe page?

  • @WickyDesign
    @WickyDesign 2 роки тому

    Nice! Thanks for sharing this Elementor trick!

  • @DeanneBawar
    @DeanneBawar 7 місяців тому

    Very HELPFUL!! THANK YOUU!

  • @shreyankputhran2396
    @shreyankputhran2396 Рік тому

    Thank you for helping people who don't use Pro.

  • @gracegroenewald
    @gracegroenewald Рік тому

    Thanks, just what I was looking for!

  • @gtech7932
    @gtech7932 9 місяців тому

    Can we do same with video?

  • @dzakiahsana6
    @dzakiahsana6 2 роки тому

    This is SUPER dude!

  • @lodeluyckx
    @lodeluyckx 10 місяців тому

    Thank you!