How can I change color add to cart button in Magento 2 ??
-
You want to change color of add to cart button , right ?– Manoj DeswalJun 19, 2018 at 12:55
-
yes I want to change color add to cart button– shohel hussainJun 19, 2018 at 12:56
-
One way is overriding your styles in your custom theme at this location ="\app\design\frontend\vendor\theme\web\css\source_extend.less"– Manoj DeswalJun 19, 2018 at 12:59
-
ok manoj sir I will try– shohel hussainJun 19, 2018 at 13:02
-
Any solution worked for you ?– PawanJun 19, 2018 at 16:32
|
Show 2 more comments
1 Answer
Add your css:
.action.primary.tocart {
background: #222;
border-color: #222;
color : #fff;
}
-
hello i am creating _extend.less file in app/design/frontent/magestore/sample/magento_theme/web/css/source/_extent.less file and i am adding your code but button color is not change Jun 19, 2018 at 13:08
-
Can you run this commands php bin/magento setup:upgrade php bin/magento setup:static-content:deploy en_US deploy as store wise like en_US php bin/magento cache:flush Jun 19, 2018 at 13:13