Custom 404 Page

Discontinued - The forum content is out of date. For theme support please use our support desk here.

Custom 404 Page

July 8, 2013
Julie Julie
  • Julie
    Julie
    Newbie 5 points

    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.

    1. Where would I put text/code that anyone else would see?
    2. Can I substitute a 404 page of my own and would it work?
    3. Am I just missing where to do this in the backend, i.e. where to put my custom text or what page to designate as my 404 page?

    Thanks in advance,
    Julie

    July 8, 2013 at 6:55 pm
  • Stephen
    Stephen
    Senior Member 215 points

    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

    Stephen

    July 8, 2013 at 9:38 pm
  • Julie
    Julie
    Newbie 5 points

    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.

    July 8, 2013 at 10:20 pm
  • Stephen
    Stephen
    Senior Member 215 points

    you can build a standard html file and call it using .htaccess when a 404 occurs, like so.

    http://codex.wordpress.org/Creating_an_Error_404_Page

    Stephen

    July 9, 2013 at 2:19 am
  • Ian
    Ian
    Super Guru 1,200 points

    @Julie, put your own 404 page in your child theme and name it _404.php

    July 9, 2013 at 2:30 am
  • Mark Fail
    Mark Fail
    Super Guru 12,814 points

    thanks for sharing Ian

    July 9, 2013 at 3:49 am
  • Danielle
    Danielle
    Newbie 44 points

    @ 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….

    July 9, 2013 at 7:06 pm
  • Richard Bonk
    Richard Bonk
    Super Guru 2,739 points

    Just unpack and copy this file to your child theme folder where you can then edit it as you wish.

    Kind regards,

    Richard

    Attachments:
    You must be logged in to view attached files.
    July 9, 2013 at 7:11 pm
  • Julie
    Julie
    Newbie 5 points

    Thanks to everyone I have my 404 page running:

    http://www.guidetobeadwork.com/dog/

    I don’t know why I thought it had to be so difficult!!

    Julie

    July 9, 2013 at 9:14 pm
  • Ian
    Ian
    Super Guru 1,200 points

    @Julie, not difficult just different.

    @Danielle, you need to use FTP or your hosting’s file manager.

    July 10, 2013 at 1:26 am
  • Danielle
    Danielle
    Newbie 44 points

    @ 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

    Cheers,
    Danielle

    July 10, 2013 at 4:38 am
  • Mark Fail
    Mark Fail
    Super Guru 12,814 points

    :)

    July 10, 2013 at 4:41 am
  • Ian
    Ian
    Super Guru 1,200 points

    @Danielle,
    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>

    July 10, 2013 at 7:30 am
  • Danielle
    Danielle
    Newbie 44 points

    YAY!!

    Did it!

    Thanks heaps Ian! woo!

    July 10, 2013 at 5:18 pm
Viewing 14 posts - 1 through 14 (of 14 total)

Didn't find what you were after?

Chat with us now

or contact our support team