Remove booking options, change colour options?

Homepage Forums WP Travel Remove booking options, change colour options?

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3571

    laurenc
    Participant

    Hi,

    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!

    • This topic was modified 1 year, 10 months ago by  laurenc.
    #3579

    Support Team
    Keymaster

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

    #5573

    zarmayana
    Participant

    Hi, with the same problem..

    i’ve been put the code..
    But trip duration is still there in front end

    #5581

    Support Team
    Keymaster

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

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

You must be logged in to reply to this topic.