Shopify themes, liquid, logos, and UX
Hi everyone!
Is it possible to let people access only my homepage?
we have the pre-opening tomorrow and I want the people to access the homepage when they type my website.
The other pages are still not done yet, so I dont want them to see anything else.
How can I do that?
Here is my URL:
Password: brayden
Thank you
Solved! Go to the solution
This is an accepted solution.
Hi @abailea077 ,
You can add below codes to the theme.liquid file just above </body>
This code will redirect all the users to the home page.
{% unless template contains 'index' %}
{% unless request.design_mode %}
<script>
window.location.href = '/';
</script>
{% endunless %}
{% endunless %}
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka
This is an accepted solution.
Hi @abailea077 ,
You can add below codes to the theme.liquid file just above </body>
This code will redirect all the users to the home page.
{% unless template contains 'index' %}
{% unless request.design_mode %}
<script>
window.location.href = '/';
</script>
{% endunless %}
{% endunless %}
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka
Thank you! It did worked 🙂
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025