This link has been bookmarked by 53 people . It was first bookmarked on 10 Aug 2006, by Marco Bianchi.
-
04 Aug 15
-
04 Feb 14
-
19 Jun 13
-
02 Jun 13
-
07 Mar 13
-
Error 404 - Not
-
-
16 Aug 12
-
23 Feb 12
-
17 Jan 12
-
27 Nov 11
-
04 Oct 10
-
06 Apr 10
-
04 Feb 10
-
29 Dec 09
-
09 Nov 09
-
18 Oct 09
-
11 Sep 09
-
02 Aug 09
-
09 Jul 09
-
20 Mar 09
-
17 Mar 09
-
19 Jan 09
-
11 Nov 08
-
14 Oct 08
-
11 Jan 08
-
22 Jun 07
-
06 Jan 07
-
10 Aug 06
-
- Open your WordPress admin panel:
- Choose Presentation menu.
- Choose the Theme Editor page.
- Check to see if your theme includes a '404 Template' in the list of files.
- Click the link for '404 template' along the right side of the page.
- Edit the message text to say what you want it to say.
- Save your changes. (If the template file is not writable, see Changing File Permissions.)
To edit your Theme's 404 error template file:
While you are examining and editing your 404 template file, take a look at the simple structure of the default 404.php file. It basically features tags that display the header, sidebar, and footer, and also an area for your message:
<?php get_header(); ?> <div id="content" class="narrowcolumn"> <h2 class="center">Error 404 - Not Found</h2> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
So, to change the error message your visitor sees, revise the text within the h2 heading and if necessary, add more paragraphs below that
-
- Copy the file /wp-content/themes/default/404.php into the directory of your current theme.
- Then, as described in the previous section, edit the error message to present your desired error message.
- Change the Default Theme's 404.php template file's header, sidebar, footer, and other codes to match the rest of the Theme's layout.
- Copy the index.php file of your current theme to a file called 404.php.
- Open that file and delete all sections dealing with posts or comments, see The Loop.
- Then, edit your 404 error message.
To use the 404.php template file from the WordPress Default Theme:
If copying the default 404.php into your theme directory does not work well with your theme, you have some other choices:
Or
-
Creating an Error 404 Page
-
-
09 Aug 06
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.