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!
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024