Skip to content

Instantly share code, notes, and snippets.

@arsieorgano
Created February 28, 2015 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arsieorgano/66283ca48c2ac80f4328 to your computer and use it in GitHub Desktop.
Save arsieorgano/66283ca48c2ac80f4328 to your computer and use it in GitHub Desktop.
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>
</form>
</div>
<div>
<li><h2>You may want to read one of these instead.</h2>
<ul>
<?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>
</li>
<?php } ?>
</ul>
</li>
</div>
</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