Jump to content

BlockHead

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by BlockHead

  1. On 10/6/2022 at 5:15 PM, BlockHead said:

    @tuanphan

    Please pardon the duplicate, but I'm switching accounts and need to receive responses on this account.  I asked the question above as RHenny:

    Hello Tuan,

    I am attempting to do something like this, using querySelector, via JavaScript, to append new divs to the grid-items of the grid-list on the products page.  I'm just guessing this is the only way to do this, as I don't see a way to alter that section.

    Can you help with this?  Should I start a new thread?

    Thank you

    I just wanted to update my post with my solution. 

    I originally used the Page Header Code Injection to add the script but it didn't work.  My thought was that the parent divs I was attempting to append to were not loaded yet and that they couldn't be found.  I then added the script to the footer, via a code block, and this solved it—allowing the parent divs where I wanted to append the new divs to load first.
     

  2. @tuanphan

    Please pardon the duplicate, but I'm switching accounts and need to receive responses on this account.  I asked the question above as RHenny:

    Hello Tuan,

    I am attempting to do something like this, using querySelector, via JavaScript, to append new divs to the grid-items of the grid-list on the products page.  I'm just guessing this is the only way to do this, as I don't see a way to alter that section.

    Can you help with this?  Should I start a new thread?

    Thank you

×
×
  • 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.