Solved

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

Jadon1
Visitor
3 0 0

Could I make my product page my home page with the orgin theme?

Accepted Solution (1)

GemPages
Shopify Partner
5589 1261 1218

This is an accepted solution.

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 </head> 

{% if template == 'index' %}
<script>
window.location.href = '/products/...';
</script>
{% endif %}

GemPages_0-1677377298972.png

 

Best regards,
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center

View solution in original post

Replies 6 (6)

diego10_01
Shopify Partner
10 1 1

Depends on the theme, but if you're looking for a solution that works for any theme, then you may include this code in the theme.liquid file right before the <head> tag: 

{%- if template contains 'index' -%}
<script>
window.location.href = '/products/url-of-your-product';
</script>

What you'd be doing with that is redirecting all traffic that gets to your index page, so that it gets sent to your product page. 

Not very optimal, but that's the first thing that comes to mind now.

EcomGraduates
Shopify Partner
588 48 79

Hello there  

 

Yes, you can make your product page your home page with the Origin theme. 

  1. From your Shopify admin panel, go to "Online Store" and then "Themes". Find the Origin theme and click on "Customize" to launch the theme editor.

  2. In the theme editor, navigate to the "Sections" tab and select the "Homepage" section.

  3. In the "Homepage" section, click on the "Add section" button and select "Product" from the list of available sections.

  4. In the "Product" section settings, select the product that you want to use as your home page.

  5. Once you've selected your product, you can customize the product section to your liking. For example, you can choose to display the product's price, description, and images.

  6. Once you've finished customizing the product section, click "Save" to save your changes.

  7. Finally, navigate to the "Navigation" tab in the theme editor, and set the "Home" link to the product page that you've just created. To do this, simply click on the "Home" link and select "Products" from the drop-down list. Then, select the product that you want to use as your home page.

Once you've completed these steps, your product page will now be your home page.

 

GemPages
Shopify Partner
5589 1261 1218

This is an accepted solution.

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 </head> 

{% if template == 'index' %}
<script>
window.location.href = '/products/...';
</script>
{% endif %}

GemPages_0-1677377298972.png

 

Best regards,
GemPages Support Team

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
brynwatts5
Visitor
1 0 0

hi! when I tried this code and previewed my page it say 404 page not found and only works after hitting the button that says keep shopping how could I fix this?

 

PageFly-Victor
Shopify Partner
7865 1785 3066

Hi @Jadon1 

This is Victor from PageFly - Shopify Page Builder App, I’d like to suggest this idea:

 

Go to Online Store->Theme->Edit code->theme.liquid->paste bellow code in tag </body>

 

 

{% if template == 'index' %}
<script>
window.location.href = '/products/...';
</script>
{% endif %}

 

 

 Please refer to this screenshot:

PageFlyVictor_0-1677489419441.png

 

Hope you find my answer helpful!

Best regards,

Victor | PageFly

jakstore_
Visitor
1 0 0

how can i do that on my store?