WordPress Business Themes › Forums › Version 7 Themes › DirectoryPress › Custom 404 Page
I know how to make a custom 404 page in WordPress, I am just having trouble doing it in Directory Press. The 404.php file I find is just oriented to an admin. When it is not an admin, the only thing that comes up is a title: “404 Error – File Not Found”. I’ve looked through the instructions and tutorials and find no reference to a custom 404 page.
Thanks in advance,
I recommend using the plugin Customize your 404 Error Page for WordPress : http://wordpress.org/plugins/custom-404-error-page-unlimited-designs-colors-and-fonts/
… excellent plugin. Yes it does work with WP 3.5.2 and the PremiumPress Themes.
See how we use it here: http://www.thecouponoasis.com/blah
I tried that one, but I really want to add my own image(s). I will fall back on that if I can’t do what I want. Thanks.
you can build a standard html file and call it using .htaccess when a 404 occurs, like so.
@Julie, put your own 404 page in your child theme and name it _404.php
thanks for sharing Ian
Can you please give a tutorial on how to do what you suggest?
I would also like to be able to customise my 404 page….. but don’t know where to start with what you have suggested….
Just unpack and copy this file to your child theme folder where you can then edit it as you wish.
Thanks to everyone I have my 404 page running:
I don’t know why I thought it had to be so difficult!!
@Julie, not difficult just different.
@Danielle, you need to use FTP or your hosting’s file manager.
@ Julie- nice work!
This is super helpful- but seeing as I am not up on php I still need some help…
I have uploaded some code to the page BUT I still need to get the text (or image or what ever I want in there) within the box & to change the error 404 text that is displayed…
Also how do I change the title of the page?
Here is the page for your reference: http://www.organicnaturalbeautydirectory.com/404.php
If you want to email me you can at mylocalshops AT yahoo.com
This line <?php echo $PPT->_e(array('title','14')); ?> is used to output the ‘Error 404 Page not found’ text and it gets it from the language file. So you can change this text either in General Setup>Language>Titles, in the language file itself or just by changing this. Then you can move your other text down below that line but inside the er.. ‘Itemboxinner article’ <DIV>
<?php echo $PPT->_e(array('title','14')); ?>
Thanks heaps Ian! woo!
Submit your feature requests to our ideas board and it could be included in a future theme update.
or contact our support team