Headings structure problem
-
Headings structure of a web page is not good. Since Woocommerce is a plugin for a WordPress, main problem is that Wocommerce’s product title is h1 and the WordPress’s main title is h2. Within estore templates breadcrumbs are h3. For example, on a Shop page, Shop is h2, breadcrrumbs Home/Shop is h3 and products title are h3 which is OK. Shop should be h1 and breadcrumbs should be h2.
The problem is when we go to single product page. Following the proper structure od headinds (from h1 to h6, from top to bottom of a single web page).
Option 1 – Shop could be h1, followed by Home/Uncategorized/Belt breadcrumbs which is h2 and the single product name could be h3.
Option 2 – Shop could be h1, followed by Home/Uncategorized/Belt breadcrumbs which is p and the single product name could be h2 and short description could be h3. But the problem is the Shop page. Where to put h2? It should be after breadcrumbs p tag and before product name h3 tag. And I don’t want “Showing 1–12 of 17 results” to be my h2. Meaning, I have to put h2 before this sentence. But how? And where? (My question 1).Like I said, Woocommerce is a plugin to WordPress, which means that the woocommerce should follow proper headings structure (which is essential part of SEO). In this theme
the single product title is h1. So for this page – of a single product Belt, the headings structure is h2, h3 than h1, which is not right.My question 2 is what templates or php files I have to edit/change in order to get this as it should be.
I made some changes to these files:
themes/estore-child/woocommerce/single-product/related.php
themes/estore-child/woocommerce/single-product.php
themes/estore-child/page-templates/template-wc-collection.php
themes/estore-child/archive.php
themes/estore-child/footer.php
themes/estore-child/index.php
themes/estore-child/page.php`but I can’t find the php file for Shop page.
Thanks.
- The topic ‘Headings structure problem’ is closed to new replies.