Jump to content

Product details. Trying to move accordion under the 'add to cart button'

Recommended Posts

Site URL: https://www.gohsh.com

Hi! I'm trying to move the accordion text under the 'add to cart' button. Can someone help? thank you in advance!! I also want to move the PRODUCT title to like up with the top of the image on the left. Last time someone gave me the coding for it...and it worked but now it doesn't seem to be lining up anymore. This was the coding that was given to me last time that doesn't work anymore.

 

.tweak-product-basic-item-content-alignment-top .ProductItem-details, .tweak-product-basic-item-gallery-design-stacked .ProductItem-details {
  padding-top:0px;
}

 

Image.png

Edited by glorea
Link to comment
  • glorea changed the title to Product details. Trying to move accordion under the 'add to cart button'
  • Replies 1
  • Views 164
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Hi,

Try adding to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
$('section.ProductItem-additional .accordion-block').insertAfter('.ProductItem-details .sqs-add-to-cart-button-wrapper');
});
</script>
<style>
.ProductItem-details-checkout .accordion-block {
    order: 5 !important;
}
</style>

 

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

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.