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

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?

1 answer

Profile photo of Ziven Staff 85890.00 $tone January 17, 2018

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:

display: none;

change to:

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/*
php bin/magento setup:static-content:deploy -f
It will be working fine. 
Please let me know if you need help further.
Best Regards,


Please login or Register to Submit Answer

Written By