I have my category pages with the category title at the top as normal, and set as H1 style (see screenshot below). But the element is not showing an h1 tag on live page (see other screenshot). I didn’t code these liquid files, so I’m trying to figure out what is wrong.
The issue seems to be related to the way the H1 element is implemented in your Shopify theme’s Liquid files. If the title is styled as H1 in CSS but not wrapped in an actual
HTML tag, it will not appear as an H1 tag in the source code or SEO analysis tools.
Here’s how you can troubleshoot and fix this issue:
Inspect the Liquid File:
Identify the file:
Typically, category or collection pages use the collection.liquid or a similar template file.
Look for the title:
Search for the code that outputs the category title. It might look like this:
{{ collection.title }}
Check the tag:
If it’s wrapped in a different tag (e.g.,
, ), change it to
.The updated code should look like:
# {{ collection.title }}
If you provide details about your Shopify theme or specific file structure, I can guide you further!
If I was able to help you, please don’t forget to Like and mark it as the Solution!
If you’re looking for expert help with customization or coding, I’d be delighted to support you. Please don’t hesitate to reach out via the email in my signature below—I’m here to help bring your vision to life!