- This topic has 3 replies, 3 voices, and was last updated 4 years, 4 months ago by
WP Travel Admin.
Viewing 4 posts - 1 through 4 (of 4 total)
- AuthorPosts
- January 31, 2019 at 5:40 am #10105
privatejeep
ParticipantIs it possible to change “Pricing Name” to say “Trip Name” instead using a child-theme code?
This is on a page where I have multiple pricing and fixed departures setup.
Please see this page: https://www.privatejeep.com/itinerary/recon/
January 31, 2019 at 11:44 am #10185Support Team
KeymasterHello @privatejeep,
In case if you want to change the text then you have to go through the child theme.
Now to change the pricing name to trip name add below given CSS by going to your child theme’s functions.php file.
add_filter( 'gettext', 'wp_travel_change_field_names', 20, 3 ); /** * Change comment form default field names. * * @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext */ function wp_travel_change_field_names( $translated_text, $text, $domain ) { if ( is_singular() ) { switch ( $translated_text ) { case 'Pricing Name' : $translated_text = __( 'text', 'wp-travel' ); break; } } return $translated_text; }
Hope this helps.
Regards!!
January 31, 2019 at 3:38 pm #10204privatejeep
ParticipantTHANKS! PERFECTION! 🙂
February 1, 2019 at 4:52 am #10224WP Travel Admin
KeymasterHello @privatejeep,
Glad we could help you,
Feel free to reach us for any further query/confusion.
Regards!!
- AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘WP Travel’ is closed to new topics and replies.