Shopify themes, liquid, logos, and UX
Would it be possible to change the following for the add to cart button on the product page:
1. Capitalize the first letters for -"Add" and "Cart"
2. Make text within the button bold.
3. Display dollar amount (no additional 0's)
Store link- https://b01a38-40.myshopify.com/
Code- dapolu
Solved! Go to the solution
This is an accepted solution.
Hello @IllIlIl1
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.product-form__buttons .product-form__submit {
font-weight: 900 !important;
text-transform: capitalize !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
for 3rd point you have to customize the code
This is an accepted solution.
Hi @IllIlIl1
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
.product-form__buttons span {
text-transform: capitalize!important;
font-weight: 700!important;
}
}
</style>
Here is result:
Hope this can help you, If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Go to Shopify Admin > Online Store > Themes.
Find your active theme, click "Actions," and select "Edit Code."
Locate the file where the product price is displayed. This is often in files like product.liquid, product-template.liquid, or a snippet file like price.liquid.
Find the price display code. It will likely look something like this:
Remove the cents from the price format. Update the code to only display the dollar amount by changing the format:
If the theme already uses a custom money format, you might see something like this:
In this case, you can change it to:
This is an accepted solution.
@IllIlIl1 If you really need to hide this .00, you can try add this code beside above:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </body> tag:
<script>
document.querySelectorAll(".product-form__buttons span")[0].innerHTML = document.querySelectorAll(".product-form__buttons span")[0].innerHTML.replace(".00", "")
</script>
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
Hello @IllIlIl1
You can add code by following these steps
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. Paste the below code before </body> on theme.liquid
<style>
.product-form__buttons .product-form__submit {
font-weight: 900 !important;
text-transform: capitalize !important;
}
</style>
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
for 3rd point you have to customize the code
Thanks, is it possible to remove the additional 0's so it's just the dollar amount?
This is an accepted solution.
Go to Shopify Admin > Online Store > Themes.
Find your active theme, click "Actions," and select "Edit Code."
Locate the file where the product price is displayed. This is often in files like product.liquid, product-template.liquid, or a snippet file like price.liquid.
Find the price display code. It will likely look something like this:
Remove the cents from the price format. Update the code to only display the dollar amount by changing the format:
If the theme already uses a custom money format, you might see something like this:
In this case, you can change it to:
This is an accepted solution.
Hi @IllIlIl1
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </head> tag:
<style>
.product-form__buttons span {
text-transform: capitalize!important;
font-weight: 700!important;
}
}
</style>
Here is result:
Hope this can help you, If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
This is an accepted solution.
@IllIlIl1 If you really need to hide this .00, you can try add this code beside above:
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above </body> tag:
<script>
document.querySelectorAll(".product-form__buttons span")[0].innerHTML = document.querySelectorAll(".product-form__buttons span")[0].innerHTML.replace(".00", "")
</script>
Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges: Get more sales with striking labels, badges, and banners from our 10,000+ available templates.
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Thanks!
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