• Resolved dragoncreative

    (@dragoncreative)


    I followed the instruction to amend the code in php file to change Zip field to Postal Code, but I cannot get it work. Is the code below correct ?

    /**
    * Change the ‘Zip’ field label to ‘Postal Code’ (beneficial for UK residents)
    * @reference: https://github.com/yikesinc/yikes-inc-easy-mailchimp-extender/issues/453
    */
    function yikes_mailchimp_change_zip_label_to_postcode( $field_label ) {
    $field_label = ‘Postal Code’;
    return $field_label;
    }
    add_filter( ‘yikes-mailchimp-address-zip-label’, ‘yikes_mailchimp_change_zip_label_to_postcode’ );

    Thank you

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Freddie

    (@fmixell)

    Hey @dragoncreative,

    Sorry for the late reply, where did you put that code is it in your theme or child themes functions.php file?

    Cheers,
    Freddie

    Thread Starter dragoncreative

    (@dragoncreative)

    No worries, thanks for replying.

    It is in the child theme functions.php

    Thanks

    Plugin Contributor Freddie

    (@fmixell)

    Hey @dragoncreative,

    Actually you can change that in your individual form settings here’s a screenshot:

    View post on imgur.com

    If you see there’s a little pencil next to the field name. Click that and change it. After you change it make sure you click the checkbox to save.

    Also, if you click on the field ( not the pencil ) it will expand with more options. There you’ll find a place to add a placeholder for your field.

    Cheers,
    Freddie

    Thread Starter dragoncreative

    (@dragoncreative)

    It doesn’t appear to be possible to do that on the form I have.

    I imported the address field from Mailchimp, on the front end form it automatically populated the imported address field with various address lines – address, address2, city, zip, country

    Plugin Contributor Freddie

    (@fmixell)

    @dragoncreative,

    I just double checked my setup and it looks like you need to go into Mailchimp and do the following:

    – Click Audience at the top of the page.
    – Under the “Current Audience” dropdown choose your list.
    – On the right side of the page choose Settings in the “Manage Audience” dropdown.
    – Scroll down to “Audience fields and *|MERGE|* tags”
    – Navigate to the Zip field and change that to Post Code or whatever you’d like to call it.

    Enjoy the rest of your day!

    – Freddie

    Thread Starter dragoncreative

    (@dragoncreative)

    Hi Freddie,

    Thanks for the response.

    When I go into Mailchimp, there is no Zip Field, only an Address field, I have taken a screenshot but cannot find anywhere here to attach it.

    In wordpress, when I add the Address field, Yikes seems to be splitting it out into different fields, for addr1, addr2, town, zip code

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Zip Code’ is closed to new replies.