FROM CACHE - zh-cn_header

How to change the position of the add to cart button and dynamic checkout button?

已解决

How to change the position of the add to cart button and dynamic checkout button?

LeeYee
观光客
9 0 0

I want to move the red circled part to the below add-to-cart. How can I do this? My theme is impact.

LeeYee_0-1724398515992.png

 

1 个已接受解答

uiooo
Shopify Partner
140 14 17
解决方案

导航到模板装修,产品页模板,在自定义css上放置如下代码

/* Container styling for the buttons */
.buy-buttons.buy-buttons--multiple {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Adjust spacing between buttons as needed */
}

/* Styling for the "Add to cart" button */
.buy-buttons.buy-buttons--multiple .button {
  width: 100%;
  max-width: none;
}

/* Styling for the "Buy it now" button */
.buy-buttons.buy-buttons--multiple .shopify-payment-button {
  width: 100%;
  max-width: none;
}

164048.png

ZunDuJiaDu

在原帖中查看解决方案

2 条回复2

uiooo
Shopify Partner
140 14 17
解决方案

导航到模板装修,产品页模板,在自定义css上放置如下代码

/* Container styling for the buttons */
.buy-buttons.buy-buttons--multiple {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Adjust spacing between buttons as needed */
}

/* Styling for the "Add to cart" button */
.buy-buttons.buy-buttons--multiple .button {
  width: 100%;
  max-width: none;
}

/* Styling for the "Buy it now" button */
.buy-buttons.buy-buttons--multiple .shopify-payment-button {
  width: 100%;
  max-width: none;
}

164048.png

ZunDuJiaDu
LeeYee
观光客
9 0 0

Thank you so much!! It works!!