I'm using Ubuntu 18.04 using php 7.3.15 and my Magneto 2 version is 2.3.3
Some of my short product descriptions seem to be overlaping the price in the Catalog. I have been searching around Google and my Magento 2 admin panel but I doesn't seem to find if I can disable the short description from the Catalog page so that it doesn't overlap the price. I stil want the short description on the product page.
Anyone got any ideas?
I've already checked at:
-
This is the Product Page or category page?Kishor Thummar– Kishor Thummar2020年08月21日 13:37:38 +00:00Commented Aug 21, 2020 at 13:37
4 Answers 4
Follow below steps for remove product description from the category page :
Override vendor file in to your theme or extension.
vendor/magento/module-catalog/view/frontend/templates/product/list.phtmlLike -
app/design/frontend/Vendor/Theme/Magento_Catalog/frontend/templates/product/list.phtmlAnd replace below variable value
$showDescription = true; to $showDescription = false;
Go to your Catalog Page or Block and add css
<style>
.short_des_class_name{
display:none
}
</style>
NOTE: Add this css in catalog page only not in style.css
Go this file and add this code catalog_category_view.xml :-
<referenceBlock name="product.info.overview" remove="true"/>
And Second way is Using css :-
.your_des_class{
display:none;
}
After All changes run below command :-
php bin/magento c:c
php bin/magento c:f
THANKS.
Please override your file catalog_category_view.xml in your theme.
From : vendor/magento/module-catalog/view/frontend/layout/catalog_category_view.xml
To : app/design/frontend/Vendor/ThemeName/Magento_Catalog/frontend/layout/catalog_category_view.xml
After that add below in your file.