ThemeShaper Forums » Thematic


How do I make 'Nothing Found' search results display correctly?

(2 posts)
  • Started 8 years ago by
  • Latest reply from
  • This topic is not resolved
  1. My search results appear as needed using the following in my functions.php. They are full width and the sidebar is absent. Here is the relevant code from the functions.php

    add_action('childtheme_override_search_loop', 'thematic_search_loop');
    function childtheme_override_search_loop() {
    add_filter('thematic_sidebar', 'remove_sidebar');
    // calling the widget area 'page-top'
    		while ( have_posts() ) : the_post(); 
    				thematic_abovepost(); ?>
    				<div id="post-<?php the_ID();
    					echo '" ';
    						echo '>';
    					} else {
    						echo 'class="';
    						echo '">';
         				thematic_postheader(); ?>
    					<div class="entry-content">
    					</div><!-- .entry-content -->
    					<?php thematic_postfooter(); ?>
    				</div><!-- #post -->
    // end search_loop
    add_action('childtheme_override_search_loop', 'thematic_search_loop');

    However, when there are no results and the 'Nothing found' page appears, the sidebar is back. What do I need to add change to get the sidebar out of the search results 'Nothing Found' page?

    Thanks for any pointers...

    Posted 8 years ago #
  2. Probably not the cleanest way to do it but I just duplicated the search.php file from thematic into my child theme and made the changes needed there...

    Posted 8 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.