Changing search form words
-
Hi
How do I change the terms showin in the search form please?
I thought I’d managed to work this out myself, but it’s not working.
I thought making a duplicate of defaults.php in my child theme’s wpadverts folder would work if I changed this;
// Set default search form in [adverts_list] shortcode Adverts::instance()->set("form_search", array( "name" => "search", "action" => "", "field" => array( array( "name" => "query", "type" => "adverts_field_text", "order" => 10, "attr" => array( "placeholder" => __("Keyword ...", "adverts") ), "meta" => array( "search_group" => "visible", "search_type" => "half" ) ),
To this;
// Set default search form in [adverts_list] shortcode Adverts::instance()->set("form_search", array( "name" => "search", "action" => "", "field" => array( array( "name" => "query", "type" => "adverts_field_text", "order" => 10, "attr" => array( "placeholder" => __("Accommodation Type ...", "adverts") ), "meta" => array( "search_group" => "visible", "search_type" => "half" ) ),
But nothing happened.
Am I close?
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Changing search form words’ is closed to new replies.