ThemeShaper Forums » Thematic


how to edit Search.php?

(3 posts)
  • Started 11 years ago by ductiletoaster
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. Ok basically im building a child theme and have up untill now been able to use hooks and filters to do what i needed. However there is an if else statement in need to edit in the search.php (specifically the else section)

    else {
    <div id="post-0" class="post noresults">
    <h1 class="entry-title"><?php _e('Nothing Found', 'thematic') ?></h1>
    <div class="entry-content">
    <p><?php _e('Sorry, but nothing matched your search criteria. Please try again with some different keywords.', 'thematic') ?></p>
    <form id="noresults-searchform" method="get" action="<?php bloginfo('home') ?>">
    <input id="noresults-s" name="s" type="text" value="<?php echo wp_specialchars(stripslashes($_GET['s']), true) ?>" size="40" />
    <input id="noresults-searchsubmit" name="searchsubmit" type="submit" value="<?php _e('Find', 'thematic') ?>" />
    </div><!-- .post -->


    I would rather avoid editing the search.php file directly because im trying to build a proper child theme! suggestions? thank you ahead of time!!!

    Posted 11 years ago #
  2. dhales

    It might not be considered the most "clean" way of doing it, but in still keeping line without modifying any of the core thematic files you can simply copy the entire search.php file and paste it into your childtheme directory. Thereby overwriting the thematic search.php without actually modifying the original one.

    Posted 11 years ago #
  3. i have also done what dhales mentioned. i think b/c the search form itself is not inside the entry-content div... and so was all out of line on me

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.