Change 'pax' wording to 'People'

Homepage Forums WP Travel Change 'pax' wording to 'People'

Tagged: 

This topic contains 5 replies, has 3 voices, and was last updated by  Support Team 1 year, 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #7691

    PaulGrant
    Participant

    Hi there,

    I would like to know how to change the word ‘pax’ to ‘people’

    #7694

    Support Team
    Keymaster

    Hello @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!!

    #7697

    PaulGrant
    Participant

    Thanks, this worked only for one area. It did not work for the Pricing Options

    Pricing Options

    #7700

    Support Team
    Keymaster

    Hello @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.

    https://pastebin.com/xMTWX5HM

    Hope this helps.

    Regards!!

    #7720

    privatejeep
    Participant

    Well 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/xMTWX5HM

    • This reply was modified 1 year, 1 month ago by  privatejeep.
    #7726

    Support Team
    Keymaster

    Hello @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!!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.