2- Modify directly the store name to display what I want to have in the H1 title, but this impact the Homepage Title (used to be shown on search engines) :
It sounds like you’re looking to customize the H1 title on your Shopify store’s homepage to display something other than the store name without affecting your homepage’s title as shown on search engines. This can indeed be a bit tricky, as the H1 tag is crucial for SEO and should accurately reflect the content of your page. However, with a bit of code tweaking, we can achieve the desired outcome.
Since you’ve already attempted to use custom HTML content and modify the store name, I’ll suggest a more direct approach by editing the theme’s liquid files. Please follow these steps:
Backup Your Theme
First, ensure you have a backup of your current theme to avoid any accidental loss of work.
Go to your Shopify admin panel.
Navigate to Online Store > Themes.
Find the theme you’re working on and click Actions > Duplicate. This will create a backup of your theme.
Modify the H1 Title on the Homepage
Next, you’ll directly modify the code responsible for displaying the H1 tag on the homepage. The exact file and code snippet might vary depending on your theme, but generally, you’ll be looking to edit the index.liquid file or a section within sections that’s included in index.liquid.
From the Themes page in your Shopify admin, click on Actions > Edit code for the theme you want to modify.
Open the index.liquid file under the Templates folder or the specific section file (like header.liquid, home-hero.liquid, etc.) under the Sections folder that includes your homepage’s H1 title.
Locate the H1 tag that currently displays the store name. It might look something like this:
{{ shop.name }}
or
{{ ‘homepage.title’ | t }}
.
Replace the content between the H1 tags with the desired title. For example,
My Custom H1 Title
.
If you wish to keep the H1 tag dynamic (editable via the Shopify admin), consider using a metafield or creating a customizable section setting instead of hardcoding the title.
Save and Test
After making the changes, save the file and review your homepage. Ensure that the H1 title displays as expected without affecting the SEO title of your homepage.
A Note on SEO
While changing the H1 tag to something more relevant or catchy can be beneficial for the user experience, remember that it should still reflect the content of your homepage for SEO purposes. Avoid making it too generic or unrelated to your store’s content.
If you’re not comfortable making these changes yourself or if your theme’s structure is significantly different, consider reaching out to Me or Another Shopify Expert or your theme’s support team for further assistance.
Feel free to ask if you have any more questions or need additional help!