Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter smartstartaus3081

    (@smartstartaus3081)

    Hey Frank

    after lots of searching online, i have found and added an extra piece of code to backend file.

    On file manager (cpanel) go to plugin folder
    public_html/wp-content/plugins/autocomplete-location-field-contact-form-7/includes

    open or edit php file GWAA_Backend.php

    add extra code after autocomplete.inputId = acInputs[i].id;

    extra code:

    // Set initial restriction to the greater list of countries.
    // [START maps_places_autocomplete_countries_multiple]
    autocomplete.setComponentRestrictions({country: [“au”],});

    you can select your country based on google country codes.

    it worked for my site.

Viewing 1 replies (of 1 total)