ok i have the answer sorry like this , it’s work :
[code]// prefilled input search ajax search pro for titles by Laurent LE NY
add_filter( ‘asp_print_search_query’, ‘asp_change_search_text’, 1, 1);
function asp_change_search_text( $text ) {
if (is_page_template(‘template-home.php’)|| is_404()|| is_page(‘rechercher’)) { // <==pages/templates à exclure pour le placement du titre dans l’input search
remove_filter( ‘asp_print_search_query’, ‘asp_change_search_text’ );
return $text;
} else {
$s = get_the_title();
if ( !is_wp_error($s) && !empty($s) )
return $s;
return $text;
}}[/code]
<span class=”code”>but i have another question :</span>
How to remove the text by default “search here”
When users clicks in the search bar?
Sorry for my bad english….