Site logo

[Resolved] Customize Jetpack Subscription Form

Home Forums Support [Resolved] Customize Jetpack Subscription Form

Home Forums Support Customize Jetpack Subscription Form

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #683642
    Feri

    Hi there,

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

    thank you

    #683663
    David
    Staff
    Customer Support

    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.

    #683676
    Feri

    Yes, i have. Just update the detail.

    My jetpack subsc at sidebar..

    #683690
    David
    Staff
    Customer Support

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

    #683694
    Feri

    Done. Typo, sorry.

    #683705
    David
    Staff
    Customer Support

    Try this CSS:

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

    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

    #683734
    David
    Staff
    Customer Support

    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.

    #683743
    Feri

    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?

    #683827
    David
    Staff
    Customer Support

    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;
    }
    #683839
    Feri

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

    #683845
    David
    Staff
    Customer Support

    Did it work when in the Hook?

    #683854
    Feri
    #683863
    David
    Staff
    Customer Support

    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

    #683892
    Feri

    result https://prnt.sc/kxg238 the button is in the wrong position

Viewing 15 posts - 1 through 15 (of 21 total)
  • You must be logged in to reply to this topic.