File: /var/www/ethnikamauricia.com/wp-content/themes/soledad/404.php
<?php
/**
* The template for displaying 404 pages (not found)
*
* @package Wordpress
* @since 1.0
*/
get_header();
/**
* Set default value if fields is not isset
*
*/
$image = ! get_theme_mod( 'penci_not_found_image' ) ? get_template_directory_uri() . '/images/404.png' : get_theme_mod( 'penci_not_found_image' );
$heading_mod = get_theme_mod( 'penci_not_found_heading' );
$heading_text = ! ( $heading_mod ) ? "Apologies, unfortunately we couldn't find that page" : $heading_mod;
$heading_sub_mod = get_theme_mod( 'penci_not_found_sub_heading' );
$heading_sub_text = ! ( $heading_sub_mod ) ? "OOPS! Page you're looking for doesn't exist. Please use search for help" : $heading_sub_mod;
?>
<div class="container page-404">
<div class="error-404">
<div class="error-image">
<img src="<?php echo esc_url( $image ); ?>" alt="404" />
</div>
<?php if ( ! empty( $heading_sub_text ) ): ?>
<p class="sub-heading-text-404"><?php echo wp_kses( $heading_sub_text, penci_allow_html() ); ?></p>
<?php endif; ?>
<?php if ( ! get_theme_mod( 'penci_not_found_hide_search' ) ) : get_search_form(); endif; ?>
<?php if ( ! get_theme_mod( 'penci_not_found_hide_backhome' ) ) : ?>
<p class="go-back-home"><a href="<?php echo esc_url( home_url('/') ); ?>"><?php esc_html_e( 'Back to Home Page', 'soledad' ); ?></a></p>
<?php endif; ?>
</div>
<?php get_footer(); ?>