Group size – how do I replace ‘PAX’ with ‘people’ ?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6060
    tonypuffer
    Participant

    Thanks for your previous answer to use http://wptravel.io/documentations/developer-documentation/filter-hook/wp_travel_template_group_size_text/

    So I’m not a developer! However, I have created a child theme & have tried entering the code into the Theme functions PHP file as detailed in your link, but the result I get is a load of code entered about my webpage header! So clearly I’m not entering the code in the right place. This is what I’ve done – can you point out the error?

    <?php
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    function my_theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );

    }
    ?>
    // wp_travel_template_group_size_text

    function wp_travel_customize_travel_info_section (){

    return __( ‘people’, ‘wp-travel’ );
    }
    add_filter (‘wp_travel_template_group_size_text’,’wp_travel_customize_travel_info_section’);
    }<br>

    #6080
    Support Team
    Keymaster

    Hello @tonypuffer,

    The error is generated due to the syntax error.

    So please replace the entire code of your child theme functions.php with the code given below:

    https://gist.github.com/Steeru/56d60a5a0616a7f4f59ff1c066ec9c71

    Hope this helps.

    Best Regards!!

    #6094
    tonypuffer
    Participant

    Brilliant – many thanks for your prompt response.

    #6106
    WP Travel
    Keymaster

    Hello @tonypuffer,

    Glad we could help you.

    Let us know if you have any issues further.

    Thank you.

    Best Regards!!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘WP Travel’ is closed to new topics and replies.