File: /var/www/Application/wp-content/themes/zoomy/404.php
<?php
/**
* The main template file
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package zoomy
*/
get_header();
$opt = get_option( 'zoomy_opt' );
$error_title = ! empty( $opt['error_heading'] ) ? $opt['error_heading'] : __( '404', 'zoomy' );
$error_sub_title = ! empty( $opt['error_subtitle'] ) ? $opt['error_subtitle'] : __( "The page you were looking for doesn't exist", "zoomy" );
?>
<section class="blog-area no-results not-found blog-sidebar mt-98">
<div class="blog-bg pt-70 pb-120">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="section-title text-center mb-90">
<?php
if( $error_title ){ ?>
<h2 class="mb-10 content-align-center"> <?php echo esc_html( $error_title ); ?></h2>
<?php }
printf( wpautop( $error_sub_title ) );
?>
</div>
<div class="page-content">
<div class="widget widget_search error_search_form">
<?php echo get_search_form() ?>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<?php get_footer();