Jump to content

How To Install + Dropdown Accordion in a Product Description

Recommended Posts

On 12/20/2020 at 7:48 AM, Abbruzzini said:

@divar How did you get your sizing options like this as well as having the sizing guide pop up next to it?

579931490_ScreenShot2020-12-19at4_48_13PM.thumb.png.b1d478df05b4208ff8eb8d28d40125ed.png

I did size guide + size squares on their site.

I used Anything Lightbox Plugin (+ some custom code to move size guide on right of squares size)

With size squares, you can use Product Color/Image Variant Plugin.

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 3 weeks later...
On 1/10/2021 at 9:41 PM, LotusOriental said:

I was wondering if you could help me with building something similar to this please? 

For the benefit of anyone reading this thread, the site in your screenshot was built on Shopify, not Squarespace. This means that many of the features are not available on Squarespace and would need to be coded.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment
  • 1 month later...
  • 4 months later...
On 6/25/2021 at 2:03 AM, KatyaK said:

Is it possible to add images or gallery blocks into this dropdown accordion?

Here is the link to a product page I'm working on: https://www.aaline.ca/beta/linear-embedded-azw3l

I want to add images of materials and finishes taken from this page: https://www.aaline.ca/lighting/linear-embedded

You can use Accordion Tabs Plugin. Thus, you can add anything into accordion content.

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 month later...

@kirstie.pallier

Your code is not initializing.

385053629_ScreenShot2021-07-29at8_33_43PM.png.bee9532d3722f014c62a8da7da837687.png

I was able to get the code to run here locally after the entire page had loaded.

459658318_ScreenShot2021-07-29at8_36_42PM.png.85ff96e97b5067ffde4d727d373b48db.png

This indicates to me that Squarespace.onInitialize is not available when called. I've not used Squarespace.onInitialize so I'm not familiar with it.

An alternative would be to use jQuery's document ready.

Can anyone familiar with Squarespace.onInitialize provide insight?

 

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 1 year later...
45 minutes ago, creedon said:

Please see the following.

 

I was able to move the accordion below the description, thank you! However it's now at the top --above the price, quantity, and add to cart button--on mobile. Any code to keep the same desktop arrangement for mobile? aka move the accordion to the bottom for mobile.

Link to comment
19 minutes ago, abisquarespace said:

I was able to move the accordion below the description, thank you! However it's now at the top --above the price, quantity, and add to cart button--on mobile. Any code to keep the same desktop arrangement for mobile? aka move the accordion to the bottom for mobile.

essentially how can I make this code...:

<script      src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
  $(document).ready(function() { 
        $('section.ProductItem-additional').insertAfter('.ProductItem-details-excerpt');
    });
</script>
<style>
  section.ProductItem-summary {
    align-items: flex-start !important;
}
  section.ProductItem-additional {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}
</style>

 

...work on desktop only

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.