Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

327
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda