• Resolved innernature

    (@innernature)


    Hi there,

    I’ve been having trouble with the search function on a blog theme I’ve been working on. It was working fine before, but I tried to put a nice search button image in by adding a searchform.php where I had the search form code, so I could edit that part.
    The include seems to work fine, and the searchform.php does send the user to the search.php page with the search results, but as far as I can tell, the search.php has disconnected itself from the style sheet, so it looks like plain text. Does anyone know why this is happening?

    Here’s my test blog:
    https://silentskydesign.com/wordpresstest/

    Here are some details:

    In Index.php is the include to searchform.php:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    <?php include (TEMPLATEPATH . ‘/searchform.php’); ?>

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Here is searchform.php’s code:

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    <div id=”search”>

    <form name=”searchform” id=”searchform” method=”get” action=”<?php bloginfo(‘home’); ?>”>

    <input class=”text” type=”text” name=”s” id=”s” value=”<?php the_search_query(); ?>”/>

    <input class=”submit” type=”image” src=”<?php bloginfo(‘template_directory’); ?>/images/searchbtn2.jpg” value=”” />

    </form>

    </div><!– /search –>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Here is a link to a text file version of search.php:

    https://silentskydesign.com/search.txt

    Thanks a bunch,

    C.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with search.php/searchform.php’ is closed to new replies.