Is it possible to set a product page as the home page using the Origin theme?

Topic summary

The discussion addresses whether a product page can serve as the home page in Shopify’s Origin theme. Multiple solutions emerged, primarily involving code-based redirects.

Main Approaches:

  • JavaScript redirect method (most discussed): Insert code in theme.liquid before the </head> or </body> tag that redirects visitors from the index page to a specific product URL
  • Theme customization approach: One user suggested using Origin’s theme editor to add a product section to the homepage and adjust navigation settings, though this method received less validation

Technical Details:

  • The redirect code checks if the current template is ‘index’ and uses window.location.href to redirect
  • Early solutions had syntax issues (missing {% endif %} tags, incorrect quote marks)
  • A refined solution specifies using the full URL path in quotation marks, not relative paths or hyphens
  • Code snippets and screenshots were shared to illustrate implementation

Issues Reported:

  • One user encountered a 404 error when previewing, suggesting potential implementation problems
  • The discussion remains somewhat open regarding the most reliable method, though the redirect approach appears most validated
Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hello @Jadon1

You can try to add code to redirect home page to a product page.

  1. Go to Online Store → Theme → Edit code https://prnt.sc/fJOF9RnL7Rp5

  2. Open your theme.liquid theme file

  3. Paste the below code before

{% if template == 'index' %}

{% endif %}

Best regards,
GemPages Support Team

4 Likes