Archived topic
How to Redirect 404 error to custom page
5 replies · Started by Chitika on November 23, 2020
I have already created a 404 custom page.
But I don't know where to re-direct the 404 error to this custom page.
Hi there,
try this method instead of creating a 404 page.
1. Create a new Block Element, use this to create your new 404 content.
2. Set the Block Type to Hook ( this is default ).
3. For the Hook select: Custom Hook and enter in the field provided: generate_do_template_part
4. Set the Location to 404 Template
Great @David. The instructions were crystal clear.
Happy to be of help!
Hi David,
I used the above code to make the custom 404 page and it seems to work well.
Only thing additionally I'd like to do is to disable the right sidebar on the 404 page as well. How would I go about doing that?
Thanks!
Can you open a new topic for a separate question?
It's a good question that should be helpful for other users as well.
Thanks!