Post by daniel2008 » Tue Jul 04, 2017 6:14 pm

Hi,

How can I remove the description of products (whether in Latest or Special) in the home page?
As I want only the captions (product name) and prices displayed.
I've tried to remove the description from product.tpl but failed.
Can anyone give me some hints here?
Image

Thanks,

Daniel

Attachments

remove-description.jpg

remove-description.jpg (103.55 KiB) Viewed 1110 times


http://www.smartebuy.com.au/ http://www.myleathers.com.au/ http://www.cctv4oz.com.au/ http://www.origreen.com.au/


Active Member

Posts

Joined
Wed Jul 07, 2010 8:54 pm


Post by DigitCart » Tue Jul 04, 2017 6:31 pm

In OpenCart 2.0, 2.1, 2.2

Code: Select all

catalog/view/theme/default/template/module/latest.tpl
In OpenCart 2.3

Code: Select all

catalog/view/theme/default/template/extension/module/latest.tpl
remove:

Code: Select all

<?php echo $product['description']; ?>

My Extensions / DigitCart


User avatar
Active Member
Online

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by thekrotek » Tue Jul 04, 2017 6:45 pm

No file edits are necessary, just pure CSS. Try this:

Code: Select all

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

.product-thumb .caption {
    min-height: 120px;
    height: 120px !important;
}

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by daniel2008 » Tue Jul 04, 2017 9:38 pm

Hi DigitCart and thekrotek,

Thank you for your suggestions.

I prefer thekrotek's idea which is easier for me. It's really great!

Daniel

http://www.smartebuy.com.au/ http://www.myleathers.com.au/ http://www.cctv4oz.com.au/ http://www.origreen.com.au/


Active Member

Posts

Joined
Wed Jul 07, 2010 8:54 pm

Who is online

Users browsing this forum: No registered users and 9 guests