Home » » Pop Up Email Subscription Form With jQuery For Blogger

Pop Up Email Subscription Form With jQuery For Blogger

Written By Unknown on Sunday, May 19, 2013 | 11:18 AM



How To Add Pop Up Email Subscription Form To Blogger?


First you have to add jQuery library to your blog.(Ignore this step is you have already added jQuery library to your blog.)

  1. Go to Blogger Dashboard > Template
  2. As always take a backup of your template first
  3. Now find for </head> tag in your template
  4. Add below code just before </head> tag.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>


Widget Generator

  1. Enter only your feedburner username in text box below.
  2. Hit the Generate Icon and then hit the Add to Blogger
  3. Now you will redirect to Blogger Add Gadget page,finally hit the Add Widget Button and drag your widget to the bottom of page.

Important - If you want to customize this gadget then only use below code.

<style type="text/css">
    #subscribe-button {
    float: left;
    position: fixed;
    bottom: 5%;
    left: 0;
    z-index: 999;
}

#subscribe-widget {
    display: none;
}
    /* Overlay */
#hb-overlay {
    background-color: #000;
}
    /* Container */
#hb-container {
    min-height: 350px;
    min-width: 500px;
    color: #222;
    background-color: #fff;
    border: 4px solid #ddd;
}

#hb-container .hb-data {
    padding: 8px;
}

#hb-container a.hbCloseImg {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh81OtF5Ah-QBE2q-MOwxoBtQTuTuIM8hXubJJdGfNkP5cmoxImEE0RCbnn3F9l_xttNfNnr4AjTxjToHk9PfrZa26MaUkImIBR_aIFXb_OnX6DGLloKqrf4Cy36IokRVeIs-5489bVP445/s1600/hb-close-button.png) no-repeat;
    width: 25px;
    height: 29px;
    display: inline;
    z-index: 3200;
    position: absolute;
    top: -15px;
    right: -16px;
    cursor: pointer;
}

#description {
    color: #AAAAAA;
    font-family: times New Roman;
    font-size: 25px;
    font-style: italic;
}

#description img {
    float: left;
    height: 80px;
    padding: 0 25px 0 10px;
    width: 80px;
}

#hbfollowForm {
    padding: 15px;
}

#hbfollowForm p {
    margin: 0 0 10px;
}

#hbfollowForm input:not([type="checkbox"]) {
    width: 93%;
    margin-top: 4px;
    margin-bottom: 20px;
    padding: 10px 5px 10px 25px;
    border: 1px solid rgb(178, 178, 178);
    -webkit-appearance: textfield;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: 0px 1px 4px 0px rgba(168, 168, 168, 0.6) inset;
    -moz-box-shadow: 0px 1px 4px 0px rgba(168, 168, 168, 0.6) inset;
    box-shadow: 0px 1px 4px 0px rgba(168, 168, 168, 0.6) inset;
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}

#hbfollowForm input:not([type="checkbox"]):active, #hbfollowForm input:not([type="checkbox"]):focus {
    border: 1px solid rgba(91, 90, 90, 0.7);
    background: rgba(238, 236, 240, 0.2);
    -webkit-box-shadow: 0px 1px 4px 0px rgba(168, 168, 168, 0.9) inset;
    -moz-box-shadow: 0px 1px 4px 0px rgba(168, 168, 168, 0.9) inset;
    box-shadow: 0px 1px 4px 0px rgba(168, 168, 168, 0.9) inset;
}

#hbfollowForm .button input {
    background: none repeat scroll 0 0 #3D9DB3;
    border: 1px solid #1C6C7A;
    border-radius: 3px 3px 3px 3px;
    box-shadow: 0 1px 6px 4px rgba(0, 0, 0, 0.07) inset, 0 0 0 3px #FEFEFE, 0 5px 3px 3px #D2D2D2;
    color: #FFFFFF;
    cursor: pointer;
    font-family: 'Arial Narrow', Arial, sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
    padding: 8px 5px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    width: 30%;
    float: right;
}

#hbfollowForm .button input:hover {
    background: #4ab3c6;
    text-decoration: none;
}

#hbfollowForm .button input:active, #hbfollowForm .button input:focus {
    background: rgb(40, 137, 154);
    position: relative;
    top: 1px;
    border: 1px solid rgb(12, 76, 87);
    -webkit-box-shadow: 0px 1px 6px 4px rgba(0, 0, 0, 0.2) inset;
    -moz-box-shadow: 0px 1px 6px 4px rgba(0, 0, 0, 0.2) inset;
    box-shadow: 0px 1px 6px 4px rgba(0, 0, 0, 0.2) inset;
}

.hbFollowFooter {
    text-align: center;
    font: 10px Tahoma, Helvetica, Arial, Sans-Serif;
    padding: 7px 0;
    margin-top: 80px;
    text-shadow: 0px 2px 3px #555;
    position: absolute;
    width: 500px;
}

.hbFollowFooter a {
    color: #222;
    text-decoration: none;
}

.hbFollowFooter a:hover {
    color: #fff;
}
    <!--[if lt IE 7]> #hb-container a.hbCloseImg {
    background: none;
    right: -14px;
    width: 22px;
    height: 26px;
    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh81OtF5Ah-QBE2q-MOwxoBtQTuTuIM8hXubJJdGfNkP5cmoxImEE0RCbnn3F9l_xttNfNnr4AjTxjToHk9PfrZa26MaUkImIBR_aIFXb_OnX6DGLloKqrf4Cy36IokRVeIs-5489bVP445/s1600/hb-close-button.png', sizingMethod='scale');
}

#hbfollowForm input {
    padding: 10px 5px 10px 32px;
    width: 93%;
}

#hbfollowForm input[type=checkbox] {
    width: 10px;
    padding: 0;
}
    <![endif]-->
</style>
<div id="subscribe-button">
    <a class="subscribe" href="#"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxEg19d3tBpcDzLGApW_hWpfsL_ncKQVo3E0pof5iMvUJG2DERyJT7HSVRascPs0CGBdZaOL9AauRVMTrWkbJ0S5laBSx0c2vLIEmQTx5pPTmEPnuOLMQTiotzmweBG7Hwb5wQlz1PtGiq/s1600/hb-email-icon.png" alt="subscribe" /></a>
</div>
<div id="subscribe-widget">
    <div id="hbfollowForm">
        <img alt="Subscribe" border="0" float="center" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIXKyph4OZq0OJMfiWFCS1QWf24xAw8eUFYvCUelr-IFisPvhSt0SvOeeJkVcTcBbTHZLH82mfSCsGp6hjGnwfgnopH39H5mNcetO8xQMQFjFsLUgCAGv48mSWB4Gj0Xv4fDZd3A9K4lsw/s1600/hb-subscribe-via-email.PNG"
        />
        <div id='description'>
            <img alt="email" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXjUxY494p2qBZ_-Z0yCdkOxI7sql-6DvtZDmy_dm2frjgoh-F7YP10hmkid8tLUuKBpjehhX6L-GH7-K60fqIJ4Fxw9-JgryfuCDeC_CoA87HrEsR8X3znhIW2cRSc1blahHDeh9jI2Wi/s1600/hb-email-icon1.PNG"
            />Subscribe to our mailing list to get the updates to your email inbox...</div>
        <form
        action="http://feedburner.google.com/fb/a/mailverify" method="post" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=readyblogger', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"
        target="popupwindow">
            <input name="email" placeholder="Enter Your Email..." required="required"
            type="text" />
            <input name="uri" type="hidden" value="readyblogger" />
            <input name="loc" type="hidden" value="en_US" />
            <div class="button">
                <input type="submit" value="Subscribe" />
            </div>
            </form>
    </div>
    <div class="hbFollowFooter">Delivered by
        <a href="http://feedburner.google.com/" target="_blank">FeedBurner</a>| Powered by
        <a href="http://www.helperblogger.com/" rel="dofollow" target="_blank">Blogger Widgets</a>
    </div>
</div>
<script src="http://helperblogger.x10.mx/scripts/jquery-popup.js" type="text/javascript"></script>
<script type="text/javascript">
    jQuery(function (a) {
        a("#subscribe-button .subscribe").click(function (b) {
            a("#subscribe-widget").modal();
            return false
        })
    })
</script>


  • Now replace readyblogger with your feedburner username.
  • If you want to use your own icon then replace the code highlighted in yellow color with your own image URL.
Now save your all changes and visit your blog to see this amazing gadget.

0 comments:

Post a Comment