All things Shopify and commerce
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
Solved! Go to the solution
This is an accepted solution.
Locate the menu that contains the webpage you want to redirect. It could be the main menu or a custom menu.
Find the specific link or item in the menu that corresponds to the webpage you want to redirect. Click on it to edit it.
In the URL field, enter the full external website URL where you want the webpage to redirect to.
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.
This is an accepted solution.
Locate the menu that contains the webpage you want to redirect. It could be the main menu or a custom menu.
Find the specific link or item in the menu that corresponds to the webpage you want to redirect. Click on it to edit it.
In the URL field, enter the full external website URL where you want the webpage to redirect to.
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.
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?
Read my answer above
thanks
Access your Shopify Admin Dashboard: Log in to your Shopify account and access the admin dashboard.
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."
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.
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.
Thanks! I'll implement it!
In today’s interview, we sat down with @BSS-TekLabs to discuss practical strategies for...
By JasonH Nov 13, 2024The year-end shopping spree is around the corner! Is your online store ready for the ...
By JasonH Nov 10, 2024We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024