<?php
/**
 * The template for displaying 404 pages (not found)
 *
 * @link    https://codex.wordpress.org/Creating_an_Error_404_Page
 *
 * @package wpstream-theme
 */

get_header();
?>
	<div id="content" class="site-content py-5 mt-5 <?php echo esc_attr( wpstream_theme_container_class() ); ?>">
		<div id="primary" class="content-area">

			<main id="main" class="site-main">

				<section class="error-404 not-found">
					<div class="page-404">

						<h1 class="mb-3"><?php esc_html_e( '404', 'hello-wpstream' ); ?></h1>

						<!-- Remove this line and place some widgets -->
						<p class="alert alert-info mb-4"><?php esc_html_e( 'Page not found.', 'hello-wpstream' ); ?></p>

						<!-- 404 Widget -->
						<?php if ( is_active_sidebar( '404-page' ) ) : ?>
							<div><?php dynamic_sidebar( '404-page' ); ?></div>
						<?php endif; ?>

						<a class="btn btn-outline-primary" href="<?php echo esc_url( home_url() ); ?>" role="button"><?php esc_html_e( 'Back Home &raquo;', 'hello-wpstream' ); ?></a>
						
					</div>

				</section><!-- .error-404 -->

			</main><!-- #main -->

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

<?php
get_footer();
