Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

331
Visualizações
WordPress: Divi Accordion Trigger - What is the best way to Trigger an Image Change as the user selects different sections of an accordion?

WordPress site - Divi Theme/Framework. I'm trying to figure out what is the best way to trigger an image change (6 images total, one per tab) as the user selects different parts of the accordion. But the catch is the images are not inside the accordion, they are in the next column. At first, I thought I could do this with just CSS and the ID's but I was running into issues. I know this can also be solved with JS but I am not as strong in JS as HTML/CSS these days.

Please let me know what you think is the best method to achieve something like this. Cheers!

Each Section of the Accordion has its own class:

 et_pb_accordion_0  
 et_pb_accordion_item_0   
 et_pb_accordion_item_1   
 et_pb_accordion_item_2     
 et_pb_accordion_item_3   
 et_pb_accordion_item_4  
 et_pb_accordion_item_5

Open and Closed Class: Open: et_pb_toggle_open Close: et_pb_toggle_close

I have added an ID to the Accordion of '#slidepick'

Here is the Output HTML from Divi for the first two sections of the Accordion:

<div id="slidepick" class="et_pb_module et_pb_accordion et_pb_accordion_0">
                
                
<div class="et_pb_toggle et_pb_module et_pb_accordion_item et_pb_accordion_item_0 et_pb_toggle_close">
                
                
    <h5 class="et_pb_toggle_title">Sample Content 1</h5>
    <div class="et_pb_toggle_content clearfix" style="display: none;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </div>
    </div><div class="et_pb_toggle et_pb_module et_pb_accordion_item et_pb_accordion_item_1 et_pb_toggle_open">
                
                
    <h5 class="et_pb_toggle_title">Sample Content 2</h5>
    <div class="et_pb_toggle_content clearfix" style="display: block;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
            </div>

Layout

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda