Page 1 of 2

[SOLVED] remove product description from product thumb

Posted: Tue Oct 08, 2019 11:57 pm
by everetts1969
Hello. I'm looking to remove the product description from the product thumbs but still want to keep the product description on the main product page. I'm running OC 3.0.3.2. What files do I change and what code would I delete?
Thanks
Steve.

Re: remove product description from product thumb

Posted: Wed Oct 09, 2019 12:16 am
by labeshops
Product thumbs on which modules - latest, featured, what??

You can delete the line

Code: Select all

<p>{{ product.description }}</p>
tag from catalog/view/theme/yourtheme/template/extension/module/latest.twig for example to remove it from the latest product module.

Re: remove product description from product thumb

Posted: Wed Oct 09, 2019 12:26 am
by thekrotek
Or you can simply hide it with CSS like this (valid for all modules):

.product-thumb h4 + p {
display: none;
}

Re: remove product description from product thumb

Posted: Wed Oct 09, 2019 1:46 am
by cyclops12
I thought of that but it also hides the price, what if you wanted to keep the price, could this still be done with css?

Re: remove product description from product thumb

Posted: Wed Oct 09, 2019 1:54 am
by thekrotek
cyclops12 wrote:
Wed Oct 09, 2019 1:46 am
I thought of that but it also hides the price, what if you wanted to keep the price, could this still be done with css?
Nope, it doesn't hide the price because "+" is used, which means the next element of a kind only, not all of them.

Re: remove product description from product thumb

Posted: Wed Oct 09, 2019 2:35 am
by cyclops12
Aha i see.... clever
I was trying just with p but it also hid the price
Thank you thekrotek
sorry for hijacking the thread :)

Re: remove product description from product thumb

Posted: Wed Oct 09, 2019 2:45 am
by thekrotek
You're welcome, bro!

Re: remove product description from product thumb

Posted: Wed Oct 09, 2019 4:51 pm
by paulfeakins
thekrotek wrote:
Wed Oct 09, 2019 2:45 am
You're welcome, bro!
Image

Re: remove product description from product thumb

Posted: Wed Oct 09, 2019 5:22 pm
by everetts1969
OK so I have deleted the code in the modules Category. Featured etc but the product description is still showing. I have refreshed the cache. if you go to matilia-london.com I have featured module working with todays popular buys. The product description is showing.

Any ideas of where i'm going wrong?

Re: remove product description from product thumb

Posted: Wed Oct 09, 2019 5:36 pm
by thekrotek
everetts1969 wrote:
Wed Oct 09, 2019 5:22 pm
Any ideas of where i'm going wrong?
Use CSS instead.

Re: remove product description from product thumb

Posted: Wed Oct 09, 2019 9:56 pm
by everetts1969
so just input the code to the stylesheet.ccs?

Re: remove product description from product thumb

Posted: Wed Oct 09, 2019 10:03 pm
by everetts1969
Perfect works a treat. Thanks for your help!

Re: remove product description from product thumb

Posted: Tue Jan 14, 2020 11:39 pm
by mitrecyclers
thekrotek wrote:
Wed Oct 09, 2019 12:26 am
Or you can simply hide it with CSS like this (valid for all modules):

.product-thumb h4 + p {
display: none;
}
Worked nicely. Thanks.

Re: remove product description from product thumb

Posted: Mon Jan 09, 2023 11:28 am
by gcextreme
mitrecyclers wrote:
Tue Jan 14, 2020 11:39 pm
thekrotek wrote:
Wed Oct 09, 2019 12:26 am
Or you can simply hide it with CSS like this (valid for all modules):

.product-thumb h4 + p {
display: none;
}
Worked nicely. Thanks.
i tried this and cant get it to work. v3.0.3.8

Re: remove product description from product thumb

Posted: Mon Jan 09, 2023 3:00 pm
by xxvirusxx
gcextreme wrote:
Mon Jan 09, 2023 11:28 am

i tried this and cant get it to work. v3.0.3.8
You have Default theme?

Re: remove product description from product thumb

Posted: Tue Jan 10, 2023 9:30 am
by gcextreme
xxvirusxx wrote:
Mon Jan 09, 2023 3:00 pm
gcextreme wrote:
Mon Jan 09, 2023 11:28 am

i tried this and cant get it to work. v3.0.3.8
You have Default theme?
Yes Default theme.

Re: remove product description from product thumb

Posted: Tue Jan 10, 2023 4:12 pm
by xxvirusxx
gcextreme wrote:
Tue Jan 10, 2023 9:30 am
Yes Default theme.
And you have added that code in stylesheet.css?

Re: remove product description from product thumb

Posted: Tue Jan 10, 2023 6:53 pm
by paulfeakins
gcextreme wrote:
Mon Jan 09, 2023 11:28 am
i tried this and cant get it to work. v3.0.3.8
Give us the URL of your shop?

Re: remove product description from product thumb

Posted: Fri Jan 13, 2023 10:04 am
by gcextreme
paulfeakins wrote:
Tue Jan 10, 2023 6:53 pm
gcextreme wrote:
Mon Jan 09, 2023 11:28 am
i tried this and cant get it to work. v3.0.3.8
Give us the URL of your shop?
www.gcextreme.com

Re: remove product description from product thumb

Posted: Fri Jan 13, 2023 10:06 am
by gcextreme
xxvirusxx wrote:
Tue Jan 10, 2023 4:12 pm
gcextreme wrote:
Tue Jan 10, 2023 9:30 am
Yes Default theme.
And you have added that code in stylesheet.css?
yes, and it didnt do anything. also tried another solution i found here on the forum for editing the product.twig file. that didnt work either.