Home Forums WoodMart support forum 404 page is not displaying

404 page is not displaying

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #564583

    mehtabrothers091
    Participant

    I accidentally removed some code from the 404.php file, causing the 404 page to display a static error. Could you please provide me with the missing code for it?

    Attachments:
    You must be logged in to view attached files.
    #564631

    Luke Nielsen
    Keymaster

    Hello,

    Here is:

    <?php
    /**
     * The template for displaying 404 pages (Not Found)
     */
    
    get_header(); ?>
    
    <div class="site-content col-12" role="main">
    
    	<header class="page-header">
    		<h3 class="title"><?php esc_html_e( 'Not Found', 'woodmart' ); ?></h3>
    	</header>
    
    	<div class="page-content">
    		<h1><?php esc_html_e( 'This is somewhat embarrassing, isn&rsquo;t it?', 'woodmart' ); ?></h1>
    		<p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try a search?', 'woodmart' ); ?></p>
    
    		<?php
    		woodmart_search_form(
    			array(
    				'post_type' => apply_filters( 'woodmart_404_search_post_type', 'post' ),
    			)
    		);
    		?>
    	</div><!-- .page-content -->
    
    </div><!-- .site-content -->
    
    <?php get_footer(); ?>

    Kind Regards

Tagged: 

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