This topic has 4 replies, 3 voices, and was last updated 8 years, 8 months ago ago by Stan Russell
hello, i want to change placeholder ‘search’ text to ‘i’m looking for…’ text
i try to change…
<form method="get" id="searchform" class="hide-input" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<input type="text" name="s" id="s" placeholder="<?php esc_attr_e( 'Search...', ETHEME_DOMAIN ); ?>" />
<input type="hidden" name="post_type" value="post" />
<input type="submit" value="<?php esc_attr_e( 'Go', ETHEME_DOMAIN ); ?>" class="button" />
<div class="clear"></div>
</form>
to
<form method="get" id="searchform" class="hide-input" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<input type="text" name="s" id="s" placeholder="<?php esc_attr_e( 'i'm looking for...', ETHEME_DOMAIN ); ?>" />
<input type="hidden" name="post_type" value="post" />
<input type="submit" value="<?php esc_attr_e( 'Go', ETHEME_DOMAIN ); ?>" class="button" />
<div class="clear"></div>
</form>
code but it is not working. can you please get a look into this…
Hello,
You should edit \wp-content\themes\legenda\framework\shortcodes.php file on line 195
$output .= '<input type="text" value="'.$search_input.'" name="'.esc_attr($search_key).'" id="s" autocomplete="off" placeholder="'.__('Search', ETHEME_DOMAIN).'"/>';
Regards,
Robert Hall
its working perfectly..!! thank you. 🙂
Hello bdcmc,
you are welcome!
Regards,
Stan Russell.
Tagged: form, placeholder, search, text, themes, woocommerce, wordpress
The issue related to '‘search form placeholder text’' has been successfully resolved, and the topic is now closed for further responses