Skip to content

Instantly share code, notes, and snippets.

Created Feb 28, 2015
What would you like to do?
Remove this part from 404.php
<section class="error-404 not-found">
<div class="error-page">
<h1><?php _e( '404', 'aquamag' ) ?></h1>
<h2><?php _e( 'Oops! That page can&rsquo;t be found.', 'aquamag' ); ?></h2>
<p><?php _e( 'Maybe the page was moved or deleted, or perhaps you just mistyped the address. Please, try to use the search form below.', 'aquamag' ); ?></p>
<form method="get" class="uk-search post-search" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<input type="text" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'aquamag' ); ?>">
<button class="uk-search-submit" type="submit" name="submit"><?php _e( 'Search', 'aquamag' ); ?></button>
<li><h2>You may want to read one of these instead.</h2>
<?php $posts = get_posts('orderby=rand&numberposts=10'); foreach($posts as $post) { ?>
<li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
<?php } ?>
</section><!-- .error-404 -->
</main><!-- #main -->
</div><!-- #primary -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment