- This topic has 1 reply, 2 voices, and was last updated 5 years, 4 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.


Home › Forums › Pro Themes › Travel Insight Pro › Wp Travel Search Filter
Tagged: Wp Travel Search Filter
Hi, how can i change the text on the search filter? I would like to rename terms like search.
Thank you
Hello @rickfamous,
Yes, you can definitely change the search filter text through the filter and for this you need to create and activate the child theme.
To know how you can create and activate the child theme, refer to below given link:
https://wptravel.io/how-to-create-a-child-theme/
After creating the child theme, in your child theme functions.php paste below given code.
function customized_strings( $strings ) {
$strings['trip_type'] = __( 'Your Trip type', 'wp-travel' );
$strings['search'] = __( 'Your Search', 'wp-travel' );
$strings['location'] = __( 'Your Location', 'wp-travel' );
return $strings;
}
add_filter( 'wp_travel_search_filter_label_strings', 'customized_strings' );
Here change the text as per your requirement.
Thank you.
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |



