- This topic has 3 replies, 3 voices, and was last updated 5 years, 2 months ago by
Support Team.
- AuthorPosts
- January 3, 2018 at 3:13 pm #3571
laurenc
ParticipantHi,
I am wondering if it is possible to remove a few of the booking options: specifically the Trip Code, Address, and Trip Duration? Additionally, is it possible to change ‘Pax’ to ‘Group Size’?
Also, if I wanted to change the red colour of the red text when that tab is selected/highlighted, where would I find the code to change it?
Thank you!
January 4, 2018 at 5:11 am #3579Support Team
KeymasterHello @laurenc,
Yes, you can definitely remove the Address, Trip duration from the booking form using the filter and for this you have to activate the child theme.
You can even activate the child theme using the plugin given below:
https://wordpress.org/plugins/wp-child-theme-generator/
After activating the required child theme in your child theme functions.php file paste below given code.
add_filter( 'wp_travel_booking_form_fields', 'wp_travel_customize' ); function wp_travel_customize( $fields ) { $fields['pax']['label'] = __( 'Group Size', 'wp-travel' ); unset( $fields['trip_duration'], $fields['address'] ); return $fields; }
The above code will also replace the string “Pax” to “Group Size” from your booking form.
As for the “Trip Code” we are not quite clear whether you want to remove it from the backend or at the front end.
If you want them to remove it from the frontend then please paste the below-given code into your child theme functions.php file.
https://gist.github.com/anonymous/7fe47950276998841c29fbff4731f63e
Now to change the active color of the tab i.e. red color use below given CSS.
For this go to Admin Panel > Appearance > Customize > Additional CSS and paste below given CSS.
.wp-travel-tab-wrapper .tab-list.resp-tabs-list li.resp-tab-active { color: #000; }
Here you can change the color code as per your requirement.
Hope this helps.
If you find any confusion further please feel free to post.
Best Regards!!
Have a good day.
March 17, 2018 at 5:31 am #5573zarmayana
ParticipantHi, with the same problem..
i’ve been put the code..
But trip duration is still there in front endMarch 19, 2018 at 6:13 am #5581Support Team
KeymasterHello @zarmayana,
The code that we have provided above which you need to add in the child theme removes the “Trip Duration” from the booking form filed but not from the meta field that appears beside the trip image i.e. at the top right.
Now to remove it from there as well add below-given CSS in Additional CSS.
.wp-travel-trip-meta-info ul li:nth-of-type(6) { display: none; }
Hope this helps.
Best Regards!!
- AuthorPosts
- The forum ‘WP Travel’ is closed to new topics and replies.