• Resolved mathildeletard

    (@mathildeletard)


    Hello, I would like to change which country is selected by default.
    It’s currently United states with under it United Kingdom and I would rather have France. Where can I find this setting ?
    Thank you in advance for your help !

    EDIT : OK I found the custom script file…

Viewing 4 replies - 1 through 4 (of 4 total)
  • grutz

    (@grutz)

    I’m having the same problem. I don’t know code but did modify the countries in both files countrySelect.js and intlTelInput.js but I’m missing something as it’s still US and UK. Thanks in advance for your help.

    The new code:
    countrySelect.js
    Line 23
    preferredCountries: [ “nz”, “au”, “ca”, “cn”, “gb”, “us” ]

    intlTelInput.js
    Line 52
    preferredCountries: [ “nz”, “au”, “ca”, “cn”, “gb”, “us” ]

    • This reply was modified 6 years ago by grutz.
    grutz

    (@grutz)

    Got it working now, had to edit file countrySelect.min.js

    Plugin Author Narinder Singh

    (@narinderbisht)

    Thank you @grutz for participate in plugin support.
    I updated the plugin FAQs for more details about, how plugin users can fix default country, preferred countries, and specific countries list.

    I am looking for a more easy way, so user can manage it without code alternation.

    Plugin Author Narinder Singh

    (@narinderbisht)

    Hi @mathildeletard and @grutz
    Hope you are doing well,

    Kindly update the plugin version. Now I added the option for setting default country, include, exclude and preferred countries from admin settings.
    Admin Menu for setting page. Contact >> CPF settings.

    I would appreciate the 5 star rating. ??

    Regards
    Narinder.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change default country’ is closed to new replies.