Jump to content

[Share] Add same accordion block to all products

Recommended Posts

Posted

To add same accordion block with same info to additional info on all products, you can follow these steps.

If code doesn't work, you can send link to a product, I will check it again.

#1. Edit Site Footer

image.png.fb258273089cad9ac58ee46de9941ab7.png

#2. Add an Accordion Block to Site Footer

image.png.b42a9b9f9ca8b795361ec29d05cd2896.png

#3. Use this code to Custom CSS box

footer.sections .accordion-block {
    display: none;
}

image.png.98a4a3e667d290e7ce06e0c4e37b180c.png

#4. Use this code to Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('footer.sections .accordion-block').insertAfter('.ProductItem-summary');
});
</script>

image.png.2d941c85dc4bf7dc7fdee7abcec16907.png

#5. Result

image.png.921f2e11d96c90294eff241df207b665.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!)

  • Replies 0
  • Views 395
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.