WordPress.org

Support

Support » Plugins and Hacks » [Plugin: MailChimp List Subscribe Form] Decrease spacing between Title and Email?

[Plugin: MailChimp List Subscribe Form] Decrease spacing between Title and Email?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author mc_nate

    @mc_nate

    Hey there!

    Both of those things should be possible through your site’s CSS. Generally, to move up the email label and input area, you’d want to target the entire merge area and set some specific margins for it. Something like this should do the trick nicely:

    .mc_merge_var {
    margin-top: -10px;}

    I just pulled -10px out of thin air, so you’ll definitely want to play with things a bit. As far as adjusting the subscribe button, the same idea, applies. You’ll want to target that specific class in your CSS and add it to your site’s Style.css file. You could set the constraints through “width” and “height” styling, like this:

    #mc_signup_submit.button {
    width: 50%;
    height:100px;}

    Again, those values are completely made up, so a little trial and error will be in order!

    Let us know if we can assist in any other way.

    Cheers

    Thank you Nate! That CSS worked for me.

    Now I am having the issue where the “Subscribe” text is not centering within the re-sized button. Any help with that.

    Please excuse the newb css questions. Still learning.

    planetkratom.com

    Plugin Author mc_nate

    @mc_nate

    No worries!

    Although this isn’t specific to MailChimp’s form, you should be able to adjust the padding for that button in the same way that you adjusted the width/height. Something like this should do the trick:

    #mc_signup_submit.button {
    width: 60%;
    height:30px;
    padding:5px;}

    http://cl.ly/image/0T1a1M0f1o0S

    Although, feel free to adjust the padding to your heart’s content to give you that proper look/feel. 🙂

    Cheers

    kenzoishi

    @kenzoishi

    i’ve resized the subscribe button but how do i now resize the text box where people can input their email.

    and inside that text box, how can i have it say “email address” instead of having it outside the text box?

    thanks

    Hey Kenzoishi,

    It looks like there’s two questions here. For the first, it sounds like you’re looking to change the size of your form’s input fields. To do this, you’ll need to make some additional adjustments to your CSS code. This should do just that:

    .mc_merge_var input {
    width: 50px;
    }

    To have ’email address’ display inside of the box and remove it from the outside, you’ll need to do two things: #1 hide it from the outside, and #2 add it as a placeholder element so it shows in side the input field.

    For #1, this bit of code targets and hides the label elements to do that:

    .mc_merge_var label {
    display: none;
    }

    For #2, you can reference the discussion here, which will talk about how to implement that:
    http://wordpress.org/support/topic/plugin-mailchimp-list-subscribe-form-request-add-placeholder-text-for-mailchimp-widget?replies=21

    If you have any questions, let us know!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: MailChimp List Subscribe Form] Decrease spacing between Title and Email?’ is closed to new replies.