Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

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


annyanderyn
Go to solution Solved by creedon,

Question

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 post
  • Answers 8
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular 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 t

@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; }  

Posted Images

8 answers to this question

Recommended Posts

  • 0
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

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, 360 Degree Photo block, Seperator Block (SVG Shape divider for sections)
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to post
  • 0
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;
}

 

Greeting, it's BaNgan from BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, 360 Degree Photo block, Seperator Block (SVG Shape divider for sections)
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...