Show More
Hi I want to change the button color for my image hero on Motion OS 2.0 theme. My store is canvaspupportraits.com
Hi I want to change the button color for my image hero on Motion OS 2.0 theme. My store is canvaspupportraits.com
Hello @puppuppup ,
You can add this code in the theme->edit code->asset->theme.liquid.scss file
Paste this in the bottom.
I have currently added red color in the background and white color font. you can add your.
.hero .btn.btn--inverse {
background-color: red !important;
color: #fff;
}
Please add this CSS to your theme
.animation-contents a.btn.btn--inverse:hover{
color: #fff !important;
}
Thanks!
.hero .btn.btn--inverse {
background-color: red !important;
color: #fff;
}
@puppuppup
Add this code in the bottom of the theme.css
And change the color according to you need red,blue ,black etc
Thank you both for the help, but now the arrow is black. How do I change that? and also how do I make the border around the button blue #1F84F8 as well?
a.btn.btn--inverse {
border: none !important;
}
@puppuppup
Add this code
@media only screen and (-webkit-min-device-pixel-ratio: 1.25), only screen and (-webkit-min-device-pixel-ratio: 2.08333333333333), not all, only screen and (min-resolution: 1.25dppx), only screen and (min-resolution: 200dpi){
[data-animate_buttons=true] .btn:not(.btn--no-animate):not(.btn--tertiary):not(.btn--static).add-to-cart--secondary, [data-animate_buttons=true] .btn:not(.btn--no-animate):not(.btn--tertiary):not(.btn--static).btn--inverse {
background-image: url(//cdn.shopify.com/s/files/1/0621/0240/5339/t/16/assets/button-arrow-black-2x.png);
background: none !important;
}
}
.animation-contents a.btn.btn--inverse {
border: #1F84F8;
}
.animation-contents a.btn.btn--inverse:hover {
border: #1F84F8;
}
remove the other one code.
[data-animate_buttons=true] .btn:not(.btn--no-animate):not(.btn--tertiary):not(.btn--static).add-to-cart--secondary, [data-animate_buttons=true] .btn:not(.btn--no-animate):not(.btn--tertiary):not(.btn--static).btn--inverse {
border:none !important;
}
@puppuppup
Add this code to remove arrow.
use this.
[data-animate_buttons=true] .btn:not(.btn--no-animate):not(.btn--tertiary):not(.btn--static) {
background-image: url(//cdn.shopify.com/s/files/1/0621/0240/5339/t/16/assets/button-arrow-2x.png) !important;
}
@puppuppup
Add this code to make the arrow white.
[data-animate_buttons=true] .btn:not(.btn--no-animate):not(.btn--tertiary):not(.btn--static).add-to-cart--secondary, [data-animate_buttons=true] .btn:not(.btn--no-animate):not(.btn--tertiary):not(.btn--static).btn--inverse {
background-image: url(https://cdn.shopify.com/s/files/1/0621/0240/5339/t/16/assets/button-arrow.png) !important;
}