Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
Can't input text to search box « ThemeShaper Forums

ThemeShaper Forums » Thematic


Can't input text to search box

(2 posts)
  • Started 4 years ago by joshuaiz
  • Latest reply from joshuaiz
  • This topic is resolved
  1. joshuaiz


    I have a search box inserted in a div in thematic_belowheader(). The search box (& button) show up but it won't allow me to input text into the search field or click the "Search" button. The code was copied from Ian's code to move the search box to the access div so it should match the thematic_search_form() exactly.

    Is there any reason why a search box can't be placed anywhere? Is there something else I am missing here?

    The code is as follows:

    form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
    <div><input type="text" value="<?php if(is_search() ) { the_search_query(); } else { echo 'Search...'; } ?>" name="s" id="s" onfocus="if(this.value=='Search...')this.value='<?php the_search_query(); ?>'" onblur="if(this.value=='')this.value='Search...'" />
    <input type="submit" id="searchsubmit" value="Search" />


    Posted 4 years ago #
  2. joshuaiz

    I figured this out - you have to place the search box with an action hook, not just willy-nilly anywhere in your theme :)

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183