Tom_Labyrinth Posted December 8, 2021 Share Posted December 8, 2021 Site URL: https://www.labyrinthrecords.net/store/p/alexmedina-algorhytm-biesmans Hi all, I have amended the code so the second button ('DIGITAL DOWNLOAD') is inserted after the add to cart button (in my case 'BUY VINYL') - I have tried amending the CSS but have had no luck as of yet... How can I make the 2 buttons sit on the same line with the same styling? <script> jQuery(document).ready(function($) { $('#block-yui_3_17_2_1_1638977023564_39597').insertAfter(".sqs-add-to-cart-button-wrapper"); }); </script> Link to comment
Beyondspace Posted December 9, 2021 Share Posted December 9, 2021 22 hours ago, Tom_Labyrinth said: Site URL: https://www.labyrinthrecords.net/store/p/alexmedina-algorhytm-biesmans Hi all, I have amended the code so the second button ('DIGITAL DOWNLOAD') is inserted after the add to cart button (in my case 'BUY VINYL') - I have tried amending the CSS but have had no luck as of yet... How can I make the 2 buttons sit on the same line with the same styling? <script> jQuery(document).ready(function($) { $('#block-yui_3_17_2_1_1638977023564_39597').insertAfter(".sqs-add-to-cart-button-wrapper"); }); </script> Try adding to Home > Design > Custom Css .product-details { .sqs-add-to-cart-button-wrapper { margin-bottom: 0 !important; width: 50%; float: left; .sqs-add-to-cart-button { line-height: 1 !important; padding: 0.9rem 1.503rem !important; } + { .button-block { padding: 0 !important; width: 50%; float: left; clear: unset !important; a { line-height: 1 !important; padding: 0.9rem 1.503rem !important; } } } } } Let me know how it works on your site Support me by pressing 👍 if this useful for you BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! 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
Tom_Labyrinth Posted December 9, 2021 Author Share Posted December 9, 2021 5 hours ago, bangank36 said: Try adding to Home > Design > Custom Css .product-details { .sqs-add-to-cart-button-wrapper { margin-bottom: 0 !important; width: 50%; float: left; .sqs-add-to-cart-button { line-height: 1 !important; padding: 0.9rem 1.503rem !important; } + { .button-block { padding: 0 !important; width: 50%; float: left; clear: unset !important; a { line-height: 1 !important; padding: 0.9rem 1.503rem !important; } } } } } Let me know how it works on your site Support me by pressing 👍 if this useful for you Thanks for the suggestion, I have tried this and unfortunately does not work... the "+" triggers a syntax error and when i remove it, the CSS isn't applied. Any ideas? Link to comment
Solution Beyondspace Posted December 9, 2021 Solution Share Posted December 9, 2021 (edited) 1 hour ago, Tom_Labyrinth said: Thanks for the suggestion, I have tried this and unfortunately does not work... the "+" triggers a syntax error and when i remove it, the CSS isn't applied. Any ideas? Kindly remove the previous code and use the following one .product-details .sqs-add-to-cart-button-wrapper { margin-bottom: 0 !important; width: 50%; float: left; } .product-details .sqs-add-to-cart-button-wrapper .sqs-add-to-cart-button { line-height: 1 !important; padding: 0.9rem 1.503rem !important; } .product-details .sqs-add-to-cart-button-wrapper + .button-block { padding: 0 !important; width: 50%; float: left; clear: unset !important; } .product-details .sqs-add-to-cart-button-wrapper + .button-block a { line-height: 1 !important; padding: 0.9rem 1.503rem !important; } Edited December 9, 2021 by bangank36 Tom_Labyrinth 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! 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
Tom_Labyrinth Posted December 10, 2021 Author Share Posted December 10, 2021 10 hours ago, bangank36 said: Kindly remove the previous code and use the following one .product-details .sqs-add-to-cart-button-wrapper { margin-bottom: 0 !important; width: 50%; float: left; } .product-details .sqs-add-to-cart-button-wrapper .sqs-add-to-cart-button { line-height: 1 !important; padding: 0.9rem 1.503rem !important; } .product-details .sqs-add-to-cart-button-wrapper + .button-block { padding: 0 !important; width: 50%; float: left; clear: unset !important; } .product-details .sqs-add-to-cart-button-wrapper + .button-block a { line-height: 1 !important; padding: 0.9rem 1.503rem !important; } Thanks for the help, the CSS you suggested got it on the same line - had to add the below too make sure it had the same styling - again thanks!! Beyondspace 1 Link to comment
Beyondspace Posted December 10, 2021 Share Posted December 10, 2021 14 minutes ago, Tom_Labyrinth said: Thanks for the help, the CSS you suggested got it on the same line - had to add the below too make sure it had the same styling - again thanks!! It's good to see this beautiful style on your site BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment