How to align buttons

Solved

How to align buttons

margo141
Explorer
42 0 10

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
2678 348 396

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
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

View solution in original post

Replies 12 (12)

suyash1
Shopify Partner
10872 1345 1719

@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.

Dan-From-Ryviu
Shopify Partner
11612 2276 2456

Hi @margo141 

Please share your store link so I can check 

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

Dan-From-Ryviu
Shopify Partner
11612 2276 2456

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 & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

margo141
Explorer
42 0 10

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

namphan
Shopify Partner
2678 348 396

Hi @margo141,

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

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

Viralmint
Shopify Partner
38 5 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 reply helpful, please hit Like and Mark it 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.



Thank You,
ViralMint Support Team
Get a Free Quote | Email | Shopify Partner | Shopify Development Agency| Call Us 91 98903 26596
Location: Pune, Maharashtra, India 411045
margo141
Explorer
42 0 10

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
2678 348 396

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
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
margo141
Explorer
42 0 10

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

Many thanks!!!!! 

namphan
Shopify Partner
2678 348 396

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
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
margo141
Explorer
42 0 10

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