h1 TAG twice on all pages ? I changed it, is it correct ?
-
Hello,
I love your theme (classic theme), but after checking the code I found that all pages had two <h1> tags on woocommerce shop.
So what I did is read this:
https://presscustomizr.com/snippet/change-the-post-title-tag-to-h2/
https://presscustomizr.com/customizr/hooks-api/#hooks-api-titleTo add this code in my child theme function.php (to replace the first H1 by SPAN):
add_filter('tc_site_title_tag' , 'my_title_tag'); function my_title_tag() { return 'span'; }
I now have only my page titles as <h1> on all pages.
Can you tell me if I did it correctly ? And by the way, why there was two <h1> on all pages ? And is it correct that we should have only 1 ?
Thank you so much, I hope to try your pro version soon because your theme is so great.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘h1 TAG twice on all pages ? I changed it, is it correct ?’ is closed to new replies.