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.
Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024Note: Customizing your CSS requires some familiarity with CSS and HTML. Before you cust...
By JasonH Aug 12, 2024