Created
February 28, 2015 09:29
-
-
Save arsieorgano/66283ca48c2ac80f4328 to your computer and use it in GitHub Desktop.
Remove this part from 404.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="error-404 not-found"> | |
<div class="error-page"> | |
<h1><?php _e( '404', 'aquamag' ) ?></h1> | |
<h2><?php _e( 'Oops! That page can’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