Pure CSS Pop Up Email Subscription Box For Blogger
I got a request from Anmoldeep Singh, he wanted my previous post - Fresh Flat Email Subscription Box to be in pop up form similar to what I implemented on my previous theme.
For this widget to work you need to add a link that will serve as the button or handler for the popup.
Add the following code anywhere you want it to be displayed.
e.g. inside your nav menu
Save your Template
Do some adjustments to fit your need.
And voila! I hope you guys like it! Until next time. Happy Blogging! :)
Introduction
Yes, as the title suggests it is a PURELY CSSed Pop up email subscription box not only for Blogger but for almost all types of platform as long as you have access to feedburner. This widget is a combination of my previous post email subscription box and a simple and cool pop up widget built with CSS. Make sure to follow the steps to get it working!External Scripts
FontAwesome (?)Live Demo
DemoHTML
Go to Blogger » Template » Backup your Template » and Edit HTML Add the following code before </body><div class='modalDialog' id='signup'>
<div><a class='close' href='#close' title='Close'><i class='fa fa-times'/></a>
<div class='signup-container'>
<div class='newsletter-sm'>
<i class='fa fa-envelope-o enve'/>
<h3>Subscribe to Newsletter</h3>
<p style='text-align:center'>Sign up with your email address to receive news and updates straight in your inbox.</p>
<form action='https://feedburner.google.com/fb/a/mailverify' method='post' onsubmit='window.open('https://feedburner.google.com/fb/a/mailverify?uri=MyBloggerAide', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true' target='popupwindow'>
<div class='newsletter-sm-bot'>
<input class='newsletter-input-sm' name='email' placeholder='Enter Your Email' type='text'/>
<button class='newsletter-button-sm' type='submit'>Subscribe</button></div>
<input name='uri' type='hidden' value='MyBloggerAide'/>
</form></div></div></div></div>
Add the following code anywhere you want it to be displayed.
e.g. inside your nav menu
<a href='#signup'>Signup</a>
CSS
Copy and paste the code before ]]></b:skin>.enve{background:#00aa9f;color:#fff;width:50px;height:50px;display:block!important;line-height:50px!important;text-align:center;font-size:24px!important;-webkit-border-radius:50px;-moz-border-radius:50px;border-radius:50px;margin:0 auto}.newsletter-sm{background:#fff;width:100%;margin:0;padding:20px;box-sizing: border-box;}.newsletter-sm h3,.newsletter-sm p{color:#555;font-family:"Maven Pro",sans-serif}.newsletter-sm h3{font-weight:400;text-align:center;margin-bottom:10px;font-size:24px}.newsletter-sm p{font-size:14px;line-height:20px}.newsletter-sm .newsletter-input-sm{border:0;box-sizing: border-box;padding:5px 10px;width:360px;float:left;height:40px;color:#555;border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px}.newsletter-sm .newsletter-sm-bot{background:#00aa9f url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt9o7GrhYOgjxQr_dYRCfCwOLqMUVhJirr7o6iOdWyhXfzMGgwr4Z1XIj1sBfImjlTZk-kO3JWCwtSP_EnLZSYdUZ_6vlC4MpyTxs0NiV-AWKwHXIbsS7A493pi2N61OnR-wT0ZvKfdKU/s1600/bg.png) no-repeat;box-sizing: border-box;padding:20px;margin:0 -20px -20px;height:80px}.newsletter-sm .newsletter-button-sm{float:right;height:40px;display:inline-block;font-size:14px;box-sizing: border-box;padding:5px 10px;position:relative;color:#fff;text-align:center;background:#00aa9f;border:1px solid #fff;cursor:pointer;border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px}.modalDialog{position:fixed;font-family:Arial,Helvetica,sans-serif;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.6);z-index:99999;opacity:0;-webkit-transition:opacity 200ms ease-in;-moz-transition:opacity 200ms ease-in;transition:opacity 200ms ease-in;pointer-events:none}.modalDialog:target{opacity:1;pointer-events:auto}.modalDialog:target>div{margin:8% auto}.modalDialog>div{-webkit-transition:all 100ms ease-in;-moz-transition:all 100ms ease-in;transition:all 100ms ease-in;width:500px;position:relative;margin:5% auto;background:#fff;min-height:200px}h2.signup{background:#00aa9f;border-bottom:1px solid #008d84;font-weight:400;text-align:center;box-sizing: border-box;padding:10px;color:#fff;font-size:18px}.close{color:#888;position:absolute;top:1px;right:1px;width:30px;height:30px;line-height:30px;text-align:center;font-size:16px}.close:hover{text-decoration:none;color:#555}
Final Words
Replace MyBloggerAide with your feedburner url.Do some adjustments to fit your need.
And voila! I hope you guys like it! Until next time. Happy Blogging! :)
- Comments
- 33 Blogger
- Disqus
Nice work. Thanks for posting such a nice widget.
ReplyDeleteI'm glad that there are bloggers appreciating my work, Thank you! :)
DeleteI am just loving it greta job dude :)
ReplyDeletethank you :)
Hi! Thank you buddy! :)
DeleteCan we change the white background with image background and how? thanks
ReplyDeleteHi friend! Yes of course! Change
Delete.newsletter-sm {background:#fff; width: 100%; margin: 0; padding: 20px;}
to
.newsletter-sm {background:url(URL-OF-THE-IMAGE); width: 100%; margin: 0; padding: 20px;}
Hey! Awesome! But without the use of buttons how do i make it automatically popped up after 15s on my webite. Please help me on that.
ReplyDeleteWell I can add some jquery or even javascript for it to work the way you want, I'm gonna contact you once its done. Thank you for commenting :D
DeleteOh! Thank you so much. My pleasure. And please do keep in mind would be disturbing you for a while from now. I have been looking for someone too awesome in this thing.!! :D And you are damn passionated!.
DeleteOh! Thank you so much. My pleasure. And please do keep in mind would be disturbing you for a while from now. I have been looking for someone too awesome in this thing.!! :D And you are damn passionated!.
DeleteI'm the one who should be thanking you, it's been a while since I did something related to blogger and I haven't received any requests for awhile, so thank you! I will post the tutorial tomorrow since it's already late at night.. hehe sorry for late reply xD
Deleteas promised, here's the link of the tutorial :
Deletehttp://mybloggeraide.blogspot.com/p/forum.html?place=msg%2Fmybloggeraide%2FBzNKE5AZn5U%2FT9kabwCW9W4J
let me know if there's any problem, thanks! :)
Bro, Code works. But :/ ! I cant edit them. In the sense, I tried changing that "Subscribe to Newsletter" to "Subscribe to JP's Newsletter" and did some edits for the texts below too. BUT AS A MATTER OF FACT, NOTHING CHANGED! :(
ReplyDeleteI think you have copied the code twice? If not, kindly provide me a link to your website so I can help you further. :)
DeleteHey bro! I have left you a message on google hangouts. The website shares some confidential stuffs. So can we get in touch personally?
DeleteHey ! Please , How Can I Rotate the background img ?! I couldn't find a Code .
ReplyDeleteNeed Help Please !
Hey ! Please , How Can I Rotate the background img ?! I couldn't find a Code .
ReplyDeleteNeed Help Please !
I am Using the Arabic language in my blog so I must change everything from left to right !
ReplyDeleteHi! The simplest way to fix your problem is to SAVE the background image (bg.png) then open it using Paint, then look for the ROTATE menu then select FLIP HORIZONTAL. then change the url of the background with the new one, that's it!
DeleteUsing CSS, first, remove the following line :
Deleteurl(http://4.bp.blogspot.com/-0mBblowuHEI/VKnxGxyRmUI/AAAAAAAAHiU/ewwqQBE8VE0/s1600/bg.png) no-repeat
then add this code :
.newsletter-sm .newsletter-sm-bot:before{-webkit-transform: rotateY(180deg);
-moz-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
transform: rotateY(180deg);
background:url(http://4.bp.blogspot.com/-0mBblowuHEI/VKnxGxyRmUI/AAAAAAAAHiU/ewwqQBE8VE0/s1600/bg.png) no-repeat;
position: absolute;
top: 0;
left: 0;
display: block;
height: 100%;
width: 100%;
content: "";
}
save it and you're done! :)
wow....these widgets are like 10x the popular ones on google....m installing em!!! i wish you can share that step-1-2-3 widget that is too pretty! Thanks again.
ReplyDeleteI'm glad u like it, but sad to say that the step-1-2-3 widget is a bit complicated and needs modification when it comes on mobile. But I'll do my best to make that possible in the coming days.. keep visiting ! :)
DeleteNenhuma Demo funciona ¬¬
ReplyDeletesim, a demo não está funcionando no entanto esta ferramenta funciona perfeitamente. -google translate
DeleteThanks for this wonderful post Lloyd Alemania you are my web hero i like your coding and i also like the fact that you love and respect all your visitors keep up the good works try add a donate button to your site so we can donate for your works besides please irrespective of this post i want to ask is there any way you can help design the pop up button { Signup } so the user can easily see it like adding some css style to it to beautify the view please if there is any way i will be glad you share it with me God bless you i will always check back on there post to see your comment
ReplyDeletehi there bud, the button will greatly depend on where you'll place it, in my case, i placed it on my nav menu. i can lend you a hand, send me a link of your site and tell me where you'd want it to be placed :)
DeleteIs this possible to make it appear of it's own to every visitor, but not on every page load ?
ReplyDeleteYes it is possible through the use of jquery.. If you'd like to I will post it this evening. GMT +8. Keep in touch. Thanks
DeleteThanks to google for making me reconnect to you once again. xP
ReplyDeletewow this was amazing widget
ReplyDeletebut unfortunately this is not working on my blog
http://www.tips4tricx.blogspot.com
follow the steps properly, it is Pure CSS so it should be working for you. if it still doesn't work then contact us or reply on this thread.
Deletenice widget.applied this at my blog | USBlogZone
ReplyDeletethanks dude
Thanks,
ReplyDeleteHave A Nice Widget,I used my Blog.
Lets Checked - https://mytrickstips12.blogspot.in