1. PROMO Get 60% OFF Lifetime Pro Membership & access all our Pro Divi Extensions, Divi Layouts, Divi AI Generator, Divi Block, etc.VIEW PRICING
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color.
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Gallery not displaying correctly with CSS custom code

Discussion in 'Free Divi Community Forum' started by Vanessa Barcelos, Jun 7, 2024.

  1. Vanessa Barcelos

    Vanessa Barcelos New Member

    I have a page with a group of galleries. Each of them has a button on which the user is supposed to click so that it will open. While most galleries operate correctly, the last two on the bottom do not, since they are permanently open. I want to fix this by making all galleries open only after clicking on their respective buttons.
     

    Attached Files:

    1. PRO MEMBER PERKS Custom Color Scheme + Premade Layouts - A perfect combination to boost productivity:Try Now
  2. Divi Booster

    Divi Booster Divi Expert

    Hey Vanessa,

    I think the problem is that the rows containing the two non-working galleries have been put into the same section as their corresponding button.

    In contrast, the working buttons are formed from two sections, the first containing the button and the second containing the gallery. The second of these sections has its ID set to the ID the button is toggling.

    If you move the rows containing the problematic galleries into their own sections and add the correct IDs to those sections (i.e. SECCgallery and FUNDINGgallery), I think that should fix it. Note that you currently have an empty section with the "SECCgallery" id - you might want to either use or remove that section to avoid giving two sections the same ID.

    I hope that helps!
     
  3. Vanessa Barcelos

    Vanessa Barcelos New Member

    Hello, Dan

    Thank you so much for your response. I have now placed the buttons and the galleries in separate sections (blue and green). The buttons have their respective IDs. However, The problem still persist. Is there anything else you suggest I should try? Thanks one more time!
     
    1. PRO MEMBER PERKS Divi.Help One-Page Layouts - Beautifully crafted one-page Divi layouts just for you:View All Layouts
  4. Divi Booster

    Divi Booster Divi Expert

    You're very welcome, Vanessa.

    I just took a look and it looks to me to be working correctly now - clicking each of the the last two sections opens and closes the corresponding gallery, directly beneath the button.

    Hopefully it's working for you now too, but if not, try clearing your browser cache in case you're still seeing an old version of the page.