Shopify themes, liquid, logos, and UX
Hey Guys,
ive got a problem in my shopify online store. I want to deactivate the 1 Page so when a customer goes via the normal website link: www.mybrand.com on my website that his first and only Page is Page 2.
(mybrand.com is not my website)
Thanks for helping
Kind Regards Moritz
Hello @Moritz11 , Please add a script below,
Go to online store -> edit code -> open theme.liquid file -> add the script above </head> tag.
<script>
// in if condition add your store URL and append "/" at the end.
if(window.location.href == "<yourwebsiteURL>/"){
window.location.href = "<yourwebsiteURL>/collections/all";
}
// it will rediects on the collections/all page of your site you can change the page URL as you want //
</script>
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
Hey DWS,
first of all thanks for the help. Unfortunatly this didnt worked. Maybe i did something wrong but i henestly think not.
My Shopify Store is not a Theme i designed it myself maybe thats the reason and its a bit different.
If you have an other solution or another way i would be very thankful.
Kind Regards
Moritz
Hello @Moritz11, Yes, you done a mistake. You have to put your store URL in the code, please add the code below.
please remove that old code and add the new code.
<script>
if(window.location.href == "{{ shop.url }}" + "/"){
window.location.href = "{{ shop.url }}" + "/collections/all";
}
</script>
Feel free to reach out if you have any questions or need assistance.
Best Regards,
DWS.
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025