Re: Redirect from existing Shopify site to a external weblink

Solved

Redirect from existing Shopify site to a external weblink

TIMECAPSULES
Excursionist
33 0 23

Hi,

 

I have an existing Shopify website / online store. I also want to be able to redirect one of my Shopify website / online store webpages to a completely external website. How do I do that?

 

The existing answers I see on this Discussion panel do not answer the use case I have per above.

 

Also - just by adding a redirect into "managing your URL redirects" does not work for this use case either.

 

Thanks

Accepted Solution (1)

NomtechSolution
Astronaut
1245 113 154

This is an accepted solution.

  1. Locate the menu that contains the webpage you want to redirect. It could be the main menu or a custom menu.

  2. Find the specific link or item in the menu that corresponds to the webpage you want to redirect. Click on it to edit it.

  3. In the URL field, enter the full external website URL where you want the webpage to redirect to.

  4. Save the changes to update the menu item.

By updating the URL of the menu item to an external website URL, you effectively redirect the webpage to the external destination. When users click on the menu item, they will be taken to the specified external website instead of navigating within your Shopify store.

View solution in original post

Replies 5 (5)

NomtechSolution
Astronaut
1245 113 154

This is an accepted solution.

  1. Locate the menu that contains the webpage you want to redirect. It could be the main menu or a custom menu.

  2. Find the specific link or item in the menu that corresponds to the webpage you want to redirect. Click on it to edit it.

  3. In the URL field, enter the full external website URL where you want the webpage to redirect to.

  4. Save the changes to update the menu item.

By updating the URL of the menu item to an external website URL, you effectively redirect the webpage to the external destination. When users click on the menu item, they will be taken to the specified external website instead of navigating within your Shopify store.

Lactucaman
Tourist
15 0 2

What if you want to redirect a page that they land on some other way besides the menu? For example, there are times when the customer will get to a collections page, but you want that page to redirect to an external link. Adding a redirect to an external page on the redirects page doesn't work. How to do it? 

sharafrizvi999
Visitor
2 0 1

Read my answer above

thanks

sharafrizvi999
Visitor
2 0 1
  1. Access your Shopify Admin Dashboard: Log in to your Shopify account and access the admin dashboard.

  2. Go to Theme Editor: Navigate to "Online Store" > "Themes" in your Shopify admin dashboard. Find the theme you want to edit and click on the "Actions" button, then select "Edit code."

  3. Edit theme.liquid file: In the Theme Editor, locate and click on the theme.liquid file under the "Layout" section on the left-hand side.

  4. Add JavaScript redirection code: Inside the theme.liquid file, find the <head> section, and within it, add the following JavaScript code:

<script type="text/javascript">
window.location.href = 'YOUR_EXTERNAL_URL';
</script>

Replace 'YOUR_EXTERNAL_URL' with the URL of the external webpage you want to redirect to.

Save changes: After adding the JavaScript code, save the changes to the theme.liquid file.

Hope I solved your problem.

Lactucaman
Tourist
15 0 2

Thanks! I'll implement it!