All things Shopify and commerce
hi
i have 23 blogs currently and so they are over 2 pages. however i keep getting a seo error that my page 2 has the same meta title, description and h1 tag as page 1
how can i change the details for page 2
Hi @ihs1,
Can you share the page URL flagged with duplicate title and H1 tags?
If this helps, to address the issue of duplicate meta titles, descriptions, and H1 tags on paginated pages in Shopify, you can use the Yoast SEO app to add a page number variable to differentiate them. Here’s how you can do it:
Install Yoast SEO for Shopify: If you haven't already, consider using the Yoast SEO app for Shopify, which can help manage SEO settings more effectively.
Edit Meta Tags with Variables: Use the Yoast SEO app to add a page number variable to your meta title and description. This will automatically append the page number to your titles and descriptions, making them unique for each paginated page.
Manual Editing: If you prefer manual editing, go to the specific page in Shopify and open the search engine listing preview. Here, you can manually edit the title and meta description to include something like "Page 2" or "Continued" to differentiate it from the first page.
Unfortunately, Shopify's default settings might not allow for much flexibility in URL structure or automatic differentiation of paginated pages without additional tools or manual adjustments.
For more detailed guidance, you might want to check out Yoast's guide on Shopify SEO
Hi
is there a way to do this without adding the app. maybe using some code?
i need to do it for the main collections page, and for page 2 of blogs
Hi @ihs1,
I'm not sure about not using the Yoast app on how to handle paginated blog posts to avoid being flagged with duplicate meta descriptions, titles and H1. Our pagination strictly adheres to SEO best practices, as outlined in this article: Pagination & SEO: best practices
For a deeper understanding of why our pagination is self-referencing, please refer to these additional resources based on Google's guidelines here: GSC: Pagination, incremental page loading, and their impact on Google Search.
I've done some research and found the steps below and I hope this helps. Please keep in mind that I've never tested this and it's up to you if you want to try it on your store. Don't forget to create a backup of your store before changing any code. It will provides you with a safety net if something were to go wrong.
I will also recommend seeking help from a Shopify expert or Shopify developer before testing this out.
--------------------------------------------
For Shopify stores that use pagination to display multiple blog posts across different pages, it's important to customize the meta title, description, and H1 tags for each page of the paginated content to avoid SEO issues. Here’s how you can adjust these details for pagination:
Shopify does not have built-in pagination controls for meta tags, so you'll need to use custom code to handle this. You can achieve this by modifying your theme's liquid files.
Access Your Theme's Code:
Locate the Pagination Template:
Modify the Meta Tags for Pagination:
Look for the section of the code where meta tags are defined, which may look something like this:
<title>{{ page.title }} | {{ shop.name }}</title>
<meta name="description" content="{{ page.description }}">
Modify this to include pagination details. You can use Liquid code to adjust the meta tags for each page:
<title>{{ page.title }} - Page {{ paginate.current_page }} | {{ shop.name }}</title>
<meta name="description" content="Page {{ paginate.current_page }} of blog posts. {{ page.description }}">
Make sure to use Liquid logic to customize the content for each paginated page.
Save Your Changes:
You should also adjust the H1 tag to reflect the pagination. This typically involves updating the HTML where the H1 tag is set.
Locate the H1 Tag in the Template:
In the same file where you adjusted meta tags, find the H1 tag, which may look like this:
<h1>{{ page.title }}</h1>
Update the H1 Tag for Pagination:
Modify the H1 tag to include pagination information:
<h1>{{ page.title }} - Page {{ paginate.current_page }}</h1>
Save Your Changes:
Check Your Pagination Pages:
Use SEO Tools:
As mentioned above, if you are not sure how to do this, please reach out to a Shopify Expert or Developer to help implement this on your site.
HI
thank you for the above and this is similar to what i have found too - however i cant seem to find this code in my blog.liquid file or theme.liquid file
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024