WordPress Plugin - Placeholder Text hack (1 post)

  1. bbrowne
    Posted 3 years ago #

    So I learned how to remove the form labels and include placeholder text within the form fields to consolidate the MailChimp signup widget.

    This was a great resource - http://wordpress.org/support/topic/plugin-mailchimp-list-subscribe-form-request-add-placeholder-text-for-mailchimp-widget?replies=8

    It has since been closed for comments, and I'm using the direction on the very last post because I have multiple fields.

    Chris Barrett posted:

    I know this is an older thread, but there is a better way of adding the placeholder. If you have multiple fields you want on your form, the placeholder="Your best email..." adds that text inside all boxes.

    Instead, use placeholder="'.esc_html($var['name']).'" and your MailChimp Field Label will be displayed.

    The problem is, this isn't pulling the field label. It's pulling the default field value, which I use as merge fields for emails. These are two very different things, so right now my placeholder text says 'Good Day!' instead of 'First Name'.

    Anyone have a fix? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic