Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @ngthanhdo,

    First of all thank you very much for using the WP Travel plugin.

    To change the language of a calendar to English even if the site language is different you have activated the child theme.

    Please refer to below given link to know how you can create the child theme:

    https://wptravel.io/how-to-create-a-child-theme/

    After activating the child theme, you need to go to functions.php of your child theme and enqueue the script and add the function.

    In the child’s theme functions.php file where you enqueue the parent theme style, just add below given code.

    wp_enqueue_script( 'adpkr-en-lang', 'https://cdnjs.cloudflare.com/ajax/libs/air-datepicker/2.2.3/js/i18n/datepicker.en.min.js', array('jquery','jquery-datepicker-lib'), '', false );
    }

    Also, add below given block of code in the file at the button.

    function wp_travel_customize_frontend_vars( $vars ) {
    
    	$vars['locale'] = 'en';
    
    	return $vars;
      
    }
    
    add_filter( 'wp_travel_js_frontend_vars', 'wp_travel_customize_frontend_vars', 99 );

    Screenshot:

    https://prnt.sc/kd7tqm

    Hope this helps.

    Further, if you have any issues then please post them directly in our official support forum given below:

    https://wptravel.io/support-forum/forum/wp-travel/

    Thank you.

    Best Regards!!

    Thread Starter ngthanhdo

    (@ngthanhdo)

    Thank you @wensolutionsupport for support.

    I tried your way but the results have not changed, is there something missing?

    I want to change directly in the plugin , how can i do that?

    View post on imgur.com

    Thread Starter ngthanhdo

    (@ngthanhdo)

    While waiting for your reply, I changed in datepicker.min.js. its working
    Thank you again

    Hello @ngthanhdo,

    We would like to apologize for the delay in reply.

    Also, we are very glad that the calendar is working for you.

    Let us if you have any issue further.

    Thank you.

    Best Regards!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to change Russian date to English’ is closed to new replies.