Custom Montezuma 404 page
No need for a 404 plugin. With MZ, simply make your own main template 404.php, copying something like page.php.
In the content div, put something like "404 Page Not Found" between the <h1> tags and remove everything else between those tags. In the post-bodycopy div, put your custom message (you'll need to use <p> tags) and remove everything else. Links to your home page, search page, site map, last post, and/or whatever you want can be included. Save the template. To test it, simply enter a nonexistent page url of your site into your address bar. Here's the official WP codex doc. As an example, here's what I put up for now: Code:
<h1>404 Page Not Found</h1> It's possible I could have stripped out more code from the template to make it more elegant, but I didn't dig into what that would do. |
If you want this to be a 'How To:' give a step by step guide with examples and edit your explaination to be clear. in your second line you state
Quote:
|
Thanks jerryc :)
|
This post is very helpful for creating the 404 page.
|
All times are GMT -6. The time now is 11:59 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.