Site logo

Archived topic

Customize Jetpack Subscription Form

20 replies · Started by Feri on September 22, 2018

Viewing posts 1–15 of 21

Hi there,

How to make Jetpack Subscription Form look like this? screenshot source: link blog

thank you

Hi there,

do you have a site set-up with the Jetpack Subscription form set up? Personally never use Jetpack but we can look and see what CSS is required.

Yes, i have. Just update the detail.

My jetpack subsc at sidebar..

Can you edit your original topic and add it to the Site URL

Done. Typo, sorry.

Try this CSS:

#subscribe-email {
    margin-bottom: 0;
} 
#subscribe-email input, #subscribe-submit input[type=submit] {
    width: 100% !important;
}

thank you, david. it works! perfect.

after that, i want to place jetpack subscription form on the front page with style like this screenshot source: http://www.theblogmarket.co

need your help

I assume that Jetpack sub form has a shortcode?
If so use a Hook Element to add the shortcode to the before_footer hook and set the Display rules to Front Page. Here's more info on that:

https://docs.generatepress.com/article/hooks-element-overview/

To make it easier to style add the Short code like so:

<div class="grid-container jetpack-footer">
    add shortcode here
</div>

Make sure to check the Execute Shortcode in the Hook.

Once there i can provide the CSS.

I assume that Jetpack sub form has a shortcode?

Yes. [jetpack_subscription_form]

<div class="grid-container jetpack-footer">
    [jetpack_subscription_form]
</div>

by the way, my front page is using static pages + section.

set the Display rules to Front Page...Make sure to check the Execute Shortcode in the Hook.

ok, done. it is correct?

Looks good, so try this CSS:

.jetpack-footer {
    padding: 40px;
    box-sizing: border-box;
}
.jetpack-footer #subscribe-email input, .jetpack-footer #subscribe-submit input[type=submit] {
    width: 50% !important;
}
.jetpack-footer #subscribe-email input {
    float: left;
}

sorry david, i remove the hook and change with Section + shortcode and adding the css but the result is not different with sidebar form

Did it work when in the Hook?

OK so for use in the Section, add this:


#sub-section #subscribe-email input, #sub-section #subscribe-submit input[type=submit] {
    width: 50% !important;
}
#sub-section #subscribe-email input {
    float: left;
}

And in that Sections Settings add sub-section to the Section ID field

This archived topic is closed to new replies.