All things Shopify and commerce
My site doesn't need 404 page. I just want the home page displayed instead of 404 error page. If this is not possible then can i change the characters from "404" to some other words so then it doesn't look like an error page?
@Foolfully thanks for posting here,
So redirect to another page or back page. with js.
or
create new informative template for 404 page
Hi @Foolfully
This is not possible to redirect every wrong URL to the home page instead you can customize the 404 page using the theme Customizer
Can you give the next steps to this solution please? Takes me to CSS and not a text editor box. Can I just add text here?
Hi @Foolfully ,
This is Theodore from PageFly - Shopify Page Builder App.
Shopify allows you to handle 404 errors in two ways:
Redirect: Set up a redirect to send users who land on non-existent pages to your homepage instead of showing a 404 error message.
Customize 404 Page: If redirects aren't possible, edit the existing 404 error page. Change the "404" text to a friendlier message (e.g., "Oops! We can't seem to find that page") and include navigation elements to help users find what they need.
Best regards,
Theodore | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
I need to redirect all possible 404 pages to home so 404 can never be displayed. If you use a bad domain extension then you always go to home. Why anyone even invent 404 page when it could just be home page. Must've been a negative person to make needless errors.
Hi @Foolfully
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find sections > main-404.liquid and paste this at the bottow of the file:
<script>
window.location.href = "/";
</script>
Hi @Foolfully
Here is another approach
Add this code in theme.liquid after the <head> tag
This will check If the current template is 404 or not and if 404 it will redirect to the home page.
{% if template contains '404' %}
<script>
window.location.href="/";
</script>
{% endif %}
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024