Shopify themes, liquid, logos, and UX
Hi can you please help me with the CSS code? I want to change the color of the button that says add to bag. make the outline white, inside ''9D9898'' and the colour of letter black
URL: matibrnd.com
password: biangu
- Here is the solution for you @MT27
- Please follow these steps:
- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.
<style>
.product-form__submit::after {
box-shadow: none !important;
}
product-form .product-form__submit {
background: #9D9898 !important;
color: black !important;
border: 2px solid white !important;
}
</style>
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Thank you it worked!! can you please also tell me how to change the text?
Do you want to change the color of the text @MT27 ?
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
no the actual text
Do you want change text "Add to bag" to other text @MT27 ?
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
yes too ''Add to Cart''
Do you want like this @MT27 ?
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
- Here is the solution for you @MT27
- Please follow these steps:
- Then find the theme.liquid file.
- Then add the following code at the before tag </head> and press 'Save' to save it.
<style>
window.addEventListener('load', function() {
let btn = document.querySelector(".product-form__submit span");
btn.innerText = "Add to Cart";
})
</style>
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
hello @MT27
Go to online store ----> themes ----> actions ----> edit code ---->assets ----> base.css...>
add the code end of the file
product-form .quick-add__submit, product-form .product-form__submit {
background: #9D9898;
color: #000;
border: 2px solid white;
}
result
Buy me a Pizza
If this was helpful, hit the like button and accept the solution.
Thanks
Hi @MT27
Check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
button.product-form__submit:after {
box-shadow: 0 0 0 calc(var(--buttons-border-width) + var(--border-offset)) rgba(255, 255, 255, 1), 0 0 0 var(--buttons-border-width) rgba(255, 255, 255, 1);
}
button.product-form__submit:before {
box-shadow: none;
}
button.product-form__submit {
background: #9D9898;
color: black;
}
And save.
result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hello @MT27,
Please add this code into your Shopify theme's base.css file.
.product-form__submit.button.button--full-width.button--secondary{
background: #9D9898 !important;
color: #000 !important;
border: 2px solid #fff !important;
font-weight: 600 !important;
}
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