404 error page
-
Hello!
I have two search fields on 404 error page. I’ve check another blog, based on this theme and it’s the same. Any ideas how to edit to code in order to have only one field?
Here is the code for no-results.php
<?php /** * @package Serene * @since Serene 1.0 */ ?> <div class="entry no-results-found"> <h1><?php esc_html_e( 'Hmm. Weird! Nothing found. Maybe serch again?', 'Serene' ); ?></h1> <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'Serene' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p> <?php elseif ( is_search() ) : ?> <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'Serene' ); ?></p> <?php get_search_form(); ?> <?php else : ?> <!-- <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'Serene' ); ?></p> <?php get_search_form(); ?> --> <?php endif; ?> </div>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘404 error page’ is closed to new replies.