Jump to content

goodwincreative

Circle Member
  • Posts

    6
  • Joined

  • Last visited

Posts posted by goodwincreative

  1. Hi @brandon

    I've read through this thread and forgive me if I missed the answer. Thank you so much for putting this together - I have a huge job coming up that relies totally on labelled gallery images.

    But for my current project, I have a site with five galleries and I only want labels/descriptions on one of these. So, I determined the section data ID and placed it in the code injection as this:

    document.addEventListener("DOMContentLoaded", function() {
      addGalleryItemDescriptions(section[data-section-id="5e584f84750bff750e72e2a8"]);

    but it doesn't work. I tried a dot before the word section, no go. Have I misunderstood?

    I did consider 'hiding' the description on the other 4 galleries (lol) but if client in future wants to add a gallery they won't have the skill to do this.

    I've double checked the id a few times - I'm sure it's correct.


    Thanks for your advice, if I sort this - it's gonna make a huge difference for future projects!

    Jude

    https://caper-cinnamon-7xmy.squarespace.com/history-of-the-fair?p

    farmers

     

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.