Post by 92869 » Tue Dec 31, 2019 11:30 am

I was made aware that I needed h1 headings on my category pages so I proceeded to add them. Proofing the page I find that I now have an h2 heading above the h1 heading making everything look a bit redundant. Is there a way to not have the h2 heading showing on category pages?

Attachments

pageview.png

pageview.png (38.37 KiB) Viewed 239 times


New member

Posts

Joined
Tue Sep 13, 2016 1:53 pm

Post by uksitebuilder » Tue Dec 31, 2019 6:29 pm

Sure, edit catalog/view/theme/default/template/product/category.twig

Find and delete:

Code: Select all

      <h2>{{ heading_title }}</h2>
Visit your admin - Dashboard
Click the cog icon (top-right) and clear both caches in the popup window

If you have any extensions that may modify the category page, probably best to visit admin - Extensions - Modifications and then click the blue refresh modifications button

If you have vqmod installed and any extensions that may modify the category page, via ftp empty out the vqmod/vqcache folder

ImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by thekrotek » Tue Dec 31, 2019 7:32 pm

If you only need to hide it from layout, you don't need to edit anything, use CSS instead. It's plain and simple.

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 johans » Thu Jun 11, 2020 12:12 am

I have similar issue; I need to display by calling the H2 but it does not show up.. sorry i am using open cart 2 here; but i think the code is similar. Is there something on the code that is missing? or any alternative code i need to input to call the h2.

Image

Attachments

opencart code h2.PNG

opencart code h2.PNG (29.72 KiB) Viewed 107 times


Thanks,
Mr. J


New member

Posts

Joined
Mon Oct 17, 2011 5:08 pm
Who is online

Users browsing this forum: No registered users and 33 guests