Change Book Now buttons

Homepage Forums WP Travel Change Book Now buttons

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

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

    ikmagine
    Participant

    Hi,

    How can I change the text in the Book Now buttons to Enquire Now?

    Book Now buttons

    #6403

    WP Travel Admin
    Keymaster

    Hello @ikmagine,

    To change the text “Book Now” of the button beside the trip image add below given code in your functions.php file.

    function wp_travel_customize_button_text() {
    	return "Enquire Now";
    }

    add_filter( ‘wp_travel_template_book_now_text’, ‘wp_travel_customize_button_text’, 20 );

    Now to change the text of button in the booking form add below given code in your child theme functions.php file:

    function wp_travel_custom_gettext_string_editor( $string ){
    
    	switch ($string) {
    		case 'Book Now':
    		
    			return 'Enquire Now';	
    				
    		break;
    	}
    
    	return $string;
    
    }
    
    add_filter( 'gettext', 'wp_travel_custom_gettext_string_editor', 30 );

    Hope this helps.

    Best Regards!!

    #6452

    ikmagine
    Participant

    Hi,

    Works 100%! Thank you!

    #6456

    Support Team
    Keymaster

    Hello @ikmagine,

    Glad we could help you.

    Any further issues are always welcome :).

    We would also really appreciate if you could help us by rating the plugin by following the link given below if you haven’t.

    https://wordpress.org/support/plugin/wp-travel/reviews/

    Thank you.

    Best Regards!!

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

You must be logged in to reply to this topic.