JANUARY SALE: Directory Theme Now Only $49 -- Learn More

Ask the community

This is a community support forum where you can ask
questions and interact with other PremiumPress Customers.

Custom 404 Page

  • Julie
    Julie
    Newbie 5 points
    July 8, 2013 at 6:55 pm

    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

  • Stephen
    Stephen
    Senior Member 215 points
    July 8, 2013 at 9:38 pm

    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

  • Julie
    Julie
    Newbie 5 points
    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
    Senior Member 215 points
    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.

    http://codex.wordpress.org/Creating_an_Error_404_Page

    Stephen

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

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

  • Mark Fail
    Mark Fail
    Super Guru 12,899 points
    July 9, 2013 at 3:49 am

    thanks for sharing Ian

  • Danielle
    Danielle
    Newbie 44 points
    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
    Super Guru 2,739 points
    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 logged in to view attached files.
  • Julie
    Julie
    Newbie 5 points
    July 9, 2013 at 9:14 pm

    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

  • Ian
    Ian
    Super Guru 1,200 points
    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
    Newbie 44 points
    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: http://www.organicnaturalbeautydirectory.com/404.php

    If you want to email me you can at mylocalshops AT yahoo.com

    Cheers,
    Danielle

  • Mark Fail
    Mark Fail
    Super Guru 12,899 points
    July 10, 2013 at 4:41 am

    :)

  • Ian
    Ian
    Super Guru 1,200 points
    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 er.. ‘Itemboxinner article’ <DIV>

  • Danielle
    Danielle
    Newbie 44 points
    July 10, 2013 at 5:18 pm

    YAY!!

    Did it!

    Thanks heaps Ian! woo!

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