Can somebody please tell me what this line of code is for? (Debut Theme)

Our SEO team noticed on our collection pages that the names of the listed products were being picked up multiple times in a row via certain online tools.

From inspecting the issue I noticed the line of code

{{ 'homepage.onboarding.product_title' | t }}

This line is closely followed by code that displays our actual product name and I am wondering why it is there and what it is doing?

Is it safe to remove this line or could another piece of functionality be using it?

2 Likes

@RayLyons

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

1 Like

Great,

Example:
https://insulation4less.co.uk/collections/plasterboard

1 Like

@RayLyons

great thanks for details

i have check but i can’t see please show me

  1. Copy the title of any product listed on our collection pages

  2. Inspect html via google dev tools

  3. CTRL + F to search HTML for product title

    You will see it shows up multiple times in the html. We want to try and reduce this to only show it once. I noticed the second time the title is shown within the html is within a ‘visually-hidden’ element that seems to be part of the debut theme default code.

    I want to remove this line but don’t want to end up breaking something else so I am just curious what it does.