How to align buttons

Solved

How to align buttons

margo141
Tourist
11 0 3

How to align "add to cart button" , "share" and " wish list" buttons together side by side in Trade version?

I've tried many things, but the button does not want to move(((( Please someone help me

Screenshot 2024-09-25 142807.png

Accepted Solution (1)
namphan
Shopify Partner
1335 164 199

This is an accepted solution.

Hi @margo141,

Please go to Actions > Edit code > Assets > section-main-product.css file and paste this at the bottom of the file:

.product__info-container .st-wishlist-button {
    float: right;
    margin-top: 5px;
}
.product__info-container .product-form {
    max-width: calc(100% - 60px);
}
.product__info-container .product-form .product-form__buttons {
    max-width: 100% !important;
}

  

Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? namphan992@gmail.com

View solution in original post

Replies 12 (12)

suyash1
Shopify Partner
9876 1228 1566

@margo141 - I think all of these fields are having separate sections and hence those are not moving, ,ay need code editing

To build shopify pages use pagefly | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30. | Support me

Dan-From-Ryviu
Shopify Partner
9668 1936 1971

Hi @margo141 

Please share your store link so I can check 

- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

Dan-From-Ryviu
Shopify Partner
9668 1936 1971

Please add this code to theme.liquid file, after <head> in Sale channels > Online Store > Themes > click '...' in current theme > Edit code 

<style>
.product #shopify-block-swishlist_simple_wishlist_wishlist_product_button_cgytHr {
float: right;
margin-top: 28px;
}
.product .product-form { max-width: calc(100% - 70px); }
</style>

Screenshot 2024-09-26 at 11.23.18.png

- Helpful? Like and Accept solution! Support me! Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

margo141
Tourist
11 0 3

Thank you so much, but it did not work out(((

namphan
Shopify Partner
1335 164 199

Hi @margo141,

Please send me the store link, I will check it for you

Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? namphan992@gmail.com

Viralmint
Shopify Partner
11 2 3

Hello @margo141 

Please add below css code to theme.css file

div#shopify-block-swishlist_simple_wishlist_wishlist_product_button_cgytHr {
right: 0;
position: absolute;
margin-top: 20px;
}
product-form.product-form {
width: 100%;
position: relative;
margin-top: 15px !important;
max-width: 85%;
}

Viralmint_0-1727344015321.png

 

If you find our suggestions helpful, please consider giving them a like or marking them as a solution.

For custom designs and solutions, feel free to contact us. We offer 360-degree services to help scale your e-commerce brand. Don't hesitate to reach out!
https://viralmint.in/viralmint-shopify-community/


margo141
Tourist
11 0 3

Thank you so much, but it worked out only for two products... I do not have a Theme.css file, so I put it in assets/section-main-product.css file and it worked for 2 products. But how can I change the rest of them? 

namphan
Shopify Partner
1335 164 199

This is an accepted solution.

Hi @margo141,

Please go to Actions > Edit code > Assets > section-main-product.css file and paste this at the bottom of the file:

.product__info-container .st-wishlist-button {
    float: right;
    margin-top: 5px;
}
.product__info-container .product-form {
    max-width: calc(100% - 60px);
}
.product__info-container .product-form .product-form__buttons {
    max-width: 100% !important;
}

  

Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? namphan992@gmail.com
margo141
Tourist
11 0 3

Thank you so much!!!! it worked out great!!!!!! 

Many thanks!!!!! 

namphan
Shopify Partner
1335 164 199

Hi @margo141,

If you have any questions, you can contact me directly at email in signature.

Nice to meet you 😊

Coffee tips fuels my dedication.
Shopify Development Service
Need help with your store? namphan992@gmail.com
margo141
Tourist
11 0 3

Thank you so much!! Nice to meet you as well