BobbyGeorgiev Posted May 1 Share Posted May 1 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 Photographer and 3D Animation Artist - https://boyangeorgiev.com/ Link to comment
abibacon Posted May 3 Share Posted May 3 Hey @BobbyGeorgiev, this Section Loader plugin allows you to build a section once and then use it in multiple places on your site. You're able to update the section in one place and all instances will automatically update too. (Affiliate Link) Squarespace Developer based in Hampshire, England If you'd like to make a contribution for my time you can Buy Me A Coffee. Link to comment
tuanphan Posted May 6 Share Posted May 6 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 abibacon 1 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
BobbyGeorgiev Posted May 9 Author Share Posted May 9 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 tuanphan Posted May 11 Solution Share Posted May 11 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; } BobbyGeorgiev 1 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
BobbyGeorgiev Posted May 11 Author Share Posted May 11 8 minutes ago, tuanphan said: Add to Design > Custom CSS img.pdp-gallery-slides-image { object-fit: contain !important; } Thanks Tuan, that did the trick! Photographer and 3D Animation Artist - https://boyangeorgiev.com/ Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment