Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @ashan-rupasinghe,

    Where did you add the code? I just copied that snippet directly and placed it into my functions.php file and my forms now default to the U.K. so I don’t think there’s an issue with the code. Can you explain how you applied it?

    Thank you,
    Kevin.

    Thread Starter Ashan Rupasinghe

    (@ashan-rupasinghe)

    I did that in same way.
    I am building multi language site with WPML.

    Is there way to get a support?

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    How are you detecting the user’s country? Perhaps the value you’re getting as the user’s country doesn’t lineup with the values we’re expecting in the dropdown.

    Thread Starter Ashan Rupasinghe

    (@ashan-rupasinghe)

    If I assigned a country directly
    like here, nothing happened.

    function yikes_mailchimp_set_default_country_in_dropdown( $country_abbrev ) {
    	$country_abbrev = 'GB';
    	return $country_abbrev;
    }
    add_filter( 'yikes-mailchimp-default-country-value', 'yikes_mailchimp_set_default_country_in_dropdown' );
    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hm. Are you sure this code is executing? And can you send me the URL of your form so I can check it out?

    Plugin Contributor Tracy Levesque

    (@liljimmi)

    ?????? YIKES, Inc. Co-Owner

    Hi @ashan-rupasinghe,

    We haven’t heard back from you in awhile so I am going to close out this ticket.

    If you need more help, please reopen it and we will be happy to help you.

    Thank you!
    -Tracy

    Thread Starter Ashan Rupasinghe

    (@ashan-rupasinghe)

    Hi,
    Thank you very much for your support.
    Unfortunately I cant share the link with you.
    But I fixed the issue with a custom jQuery function.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘change the default country not working’ is closed to new replies.