404 page

This support request was posted in BBQ by Leon Zorge

Request ID #945 Resolved
  • Hi Juan,

    Also an other question, can i create an 404 page?
    Or only with a plugin tool?

    Thanks Leon

    Juanfra Aldasoro

    Hi Leon,

    Yes – you can create a 404 page. You can copy the follwing code to your template 404.php

    < ?php
    // File Security Check
    if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename( $_SERVER['SCRIPT_FILENAME'] ) ) {
        die ( 'You do not have sufficient permissions to access this page!' );
    }
    ?>
    < ?php get_header(); ?>
    
    
    

    < ?php _e( 'Not Found', 'nicethemes' ); ?>

    < ?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'nicethemes' ); ?>

    < ?php get_search_form(); ?>
    < ?php get_footer(); ?>

    Please take a look at the php opening tags, this editor put a blank space before the question mark.

    Best,
    Juan.

    Hi Juan,

    The 404 page stays blank, could you help me?

    Thank you.

    Juanfra Aldasoro

    Hi Leon,

    Thanks for writing.

    I’ve just sent you the template by mail.

    Best,
    Juan.

    thanks!!! Great

    Hi Juan,

    Is it possible to resend it? I have changed my email adres in your system thanks

    Juanfra Aldasoro

    Sure, check your inbox 🙂

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

This topic is marked as resolved

Only the topic author can re-open this thread.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server