http://stackoverflow.com/questions/6762901/get-search-formwordpress-in-a-placeholder-web-form
http://wordpress.stackexchange.com/questions/102225/create-placeholder-text-for-wordpress-search-box
<div class="search-head-mobile">
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label for="s" class="assistive-text"><?php _e( 'Search' ); ?></label>
<input type="text" name="s" id="s" placeholder="<?php esc_attr_e( 'Whatever you are looking for, find it here' ); ?>" onfocus="if (this.value == 'Whatever you are looking for, find it here') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Whatever you are looking for, find it here';}" />
<input type="submit" name="submit" id="searchsubmit" value='Reapp' />
</form>
</div>
http://wordpress.stackexchange.com/questions/102225/create-placeholder-text-for-wordpress-search-box
<div class="search-head-mobile">
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label for="s" class="assistive-text"><?php _e( 'Search' ); ?></label>
<input type="text" name="s" id="s" placeholder="<?php esc_attr_e( 'Whatever you are looking for, find it here' ); ?>" onfocus="if (this.value == 'Whatever you are looking for, find it here') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Whatever you are looking for, find it here';}" />
<input type="submit" name="submit" id="searchsubmit" value='Reapp' />
</form>
</div>
No comments:
Post a Comment