How to create a 404 page in WordPress?

In ThisHow to create a 404 page in WordPress? blog, we are going to learn How to create a 404 page in WordPress?d d 2

1).Login to your WordPress Dashboard.


2.Go to on dashboard then click on >apearence> Theme editor.


3.Now copy the below code and Find the 404 file and  paste the code Into the file.

 * The template for displaying 404 pages (Not Found)
 * @package WordPress
 * @subpackage Twenty_Thirteen
 * @since Twenty Thirteen 1.0

get_header(); ?>
	<div id="primary" class="content-area">
		<div id="content" class="site-content"      role="main">
	<div class="page-wrapper">
        <div class="page-content">
       <h2 class="custom-title3"><?php _e( 'Not Found', 'twentythirteen' ); ?></h2>
 <h1 class="custom-title1"><?php _e( 'Not Found', 'twentythirteen' ); ?></h1>
<h2><?php _e( 'This is somewhat embarrassing, isn’t it?', 'twentythirteen' ); ?></h2>
<p><?php _e( 'It looks like nothing was found at this location. Maybe try a search?', 'twentythirteen' ); ?></p>

  <?php get_search_form() ?>
	</div><!-- .page-content -->
		</div><!-- .page-wrapper -->

		</div><!-- #content -->
	    </div><!-- #primary -->

<?php get_template_part( 'template-parts/footer-menus-widgets' ); ?>

<?php get_footer(); ?> 

Congratulations! Your 404 page is created, Now you can see the page looks like this.

If you have any problems please leave your queries in the comment box.

Thank you.

Setting up email field in contact form 7.