Shopify themes, liquid, logos, and UX
Hi,
I have a hundreds of product that is assigned to a special template called "Special-order".
I want to remove the "Buy It Now" button only from all products within this template.
I want to keep the other button "Beställ" and make it centered.
Any specialist that could help me with this?
Lots of love xx
Sorry for facing this issue, it's my pleasure to help us.
Welcome to the Shopify community!
and Thanks for your Good question. 😊
Please share your site URL,
So I will check and provide a solution here.
Hi @Hugobrunto,
Please go to Actions > Edit code > Layout >theme.liquid file and paste the below code before </head>:
{%- if template contains 'Special-order' -%}
<style>
.product-form__buttons .product-form__submit {
width: 100%;
}
.product-form__buttons .shopify-payment-button {
display: none;
}
</style>
{%- endif -%}
hello @Hugobrunto
Go to online store ----> themes ----> actions ----> edit code ---->assets ----> base.css
add the code end of the file
{%- if template contains 'Special-order' -%}
<style>
.product-form__buttons .product-form__submit {
display: block;
margin: 0 auto;
width: 100%;
}
.product-form__buttons .shopify-payment-button {
display: none;
}
</style>
{%- endif -%}
If this was helpful, hit the like button and accept the solution.
Thanks
Hi @Hugobrunto
You can do that by adding this CSS code to Custom CSS of product information section of that product template in theme's customize
.shopify-payment-button { display: none; }
- 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.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024