Julie

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.

  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

Created: July 8, 2013 at 6:55 pm
  • In: DirectoryPress
  • Started by: JulieJulie
  • 6 members left 13 comments
  • Last reply from: DanielleDanielle

  • Stephen
    Stephen
    July 8, 2013 at 9:38 pm

    I recommend using the plugin Customize your 404 Error Page for WordPress :

    … excellent plugin. Yes it does work with WP and the PremiumPress Themes.

    See how we use it here:

    Stephen

  • Julie
    Julie
    July 8, 2013 at 10:20 pm

    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.

  • Stephen
    Stephen
    July 9, 2013 at 2:19 am

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

    Stephen

  • Ian
    Ian
    July 9, 2013 at 2:30 am

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

  • Mark Fail
    Mark Fail
    July 9, 2013 at 3:49 am

    thanks for sharing Ian

  • Danielle
    Danielle
    July 9, 2013 at 7:06 pm

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

  • Richard Bonk
    Richard Bonk
    July 9, 2013 at 7:11 pm

    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 a member to view attached files.
  • Julie
    Julie
    July 9, 2013 at 9:14 pm

    Thanks to everyone I have my 404 page running:

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

    Julie

  • Ian
    Ian
    July 10, 2013 at 1:26 am

    @Julie, not difficult just different.

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

  • Danielle
    Danielle
    July 10, 2013 at 4:38 am

    @ 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:

    If you want to email me you can at mylocalshops AT

    Cheers,
    Danielle

  • Mark Fail
    Mark Fail
    July 10, 2013 at 4:41 am

    🙂

  • Ian
    Ian
    July 10, 2013 at 7:30 am

    @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 ‘Itemboxinner article’ <DIV>

  • Danielle
    Danielle
    July 10, 2013 at 5:18 pm

    YAY!!

    Did it!

    Thanks heaps Ian! woo!


Viewing 14 posts - 1 through 14 (of 14 total)