Skip to content

Instantly share code, notes, and snippets.

@isaumya

isaumya/404.php Secret

Created June 12, 2020 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaumya/97d8f15cdff0e1d515e0d9063399dc0c to your computer and use it in GitHub Desktop.
Save isaumya/97d8f15cdff0e1d515e0d9063399dc0c to your computer and use it in GitHub Desktop.
404 Page Template
<?php
/**
* The template for displaying 404 (Not Found) pages.
*
* @package Digital
*/
get_header(); ?>
<main id="wrapper">
<div class="container clearfix">
<article class="article ss-full-width">
<div id="content_box">
<?php
// Elementor 'single' location.
if ( ! function_exists( 'elementor_theme_do_location' ) || ! elementor_theme_do_location( 'single' ) ) {
?>
<header>
<div class="title">
<h1><?php esc_html_e( '404', 'digital' ); ?></h1>
</div>
<div class="subtitle">
<h3><?php esc_html_e( 'Page Not Found', 'digital' ); ?></h3>
</div>
</header>
<div class="post-content">
<p>The page you are looking for either does not exists or has been deleted/moved. Please check the <abbr title="Uniform Resource Locator">URL</abbr> again to ensure that you are visiting the correct pager. If you feel that you are visiting the correct page but due to some system error you are seeing this error page, then please <a href="<?php echo get_page_link(2); ?>" target="_self" rel="internal">get in touch with us</a> and we will look into it.</p>
<a
href="<?php echo get_home_url(); ?>"
class="cust-btn border is-btn-big has-primary-color must-center"
target="_self"
rel="internal"
>
<?php _e('Go Back to Home Page', 'acnam'); ?>
</a>
<?php //get_search_form(); ?>
</div><!--.post-content--><!--#error404 .post-->
<?php
}
?>
</div><!--#content_box-->
</article>
</div>
</main>
<?php
get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment