So I learned how to remove the form labels and include placeholder text within the form fields to consolidate the MailChimp signup widget.
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!
- The topic ‘WordPress Plugin – Placeholder Text hack’ is closed to new replies.