Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter amaunsworth

    (@amaunsworth)

    the first flag is blank, how do i set a default flag to start with?

    Plugin Author Yordan Soares

    (@yordansoares)

    Hello @amaunsworth,

    The main feature of this plugin is to get the country from the current customer automatically, you don’t need to set a default country because the plugin will get this info from the customer IP.

    In any case, you can choose several preferred countries to display upper in the country list. To enable this, you have to add the preferredCountries form tag this way:

    <label> Your Phone:
        [intl_tel customer-phone preferredCountries:us-ca-mx] </label>

    In the example above your phone field will show United States, Canada and Mexico at the top of the list. You can so many codes as you need using two-letters country codes hyphen separated:

    Preferred countries in International Telephone Input for Contact Form 7 plugin

    Please note if the user is using an ad blocker browser add-on, like AdBlock, the plugin will be unable to get the customer country.

    Hope this can help you.

    Best regards,
    Yordan Soares

    Thread Starter amaunsworth

    (@amaunsworth)

    hi there,
    you mention customer IP, but a flag won’t show up until i start typing in a phone number. so if what you’re saying is correct, my IP is in Canada. so shouldn’t i see a Canadian flag to start instead of a grey/ blank flag?

    Plugin Author Yordan Soares

    (@yordansoares)

    Hello @amaunsworth,

    The last week I released the latest version of International Telephone Input for Contact Form 7 that includes a new option: Initial Country. Now you can set an initial country by default. When this option is set, the IP lookup feature will be disabled. See the changelog here.

    To add this option to an existent form-tag, just put the initialCountry parameter with the two-letter country code of your initial country this way:

    [intl_tel your-phone initialCountry:us]

    You also can add a new international telephone input using the form tag generator:

    Adding an initial country

    I hope it’s useful to you.

    Best regards,
    Yordan.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘flags don’t show up’ is closed to new replies.