• Resolved Sagara

    (@sagara)


    Hello there.

    I am using this shortcode to place the subscription box on my site. I have seen some modifiers for the box at http://jetpack.me/support/subscriptions/#customize-content , however I am wondering if I can modify further, as it just seems to add the text without any box around it.

    I am interested in:
    1. placing a box around it
    2. possibly changing the background colour
    3. reducing the size of the text which currently spans whole page
    4 centering the box

    I should add, I’m not that good at coding!

    Many thanks for any help,

    Sagara

    https://ww.wp.xz.cn/plugins/jetpack/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi Sagara! You can modify the appearance of Jetpack’s subscription form by using some CSS. Could you share a link to your site? Then I’d be happy to take a look and get you started.

    Thread Starter Sagara

    (@sagara)

    Hi Ryan,

    Thanks, that’d be great. I’m still working on the site to be honest, but I’ve added one on the bottom of this page:

    http://mindfulrecovery.info/mindful-recovery/

    Just want it to look nice!

    Probably won’t be around tonight, but will check back tomorrow. Thanks for your help, I appreciate it…

    Sagara

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    As my colleague Ryan mentioned, you can use CSS to customize the look of just about any element on your site. You can add that CSS code to the bottom of your theme stylesheet, or to the custom CSS editor available under Appearance > Edit CSS in your dashboard.

    Here is an example of a few things I changed on your site. Here is the end result:
    http://i.wpne.ws/eDKF

    And here is the CSS:

    .jetpack_subscription_widget {
    	text-align: center;
    	border-color: #7c7c82;
            border-top-left-radius: 4px;
            border-top-right-radius: 4px;
            border-bottom-left-radius: 4px;
            border-bottom-right-radius: 4px;
            border-style: solid;
            border-width: 2px;
            background: rgba(84, 91, 143, 1);
            -pie-background: linear-gradient(rgba(84, 91, 143, 1) 45%, rgba(8, 16, 53, 1));
            background: -webkit-gradient(linear, left top, left bottom, color-stop(45%, rgba(84, 91, 143, 1)), color-stop(1, rgba(8, 16, 53, 1)));
            background: -moz-linear-gradient(rgba(84, 91, 143, 1) 45%, rgba(8, 16, 53, 1));
            background: -o-linear-gradient(rgba(84, 91, 143, 1) 45%, rgba(8, 16, 53, 1));
            background: linear-gradient(rgba(84, 91, 143, 1) 45%, rgba(8, 16, 53, 1));
            -webkit-box-shadow: 0px 0px 2px #807c80;
            -moz-box-shadow: 0px 0px 2px #807c80;
            box-shadow: 0px 0px 2px #807c80;
            padding-top: 20px;
    }
    .jetpack_subscription_widget #subscribe-email {
    	padding-left: 50px;
    	width: 60%;
    	display: inline-block;
    }
    .jetpack_subscription_widget #subscribe-submit {
    	padding-right: 50px;
    	width: 20%;
    	display: inline-block;
    }
    .jetpack_subscription_widget #subscribe-email input[type="email"] {
    	height: 25px;
    	float: left;
    	padding-left: 5px;
    }
    .jetpack_subscription_widget #subscribe-submit input[type="submit"] {
    	float: left;
            border-top-left-radius: 4px;
            border-top-right-radius: 4px;
            border-bottom-left-radius: 4px;
            border-bottom-right-radius: 4px;
    }

    I followed the style of the button appearing under the form, and added some extra styling to it. Feel free to play with the different values to tweak the form even more!

    Thread Starter Sagara

    (@sagara)

    Hi Jeremy,

    That is unbelievably cool. Thanks so much. I can kind of figure most of it out and with a bit of help from google will get the rest, but could never have done that on my own – I really appreciate it… amazing!!!

    Can I ask one thing…. the text “enter your email address to get email updates..” where would the font color css go, or is it there already?

    Once again, thanks so much!

    Sagara

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    the text “enter your email address to get email updates..” where would the font color css go, or is it there already?

    Something like should do the trick:

    .jetpack_subscription_widget #subscribe-text {
    	font-size: 22px;
    }
    Thread Starter Sagara

    (@sagara)

    Thanks again Jeremy, I will try that. I appreciate your time and effort, Sagara

    Thread Starter Sagara

    (@sagara)

    Hello! You kindly helped me with a subscription box, but I have a problem with the lower one here: http://mindfulrecovery.info/2016/01/03/how-to-do-loving-kindness-meditation/

    (bottom of page) even though it uses the same code. Can you tell me why please?

    Many thanks!

    Thread Starter Sagara

    (@sagara)

    I’ve removed it, it’s okay, thanks

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    I just checked, and the form is still there and appears to be working properly. Do you still experience issues on your end?

    Thread Starter Sagara

    (@sagara)

    Hi Jeremy,

    Sorry for the late reply. When I added two boxes in the same post, it went out of alignment, but I am not doing that now so it is not an issue. Appreciate your help though.

    Sagara

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘[jetpack_subscription_form]’ is closed to new replies.