Support » Plugin: MailChimp List Subscribe Form » Placeholder text same in each box/spacing is all off

  • Hi there,

    I have a number of probs with the widget. Please see the development site I’ve placed the subscription form at the right of the footer.

    1) I’ve added placeholder information as advised in another thread in this forum, but I cannot work out how to add placeholder info for the Firstname and Lastname boxes – in fact I can’t find any code in the widget php file that relates to these two boxes – I can find code for address, phone number, birthdays etc, but not names. Please can you tell me the code I need and where to add it?

    At the moment the text “email address” appears in all three boxes

    This is what I added per the instructions in a different thread:

    <input type=”text” size=”4″ maxlength=”4″ value=”” name=”‘.esc_attr($opt.'[detail2]’).'” id=”‘.esc_attr($opt.’-detail2′).'” class=”mc_input mc_phone” />
    case ’email’:
    case ‘url’:
    case ‘imageurl’:
    case ‘text’:
    case ‘number’:
    $html .= ‘
    <input type=”text” size=”18″ value=”‘.esc_html($var[‘default’]).'” name=”‘.esc_attr($opt).'” id=”‘.esc_attr($opt).'” class=”mc_input” placeholder=”Email address”/>’;

    2) The spacing is all off. All the three boxes are bunched up together but the submit button is floating off down below somewhere. Also, the boxes start way below the line of text I’ve added asking people to sign up.

    Thanks for your help

Viewing 1 replies (of 1 total)
  • Plugin Author mc_nate


    Hey there!

    While I can’t really add much guidance on the placeholder text hack-around that you mention, there is another option that is supported by the MailChimp plugin. Essentially, you’d need to add a “Default Merge Value” to the fields in your MailChimp list. That would then be populated, automatically, in the fields for your plugin. This Knowledge Base article should help a bit with that:

    How do I set default merge values (like Dear Customer)?:

    As far as the CSS for the page goes, would you mind sending me a link to have a peek at things? There might be some general suggestions I can provide with regard to getting the form to look a certain way!


Viewing 1 replies (of 1 total)
  • The topic ‘Placeholder text same in each box/spacing is all off’ is closed to new replies.