Jump to content

Code to centre "add to cart" button on custom product form

Recommended Posts

Site URL: https://www.annyanderyn.com/shop/p/mini-speech-bubble

Hoping someone can help me with some code (I'm a novice!). I'm trying to move the "add to cart" button on our custom product form to the centre. I've tried text-align:centre !important but it doesn't seem to work. I'm struggling to isolate the block ID to make this happen. Can anyone help? 

Site: https://www.annyanderyn.com/shop/p/mini-speech-bubble (click on add to cart & the form will pop up)

PW: distinct62

Thank you!

image.thumb.png.a2d78baa215ad2e5dc433efba8c9c9ad.png

Link to comment
  • Replies 8
  • Created
  • Last Reply
22 minutes ago, annyanderyn said:

Site URL: https://www.annyanderyn.com/shop/p/mini-speech-bubble

Hoping someone can help me with some code (I'm a novice!). I'm trying to move the "add to cart" button on our custom product form to the centre. I've tried text-align:centre !important but it doesn't seem to work. I'm struggling to isolate the block ID to make this happen. Can anyone help? 

Site: https://www.annyanderyn.com/shop/p/mini-speech-bubble (click on add to cart & the form will pop up)

PW: distinct62

Thank you!

image.thumb.png.a2d78baa215ad2e5dc433efba8c9c9ad.png

You can try this in Design->Custom CSS

sqs-modal-lightbox-content .lightbox-inner .lightbox-content .form-wrapper [data-animation-role="button"] {
    text-align: center;
}

image.thumb.png.7c87e06305c9218e6a564dc2ea44580e.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
6 minutes ago, annyanderyn said:

@bangank36 Thank you for this. I can see it worked on your screenshot but sadly hasn't worked on mine 😞 - am I likely to have conflicting code somewhere?

That my bad with typo

.sqs-modal-lightbox-content .lightbox-inner .lightbox-content .form-wrapper [data-animation-role="button"] {
    text-align: center;
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.