Because of SEO reasons it's not that good to have an empty h2 tag on first place, even before my defined h1, h2, h3... tags start. It seems that it is generated automatically, but I can't find a way how to change it.
I found the lines in the salient header.php and I was wondering if I can delete it. No title is written in there. If this is just a place holder for some widget title of woocommerce, it shouldn't matter. Or what do you think?
Hi support team,
I want to delete this h2 tag / ... or change it into a <p> tag, called:
<div class="widget woocommerce widget_shopping_cart"><h2 class="widgettitle"> </h2><div class="widget_shopping_cart_content">
You'll find this code on our website at http://collapseundertheempire.com/ Line 251
Because of SEO reasons it's not that good to have an empty h2 tag on first place, even before my defined h1, h2, h3... tags start. It seems that it is generated automatically, but I can't find a way how to change it.
Thanks for support.
Martin
Hi Martin,
That piece of code is added at the following line:
salient \ header.php line 389 and 387 with the_widget method.
The heading tags are in the woocommerce widget that woocommerce provides and you would need to edit woocommerce files to change it.
Hope you can work it from there.
Hi Andrew, thankts for the quick response.
I found the lines in the salient header.php and I was wondering if I can delete it. No title is written in there. If this is just a place holder for some widget title of woocommerce, it shouldn't matter. Or what do you think?
Best
Martin
Hi Martin,
Yes you can just try removing the the_widget methods in the control structure i.e. the if statement, and see how it goes.
Cheers.