- This topic has 9 replies, 4 voices, and was last updated 3 years, 2 months ago by
Support Team.
- AuthorPosts
- August 8, 2018 at 7:40 am #7691
PaulGrant
ParticipantHi there,
I would like to know how to change the word ‘pax’ to ‘people’
August 8, 2018 at 8:30 am #7694Support Team
KeymasterHello @paulgrant,
Thank you very much for using the WP Travel plugin.
Not to change the “Pax to “People” you have to activate the child theme. To know how to create and activate the child theme please refer to below given link:
http://wptravel.io/how-to-create-a-child-theme/
After activating the child theme in your child theme functions.php add below given code.
function wp_travel_customize_travel_info_section (){ return __( '%d People', 'wp-travel' ); } add_filter ('wp_travel_template_group_size_text','wp_travel_customize_travel_info_section');
Hope this helps.
Regards!!
August 8, 2018 at 10:44 am #7697PaulGrant
ParticipantThanks, this worked only for one area. It did not work for the Pricing Options
August 8, 2018 at 12:18 pm #7700Support Team
KeymasterHello @paulgrant,
To rename the “pax” displayed in the pricing option you have to use the child theme.
Ate first in your child theme create the folder “wp-travel” and inside the folder create the file “content-pricing-options.php” .
After creating the file add below given code in inside “content-pricing-options.php” file.
Hope this helps.
Regards!!
August 12, 2018 at 11:05 pm #7720privatejeep
ParticipantWell this code here has errors!!! Sorry but we should not have to do code errors to change PAX to another term. This need to be an option inside the settings of this plug-in to begin with. Add this please.
https://pastebin.com/xMTWX5HMAugust 13, 2018 at 4:46 am #7726Support Team
KeymasterHello @privatejeep,
Thank you very much for the help.
Also, the thing is, we will only provide the code after checking them locally on our setting and when we checked the code that we provided it is working absolutely fine.
Anyways thank you very much for the effort.
Further, if you have any issues further please let us know.
Thank you.
Best Regards!!
March 19, 2020 at 11:33 am #24750graphxks
ParticipantSo this still seems to be something that can’t easily be changed, despite no one in the general public knowing what PAX means. It looks like content-pricing-options.php has been completely rewritten and the above no longer functions. How do we change PAX to PEOPLE or something else globally?
Thank you.
March 19, 2020 at 12:18 pm #24755Support Team
KeymasterHello @graphxks,
To change the “Pax to “People” you have to activate the child theme. To know how to create and activate the child theme please refer to below given link:
http://wptravel.io/how-to-create-a-child-theme/
After activating the child theme in your child theme functions.php add below given code.
function wp_travel_customize_travel_info_section (){ return __( '%d People', 'wp-travel' ); } add_filter ('wp_travel_template_group_size_text','wp_travel_customize_travel_info_section');
Above code will change pax to people in the section shown in the screenshot below:
Also add the following code:
function wp_travel_customize_text($localized_strings){ $localized_strings['bookings'] ['pax'] = 'People'; return $localized_strings; } add_filter( 'wp_travel_strings', 'wp_travel_customize_text');
Above code will change pax to people in the section shown in the screenshot below:
To change pax to pax in https://prnt.sc/rizidh section, we will manage this section in the coming update.
Hoping for your kind cooperation.
Regards!!
March 19, 2020 at 1:40 pm #24759graphxks
ParticipantThank you for your quick response. That code worked very well.
On the Booking tab, under Pricing, the selector box says “Select Pax”. How can this be changed?
March 20, 2020 at 5:55 am #24775Support Team
KeymasterHello,
Regarding your query, the selector box has “Select Pax” which will be changed in the next update as we mentioned earlier. We will soon release the update fixing the issue.
Hoping for your kind co-operation.
Regards.
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.