Goal: Change the title for a single product page to “Hygia Dental cleaning tablets - 30 Tablets” without altering the product title elsewhere (e.g., collections).
Approach: Edit the theme code in Online Store → Themes → Edit code. In main-product.liquid, locate where the product title is rendered and wrap it in a Liquid conditional by product.id.
Implement: If product.id == 7748266754148, output the hardcoded title; otherwise, render {{ product.title | escape }}. This targets only that product’s page and leaves all others unchanged.
Issue & fix: The first snippet caused extra titles on other product pages due to a mistake (typo/missing code). A corrected conditional was provided, resolving the duplication.
Assets: Screenshots illustrate file location and the replacement snippet; the code block is central to the solution.
Outcome: The corrected code works as intended. Status: Resolved; no open questions.
Summarized with AI on December 21.
AI used: gpt-5.
How can I change my product page title from Sterilization tablets to ‘Hygia Dental cleaning tablets - 30 Tablets’?
I would like this to be done only on the product page and not in the actual product linked to collections page.