Jump to content

add image to drop down accordion

Recommended Posts

  • Replies 11
  • Views 1.8k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
Posted (edited)

I it added on the link above under size Guide i have linked the following: the image to Table but this opens the images in the tab instead of showing when accordion is being unfolded. 

The page is not a product page from squarespace I build the page myself.

Edited by Hoeht-studio
Posted

Add this code to bottom of Website Tools > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
  jQuery(document).ready(function($){
  $('div#block-yui_3_17_2_1_1701098820027_2447').insertAfter('div#block-yui_3_17_2_1_1692163036742_2082 li:nth-child(2) p:last-child');
})
</script>

image.thumb.png.00b8b197d396ce04509057648778736a.png

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!)

Posted (edited)

The table shows under details instead of size guide

does this code apply it to all my product pages? if not how can I do this?

image.thumb.png.e4777dfea9eee8debafb137d30d7b089.png

 

Edited by Hoeht-studio

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.