widget pelanggan blog |
Pada tutorial kali ini, saya mau sedikit berbagi kepada sobat blogger
yang lain, bagaimana cara membuat widget berlangganan artikel blog yang
letaknya di bawah postingan blog, dimana seluruhnya digabungkan, yaitu
via email, rss feed, facebook page, twitter dan google plus 1.
Untuk melihat live demonya b
Oke saya kira langsung saja.1. Masuk ke akun blogger > Dasbor > Template > Edit HTML
2. Jangan lupa backup dulu template sobat dan centang Expand Template Widget.
3. Cari kode berikut ini;
<data:post.body/>atau jika di template sobat ada banyak macam kode di atas, agar tidak bingung cari kode di bawah;
<div class='post-footer-line post-footer-line-1'/>
Kemudian masukkan kode berikut ini, di atas kode tadi (pilih salah satu)
<b:if cond='data:blog.pageType == "item"'>
<style>
form.feedburner{
margin:20px 0 0;
display:block;
clear:both;
}
.dcstyle{
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC7NElpYeDbOewBqZ9n4Z92WWLaG2o6OnxYkPOaQvvC6iOP0HCRzLf39yKmT5fLKAWjIcyst4EFvr6oOEFImXtCn5eaeuERQpW3uKSUUmON0rO8jC0FwYhvGrIM95_B_W8GEOVaX7P7-HO/s400/email_icon.png) no-repeat scroll 4px center transparent;
padding:7px 15px 7px 35px;
color:#666;
font-weight:bold;
text-decoration:none;
border:1px solid #D3D3D3;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
-moz-box-shadow: 1px 1px 2px #CCC inset;
-webkit-box-shadow: 1px 1px 2px #CCC inset;
box-shadow: 1px 1px 2px #CCC inset;
}
.dcsubmit{
color:#666;
font-weight:bold;
text-decoration:none;
padding:6px 15px;
border:1px solid #D3D3D3;
cursor: pointer;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-goog-ms-border-radius: 4px;
border-radius: 4px;
background: #fbfbfb;
background: -moz-linear-gradient(top, #fbfbfb 0%, #f4f4f4 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fbfbfb), color-stop(100%,#f4f4f4));
background: -webkit-linear-gradient(top, #fbfbfb 0%,#f4f4f4 100%);
background: -o-linear-gradient(top, #fbfbfb 0%,#f4f4f4 100%);
background: -ms-linear-gradient(top, #fbfbfb 0%,#f4f4f4 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FBFBFB', endColorstr='#F4F4F4',GradientType=0 );
background: linear-gradient(top, #fbfbfb 0%,#f4f4f4 100%);
}
#emailwidget-outer {
-moz-border-radius: 10px 10px 10px 10px;
-webkit-border-radius: 10px 10px 10px 10px;
-goog-ms-border-radius: 10px 10px 10px 10px;
border-radius: 10px;
background: none repeat scroll 0 0 transparent;
border: 1px solid #D3D3D3;
padding: 8px;
-moz-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
-webkit-transition: all 0.3s ease-out;
-ms-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
width:480px;
}
#emailwidget-outer:hover{
background: none repeat scroll 0 0 #FFF;
-moz-box-shadow: 1px 1px 2px #CCC inset;
-webkit-box-shadow: 1px 1px 2px #CCC inset;
box-shadow: 1px 1px 2px #CCC inset;
}
#emailwidget-outer td{
padding:3px 0;
}
</style>
<center>
<div id='emailwidget-outer'>
<div id='emailwidget'>
<table style='border:none; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;' width='100%'>
<tbody>
<tr style='border:none; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;'>
<td align='left' style='border:none; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;'> <p style='color:#666; font-weight: bold; font-size: 18px; margin:0px 0px 5px 0px; '>Berlangganan artikel via email!</p>
<form action='http://feedburner.google.com/fb/a/mailverify' class='feedburner' method='post' onsubmit='window.open('http://feedburner.google.com/fb/a/mailverify?uri=blogbelajar2', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true' style='margin: 0pt;' target='popupwindow'>
<input name='uri' type='hidden' value='blogbelajar2'/>
<input name='loc' type='hidden' value='en_US'/>
<input class='dcstyle' name='email' onblur='if (this.value == "") {this.value = "Enter your email…";}' onfocus='if (this.value == "Enter your email…") {this.value = ""}' type='text' value='Enter your email…'/>
<input alt='' class='dcsubmit' title='' type='submit' value='Submit'/>
</form>
</td>
<td style='border:none; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;'><p style='color:#666; font-weight: bold; font-size: 14px; margin:0px 0px 5px 0px; '>Follow us!</p>
<a href='http://feeds.feedburner.com/blogbelajar2' rel='nofollow' target='_blank' title='Suscribe to RSS Feed'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaCTNsaIydTEaeTmC_HFrnpnNihhEjVn1TjNf6eFhh0mqy11SWzMGeDD5vdQDjQqVvOypE2jywIP8Ex8qsrxcoBTm7LOJm_7NWzwFCwq4FYnoK_HYirGMk2soyRVyyZpKuNES_Zo3d0Rw/s1600/rss-30×43.png'/></a>
<a href='http://twitter.com/supergaptech' rel='nofollow' target='_blank' title='Follow us on Twitter'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_Z8KmrBr7a05uAqSH6n2tlEm94xd4xd0FGrbuIPhvTAsj9mHKkJTT58RlLfQaq-4fjvqcpyps-211_-JStGyPI9GnxplJCQ2EbopabRLhDpFsxKAZ_hbH_HwN3wP9lgLZ0t2Ag2BYoK0/s1600/twitter-30×43.png'/></a>
<a href='http://www.facebook.com/caramembuatblogspot' rel='nofollow' target='_blank' title='Follow us on Facebook'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTgf2DkmiFs9QSiYppS7AoqbcYRF2WMKe7hxMUspdCz6hlLtIqEYysiDB30PGLjZOV_B9jTW5dHnvHIUOK1MN19GGUZ4lyMmAsfuC7gyUykWXzPmfx8KHpA8RnlqC8aRm2FDxudL6-aqM/s1600/facebook-30×43.png'/></a>
<a href='https://plus.google.com/103723295306374803147/' rel='nofollow' target='_blank' title='Follow us on Google+'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiz0w2jLiN1ejIXV4P6FxqIysx3V9zRmA0z4ZTnpOSjzZXDEYUfCE0KKTRgjxWqsUFxem51jX93zB56Mtsejo2I0SJvl6vsrkl2t1RZ0qr6_i912V6-i7mHAC017YeD5U28ruOZ2wFZunE/s1600/googleplus-30×43.png'/></a>
</td>
</tr>
</tbody></table>
<div align='right'><span style='font-style: italic; font-size: 8px; color: solid #f3f3f3;'><a href='http://www.super-gaptek.com/' style='text-decoration: none;' target='_blank'><font color='#f4f4f4' decoration='none'>[Get this widget]</font></a></span></div>
</div></div>
</center>
</b:if>
4. Klik pratinjau, jika sudah bagus, simpan template. Jika belum jadi
tambahkan kode penutup </div> di bawah kode terakhir sehingga
menjadi ;
</center>
</b:if>
</div>
Pengaturan dan modifikasi widget;
- untuk kode berwarna biru silakan sesuaikan dengan selera sobat
- untuk kode yang berwarna merah, harus diganti dan sesuaikan dengan masing-masing akun
- Untuk mengurangi salah satu, silakan hapus saja kode antara <a href= sampai </a>
Khusus pengaturan berlangganan via email, kita harus membuat dulu akun di feedburner.com, silakan buka artikel cara mendaftar dan memasang feedburner di blog