Viewing 3 replies - 1 through 3 (of 3 total)
  • Looking at your site it seems like you are using the twentyten theme and you are trying to modify some things. In the twentyten theme there is a file called loop.php which controls what the blog page is going to show in the loop. There is a line of code that says:

    <?php /* If there are no posts to display, such as an empty archive page */ ?>
    <?php if ( ! have_posts() ) : ?>
    	<div id="post-0" class="post error404 not-found">
    		<h1 class="entry-title"><?php _e( 'Not Found', 'twentyten' ); ?></h1>
    		<div class="entry-content">
    			<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyten' ); ?></p>
    			<?php get_search_form(); ?>
    		</div><!-- .entry-content -->

    This essentially means, if there is no post or content them show the message “Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post” and display the search bar.

    You can either remove the code that calls the search bar and text or create a test post so that this is not displayed, either way should work out for you.

    [Please post small code snippets between backticks or use the code button]

    But don’t edit the Twenty Ten theme! Your changes will be over-written the next time you upgrade WordPress or the theme. For this reason, it is recommended that you consider creating a child theme for your customisations.

    Yes I fully agree with esmi, creating a child theme would be the best.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘can't delete search windows’ is closed to new replies.