- This topic has 3 replies, 3 voices, and was last updated 4 years, 9 months ago by
WP Travel Admin.
- AuthorPosts
- April 18, 2018 at 8:16 am #6060
tonypuffer
ParticipantThanks 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_textfunction 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>April 18, 2018 at 11:33 am #6080Support Team
KeymasterHello @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!!
April 19, 2018 at 7:54 am #6094tonypuffer
ParticipantBrilliant – many thanks for your prompt response.
April 19, 2018 at 8:50 am #6106WP Travel Admin
KeymasterHello @tonypuffer,
Glad we could help you.
Let us know if you have any issues further.
Thank you.
Best Regards!!
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.