Remove Starter Page

Remove Starter Page

Moritz11
Visitor
2 0 0

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

 

shopify support picture_Zeichenfläche 1.png

Replies 3 (3)

dws_pvt_ltd
Shopify Partner
231 46 62

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.

Helpful? then please Like and Accept the Solution.
For any inquiries, please feel free to contact via WhatsApp and Email: sales@dolphinwebsolution.com.
For more information visit our website Dolphin Web Solution Pvt Ltd.
Moritz11
Visitor
2 0 0

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

shopify support .png

dws_pvt_ltd
Shopify Partner
231 46 62

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.

Helpful? then please Like and Accept the Solution.
For any inquiries, please feel free to contact via WhatsApp and Email: sales@dolphinwebsolution.com.
For more information visit our website Dolphin Web Solution Pvt Ltd.