I've created a custom 404-page and I would like to show this when people come on a non-existing page.
What I've done:
- Created a custom page and gave it 404 template.
- I adjusted the 404-template that it shows regular content as the default template.
Result: I get a 404-page without content. he's showing header and footer, but it's not showing the content. It looks like some javascript makes that the content is empty.
If I open the page I created in 'preview', it looks good
We already have a 404.php file in the theme, you don't need to use -template in the php file name for the 404 page.
Also we don't have any Javascript in the theme that remove the content it is only that the 404 page doesn't allow the content you put in the page by default it only show the generated content.
If you can send us a link to your site we may be able to give you additional information.
Hi,
I've created a custom 404-page and I would like to show this when people come on a non-existing page.
What I've done:
- Created a custom page and gave it 404 template.
- I adjusted the 404-template that it shows regular content as the default template.
Result: I get a 404-page without content. he's showing header and footer, but it's not showing the content. It looks like some javascript makes that the content is empty.
If I open the page I created in 'preview', it looks good
thanks for the help
Hello Geert,
We already have a 404.php file in the theme, you don't need to use -template in the php file name for the 404 page.
Also we don't have any Javascript in the theme that remove the content it is only that the 404 page doesn't allow the content you put in the page by default it only show the generated content.
If you can send us a link to your site we may be able to give you additional information.
Kind regards
---------------------
Hosting we recommend ( Free SSL and CDN included in all plan ).
Speed up your site with Autoptimize
Test your site with GTmetrix and fix the issue to make it faster
How to Update your Theme