Have a nice day,
I have some troubles with headers, that may impede SEO progress of website.
1. I want to add h1 heading to homepage on Sense theme. Now h1 is empty by default. I researched some guides about this problem, but for my theme (Sense) I couldn’t find any appropriate solution. I want to add h1 as an html-code for SEO purpose. Please, any ideas?
2. I want to hide from Google h2 headers (it’s about cart) - cause this information brokes the structure of all website pages. I have such problem on mainpage (cart info), categories (cart and sorting and filtering data), blog (cart info), product (cart info). As I tried to find out, it is possible to do through html-code, but I don’t know where and how to realize it?
3. And one more trouble with H1 header on categories (collection pages) - by default Shopify add to category page a part “Collection:” - and this fact changes original H1, that I want to use. For example: original h1 - “Food and Goods”, by default h1 - “Collection: Food and Goods”. How to cut or change this part “Collection:” of H1 header and make it original?
4. Duplication of H1 headers on product pages. I suppose that plugin for bread crumbs is displayed own h1 and the same h1 is displayed from default theme settings. How can I get rid of H1 duplication on product pages?
5. And general question. How to build the structure of headers h1-h3 according to nesting for all types of pages (mainpage, collection, product, blog, article)? I mean what files in Sense theme are responsible for headers?
I would be appreciated for help!
To address the header-related issues you mentioned on your Shopify store using the Sense theme, here are some suggestions:
-
Adding an H1 heading to the homepage:
- In the Sense theme, the homepage content is typically managed through sections in the theme editor. To add an H1 heading to the homepage, you can try the following steps:
- Open the theme editor for the Sense theme in your Shopify admin panel.
- Locate the section that represents the content area of your homepage.
- Look for a text or heading block within that section and modify it to include an H1 heading using HTML tags. For example:
<h1>Your Heading Here</h1>.
- Save the changes and preview the homepage to see if the H1 heading appears as expected.
-
Hiding H2 headers related to the cart from search engines:
- To hide specific H2 headers from search engines, you can utilize the
<meta name="robots" content="noindex"> tag within the HTML code of the pages where you want to hide the headers. This can be done by:
- Accessing the specific pages (mainpage, categories, blog, etc.) where the cart information appears.
- Locate the relevant H2 headers in the HTML code and add the
<meta name="robots" content="noindex"> tag just above or below the H2 header.
- Save the changes and check if the H2 headers are hidden from search engines.
-
Removing the “Collection:” part from H1 headers on category pages:
- To remove or change the “Collection:” part from H1 headers on category pages, you’ll likely need to modify the theme code. Here’s a general approach:
- From your Shopify admin panel, go to “Online Store” > “Themes” and click on “Actions” > “Edit code” for the Sense theme.
- Look for the template file that controls the category pages (e.g.,
collection.liquid or collection-template.liquid).
- Find the code responsible for displaying the H1 heading on the category pages.
- Modify the code to remove or change the “Collection:” part as desired.
- Save the changes and check if the H1 headers on the category pages reflect the modifications.
-
Resolving H1 header duplication on product pages:
- If you suspect that a breadcrumb plugin is causing H1 header duplication on product pages, you can try disabling the plugin or adjusting its settings. Alternatively, you can modify the theme code to remove the duplicated H1 heading. Here’s a general approach:
- Locate the template file responsible for product pages (e.g.,
product.liquid or product-template.liquid) in the theme code editor.
- Find the code that outputs the H1 heading for product pages.
- Remove or modify the code related to the duplicated H1 heading.
- Save the changes and verify if the H1 header duplication is resolved on product pages.
-
Building the structure of headers (H1-H3) according to nesting in the Sense theme:
- The structure of headers in the Sense theme is typically controlled by the template files and the sections within them.
- You can refer to the theme code files, such as
theme.liquid, product-template.liquid, collection.liquid, etc., to understand how the headers are structured.
- The sections within the theme, accessed through the theme editor, also contribute to the header structure. You can modify the content blocks or sections to adjust the header hierarchy as needed.
Hello,
Thanks for an answer. But no one of your tips helped me. Can you more thoroughly helped me? I mean, for example that code in that file change to this code in this file. Cause I didn’t find the files you mentioned and that’s why I have the same result as before I asked my questions.
1 Like
I got the same issue did u fix it ?