FROM CACHE - zh-cn_header
此社区已转向点对点支持。Shopify 支持团队将不再为此社区提供服务。我们建议您与其他商家和合作伙伴建立联系以获取帮助,并分享您的经验! 如发现有任何违反我们行为准则的行为或您希望删除的内容,欢迎继续举报。

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
159 14 19
解决方案

导航到模板装修,产品页模板,在自定义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
159 14 19
解决方案

导航到模板装修,产品页模板,在自定义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!!