Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there James,

    Thanks for posting! I’m happy to help you get going in the right direction to update the fields and displayed text to something more customized.

    The labels for the form fields are going to be pulled in directly from what the fields are named in MailChimp. When logged into your MailChimp account, head to the Lists page, and open the list you have connected to WordPress via the plugin. Using the Settings drop down menu, navigate to the “List fields and *|MERGE|* tags” page. Here you can rename fields in the list.

    Then, in the WordPress plugin settings, use the “Update List” button to pull in the new field names.

    As for changing the “required info” message, this would need to be done by accessing the mailchimp_widget.php plugin file and locate this piece of code: <?php esc_html_e('required field', 'mailchimp_i18n'); ?>

    In that line of code you can change the required field text to the text you would rather display to explain the * indicating a required field in the form.

    Make sure to remove any spaces before the opening <?php tag when editing/saving changes to the code in the mailchimp_widget.php file. Certain editors will add additional spaces at the beginning of the <?php tag which can cause issues after the edits are saved.

    Let us know if there’s anything further we can assist with! Have a great day.

    -Kath

    Thread Starter James Mfanyakitu

    (@james-mfanyakitu)

    Thanks, it has worked!
    Just curious to know what would happen in plugin update; doesn’t it mean that I will lose all the changes I’ve made to mailchimp_widget.php file?

    Hey James Mfanyakitu,

    Thanks for posting again. When the plugin is updated, then any changes to the plugin code would be undone. In the event that this happens, the changes would need to be made again to the new, updated plugin code.

    Thanks again for stopping by. Please feel free to contact us again if you have any other questions. Have a great day!
    -Gunter

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing Input Field Label’ is closed to new replies.