Shopify themes, liquid, logos, and UX
*Edit Question, i forgot to add its for SEO Use*
Hi
I'm using the enterprise theme and I would like to make my product title the h1 (For SEO use) heading on the product pages. How do I do this please. I'm happy to add code, but I just don't know what or how. Thanks Luke
my store is 3dcaststore.com.au
Solved! Go to the solution
This is an accepted solution.
Hi @3D-Cast
I am from Mageplaza - Shopify solution expert.
To make the product title the <h1> heading on your product pages, follow these steps:
1. Edit the Product Template File
- In your Shopify Admin, go to Online Store > Themes.
- Click Actions > Edit Code on the active theme.
- Find the file for the product template. This is usually:
sections/main-product.liquid
templates/product.liquid or inside snippets/product.liquid
2. Modify the Product Title Markup
Look for a line similar to:
<div class="product-info__block rte">
<h2><strong>{{ product.title }}</strong></h2>
</div>
Change it to:
<div class="product-info__block rte">
<h1><strong>{{ product.title }}</strong></h1>
</div>
3. Save and Preview
Click Save and preview your product page to ensure the title is now an <h1>.
This change improves SEO, as <h1> is important for search engines to understand the main content of a page.
Please let me know if it works as expected!
Best regards
Mageplaza | Top-Rated Shopify Agency | Trusted by 230,000+ worldwide merchants
If our suggestion works for you, please give it a Like or mark it as a Solution!
Should you have any questions or concerns, feel free to contact us via consultant@mageplaza.com
Hi @3D-Cast , you can follow these steps:
Step 1: Open Online Store -> Themes -> Edit code.
Step 2: Find component-card.css file
Step 3: Paste this code at the bottom of the file
.product-info__block.rte > h2 {
font-size: var(--h1-font-size) !important;
}
If this is helpful, please let us know by giving us a like and marking it as a solution. Thank you 😍
B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.
Thanks just to make sure the code above will make the product tittle in h1 for SEO? I just saw I forgot to mention SEO in my first post
Thanks
no, it would not
By default, "Product" section in a "Product" page template has a "Title" block. This block outputs an h1 element which contains product title.
Your product page template seems to be configured differently and product title is output by a different type block and it does not output title as H1. It's hard to tell what type of block from the outside.
IMO, the best way would be to reconfigure your product page to use "Title" block.
If this is not possible, you can rather use "Custom liquid" block and use code like this
<div class="rte">
<h1 class=h2>{{ product.title }} </h1>
</div>
This is an accepted solution.
Hi @3D-Cast
I am from Mageplaza - Shopify solution expert.
To make the product title the <h1> heading on your product pages, follow these steps:
1. Edit the Product Template File
- In your Shopify Admin, go to Online Store > Themes.
- Click Actions > Edit Code on the active theme.
- Find the file for the product template. This is usually:
sections/main-product.liquid
templates/product.liquid or inside snippets/product.liquid
2. Modify the Product Title Markup
Look for a line similar to:
<div class="product-info__block rte">
<h2><strong>{{ product.title }}</strong></h2>
</div>
Change it to:
<div class="product-info__block rte">
<h1><strong>{{ product.title }}</strong></h1>
</div>
3. Save and Preview
Click Save and preview your product page to ensure the title is now an <h1>.
This change improves SEO, as <h1> is important for search engines to understand the main content of a page.
Please let me know if it works as expected!
Best regards
Mageplaza | Top-Rated Shopify Agency | Trusted by 230,000+ worldwide merchants
If our suggestion works for you, please give it a Like or mark it as a Solution!
Should you have any questions or concerns, feel free to contact us via consultant@mageplaza.com
hey unfortunately i can't find the "product-info__block rte" anywhere
Hey got it sorted. It was under rich text. When I Looked at the product page template I saw the title was made from a rich text. I found similar code to above and change the h2 to h1 and now is working fine. Thanks
Hi @3D-Cast
If you don't mind, please share the collab request code so I can send a request to access your theme and do it for you.
Best regards,
Dan from Ryviu
- Found this helpful? Hit "Like" and "Accept as Solution"! Support me: Donate!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify
Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025