How can I display Add to cart button on grid view?

Hello,
I’m using UB MegaMall theme for Magento 2, and we would like to display the add to cart button in grid view, how we can make it?
Thanks!

1 answer

Profile photo of Ziven Staff 100280.00 $tone January 17, 2018
Public

Hi There,
Hi show the add to cart button please follow like below:
go to the file: \app\design\frontend\Ubertheme\megamall\Magento_Catalog\web\css\source\module\_listings.less at line 
153 and change like this:

  .product-item-inner{
display: none;
}

change to:

  .product-item-inner{
display: block;
.actions-secondary {
display: none;
}
}

When done please re-compile LESS -> CSS.
Step1: go to root site with CLI and type: 
rm -rf var/* pub/static/*
Step2:
php bin/magento setup:static-content:deploy -f
It will be working fine. 
Please let me know if you need help further.
Best Regards,
Ziven.
 
 
 

#1

Please login or Register to Submit Answer

Written By

Comments