duplicated meta description and titles for blogs page and blogs page 2

duplicated meta description and titles for blogs page and blogs page 2

ihs1
Explorer
103 1 10

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

Replies 4 (4)

Yvonne_Yoast
Shopify Partner
68 2 4

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:

  1. 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.

  2. 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.

  3. 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

ihs1
Explorer
103 1 10

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

Yvonne_Yoast
Shopify Partner
68 2 4

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 H1Our 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:

 

1. Edit Meta Title and Description for Paginated Pages:

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.

  1. Access Your Theme's Code:

    • From your Shopify admin, go to Online Store > Themes.
    • Click on Actions and then Edit code.
  2. Locate the Pagination Template:

    • Find the template file that controls your blog pagination. This is usually in /templates/blog.liquid or a similar file in the /sections or /snippets folder.
  3. Modify the Meta Tags for Pagination:

    • Look for the section of the code where meta tags are defined, which may look something like this:

      liquid

 

<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:

    liquid

 

<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:

    • Click Save to apply your changes.

2. Modify the H1 Tag for Paginated Pages:

You should also adjust the H1 tag to reflect the pagination. This typically involves updating the HTML where the H1 tag is set.

  1. 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:

      liquid

 

<h1>{{ page.title }}</h1>

 

  • Update the H1 Tag for Pagination:

    • Modify the H1 tag to include pagination information:

      liquid

 

<h1>{{ page.title }} - Page {{ paginate.current_page }}</h1>

 

  • Save Your Changes:

    • Click Save to apply the new H1 tag.

3. Verify Your Changes:

  • Check Your Pagination Pages:

    • After making these changes, review your paginated pages to ensure that the meta title, description, and H1 tags are correctly updated and unique for each page.
  • Use SEO Tools:

    • Utilize tools like Google Search Console or third-party SEO checkers to verify that the pagination issues have been resolved.

 

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.

ihs1
Explorer
103 1 10

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