Jump to content

How to add accordion element to all products in store

Go to solution Solved by tuanphan,

Recommended Posts

Hello, 

 

I was wondering if anyone has pointers on how to add an accordion to to all products (or many using tags) rather than adding individually through the additional info on each product description.

I have it done on this page as an example - https://boyangeorgiev.com/store/p/st-pauls-cathedral-at-sunset-photo-print

And I wish to be able to add it all/many products. I suppose this will require some coding which I'm okay with integrating. 

Would appreciate anyone's input!

Best,
Bobby

Screenshot2023-05-01at18_51_39.thumb.png.e751a7889108f5dcf7289eb6b4b27509.png

 

Photographer and 3D Animation Artist - https://boyangeorgiev.com/

Link to comment

If you want to use one accordion for all products, just add it into Site Footer, then we can give code to move accordion into all products

If you want to use different accordions on different tags, you can use plugin recommend by @abibacon 

I wrote a quick guide to apply this plugin, you can check here

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Thanks @abibacon and @tuanphan . I will go for the plugin approach!

 

@tuanphan could you help me with making product images to be contained ie be fully visible rather than cropped as they are right now?

You can use this page as an example - https://boyangeorgiev.com/store/p/azure-ascent-the-shard-at-twilight

I saw in the forum a similar discussion and tried using the following code as page injection but it doesn't work for me:
 

<style>

  .products.collection-content-wrapper .grid-item .grid-item-image {
  
    object-fit : contain !important;
    
    }
    
  </style>

So wondering if anyone could help me out on this one. 

 

best,
Bobby

Photographer and 3D Animation Artist - https://boyangeorgiev.com/

Link to comment
  • Solution
On 5/10/2023 at 1:10 AM, BobbyGeorgiev said:

Thanks @abibacon and @tuanphan . I will go for the plugin approach!

 

@tuanphan could you help me with making product images to be contained ie be fully visible rather than cropped as they are right now?

You can use this page as an example - https://boyangeorgiev.com/store/p/azure-ascent-the-shard-at-twilight

I saw in the forum a similar discussion and tried using the following code as page injection but it doesn't work for me:
 

<style>

  .products.collection-content-wrapper .grid-item .grid-item-image {
  
    object-fit : contain !important;
    
    }
    
  </style>

So wondering if anyone could help me out on this one. 

 

best,
Bobby

Add to Design > Custom CSS

img.pdp-gallery-slides-image {
    object-fit: contain !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

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