Set my-store.myshopify.com to be /collections/all ?

Solved
matthewgx
New Member
5 0 0

Hello, is there a way to set the root of my store to be /collections/all ? Thank you! 

Accepted Solution (1)

Accepted Solutions
SagarikaDas
Shopify Partner
185 14 65

This is an accepted solution.

Hey @matthewgx,

Sorry for the misunderstanding!

Here is the code you need to paste into your index.liquid file.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript">
	jQuery(document).ready(function(){
		// similar behavior as an HTTP redirect
		window.location.replace("yourstore.myshopify.com/collections/all");
	});
</script>

SagarikaDas_0-1636370995571.png

Cheers!

Sagarika Das | iCart Team

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!

View solution in original post

Replies 3 (3)
SagarikaDas
Shopify Partner
185 14 65

Hello @matthewgx,

To remove "my-store.myshopify.com", you need to set your domain. And this can help you out: https://help.shopify.com/en/manual/domains

 

Sagarika Das | iCart Team

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
matthewgx
New Member
5 0 0

SagarikaDas, either I wasn't clear or I was misunderstood. I did not ask about a domain change. I am looking to how to set my main shop landing page to be /collections/all and not what it currently is. I have tried to set up a redirect but it seems I cannot set that up under /. Appreciate your help.

SagarikaDas
Shopify Partner
185 14 65

This is an accepted solution.

Hey @matthewgx,

Sorry for the misunderstanding!

Here is the code you need to paste into your index.liquid file.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript">
	jQuery(document).ready(function(){
		// similar behavior as an HTTP redirect
		window.location.replace("yourstore.myshopify.com/collections/all");
	});
</script>

SagarikaDas_0-1636370995571.png

Cheers!

Sagarika Das | iCart Team

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!

View solution in original post