Page 1 of 1
Stop h2 from showing on category pages
Posted: Tue Dec 31, 2019 11:30 am
by 92869
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?
Re: Stop h2 from showing on category pages
Posted: Tue Dec 31, 2019 6:29 pm
by uksitebuilder
Sure, edit catalog/view/theme/default/template/product/category.twig
Find and delete:
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
Re: Stop h2 from showing on category pages
Posted: Tue Dec 31, 2019 7:32 pm
by thekrotek
If you only need to hide it from layout, you don't need to edit anything, use CSS instead. It's plain and simple.
Re: Stop h2 from showing on category pages
Posted: Thu Jun 11, 2020 12:12 am
by johans
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.
