<?php /** * The template for displaying 404 pages (not found) * @subpackage Organic Farm * @since 1.0 */ get_header(); ?> <div id="primary" class="content-area"> <main id="content" class="site-main" role="main"> <?php $organic_farm_header_option = get_theme_mod( 'organic_farm_show_header_image','on'); if($organic_farm_header_option == 'on'){ ?> <header class="page-header"> <div class="header-image"></div> <div class="internal-div"> <?php //breadcrumb if ( !is_page_template( 'page-template/custom-home-page.php' ) ) { ?> <div class="bread_crumb archieve_breadcrumb align-self-center text-center"> <?php organic_farm_breadcrumb(); ?> </div> <?php } ?> <h1 class="page-title text-center my-5"><?php esc_html_e( 'Oops! That page can’t be found.', 'organic-farm' ); ?></h1> <div class="home-btn text-center"> <a href="<?php echo esc_url( home_url() ); ?>" class="py-3 px-4"><?php esc_html_e( 'GO BACK', 'organic-farm' ); ?></a> </div> </div> </header> <section class="error-404 not-found my-5"> <div class="container"> <div class="page-content"> <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'organic-farm' ); ?></p> <?php get_search_form(); ?> </div> </div> </section> <?php } else if($organic_farm_header_option == 'off'){ ?> <section class="error-404 without-img-head not-found py-5"> <div class="container"> <div class="page-content"> <?php //breadcrumb if ( !is_page_template( 'page-template/custom-home-page.php' ) ) { ?> <div class="bread_crumb archieve_breadcrumb align-self-center text-center"> <div class="without-img"> <?php organic_farm_breadcrumb(); ?> </div> </div> <?php } ?> <h2 class=" text-center my-5"><?php esc_html_e( '404', 'organic-farm' ); ?></h2> <h1 class=" text-center my-5"><?php esc_html_e( 'Oops! That page can’t be found.', 'organic-farm' ); ?></h1> <p class="text-center"><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'organic-farm' ); ?></p> <?php get_search_form(); ?> <div class="home-btn text-center mt-5"> <a href="<?php echo esc_url( home_url() ); ?>" class="py-3 px-4"><?php esc_html_e( 'GO BACK', 'organic-farm' ); ?></a> </div> </div> </div> </section> <?php } ?> </main> </div> <?php get_footer();
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
assets | Folder | 0755 |
|
|
inc | Folder | 0755 |
|
|
languages | Folder | 0755 |
|
|
page-template | Folder | 0755 |
|
|
template-parts | Folder | 0755 |
|
|
woocommerce | Folder | 0755 |
|
|
404.php | File | 2.5 KB | 0644 |
|
archive.php | File | 1.94 KB | 0644 |
|
comments.php | File | 1.62 KB | 0644 |
|
footer.php | File | 934 B | 0644 |
|
functions.php | File | 19.59 KB | 0644 |
|
header.php | File | 8.38 KB | 0644 |
|
index.php | File | 2.56 KB | 0644 |
|
page.php | File | 2.93 KB | 0644 |
|
readme.txt | File | 12.71 KB | 0644 |
|
screenshot.png | File | 291.08 KB | 0644 |
|
search.php | File | 2.82 KB | 0644 |
|
searchform.php | File | 622 B | 0644 |
|
sidebar.php | File | 1.04 KB | 0644 |
|
single.php | File | 220 B | 0644 |
|
style.css | File | 56.34 KB | 0644 |
|