- Back to Home »
- Blogger , Tips And Trick »
- Cara Membuat Related Post Thumbnail dan Kotak Feedburner
Posted by : fakhri
Jumat, Juli 19, 2013
Kali ini Admin akan membahas Cara Membuat Related Post Thumbnail dan Feedburner, script kali ini saya dapatkan dari blog Hack4rt. Widget ini terletak di bawah postingan, sebenernya saya masih ingin berbincang-bincang dengan kalian, tapi karena waktu yg terbatas, jadi tidak bisa karena kompi sdg rusak :v , untuk demonya silahkan lihat dibawah postingan ini.
Berikut tutorialnya :
Berikut tutorialnya :
1. Buka blogger
2. Pada Dashboard klik Template -> lalu klik Template HTML
3. Copy kode dibawah ini dan taruh tepat di atas kode ]]</b:skin>
2. Pada Dashboard klik Template -> lalu klik Template HTML
3. Copy kode dibawah ini dan taruh tepat di atas kode ]]</b:skin>
.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}.clearfix{display:inline-block}#related{background:#F0F2F5; border:1px solid #aaa;margin:0 0 5px;padding:10px}ul#related-posts{font:bold 11px Arial;list-style:none;text-transform:none;margin:10px 0;padding:0}#related .related-posts{font-weight:400;width:50%;float:right}#related .related-posts p{font:bold 14px Arial;margin:0}ul#related-posts li{float:left;height:auto;list-style-type:none;margin:0 5px;padding:2px 1px}*html ul.rp#related-posts li{margin:0 13px}ul#related-posts li a{-moz-box-shadow:0 1px 2px rgba(0,0,0,0.15);overflow:hidden;border:2px solid #aaa;display:block;height:72px;position:relative;width:72px;color:#fff;text-decoration:none;text-shadow:0 1px 0 #000;font:11px Arial}ul#related-posts li .overlay{height:66px;line-height:16px;position:absolute;width:66px;z-index:10;padding:6px 0 0 6px}ul#related-posts li a:hover .overlay{background:#000;display:block!important;opacity:0.7}ul#related-posts li img{bottom:0;padding:0!important;max-width:100%;}ul#related-posts li a:hover{-moz-box-shadow:0 1px 3px rgba(0,0,0,0.25)}#related .subscribe{width:43%;float:left;color:#333;}#related .subscribe p.intro{font-weight:400}#related .subscribe p.feed{margin-bottom:10px;font-weight:700;padding-left:21px;background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8fPS0NSN8oFT0JT3QDgAMWNF8JP0dDGRM6Sohiugj_Dm9DOnI3vWEoIXFKYI8UkadkTfj7vs61RQXWWyDnrOOnJT_7a9MDgef-BGcPid_c0Tlz8KaCbyipE-lU6wC1YU7qpu5emo47HY/s1600/feed+icon.gif) 0 50% no-repeat;vertical-align:middle}
4. Copy kode dibawah ini dan letakan tepat dibawah kode ]]</b:skin>
<style> @media screen and (max-width:480px){#related .subscribe{display:none;}#related .related-posts{width:100%}</style>5. Copy kode dibawah ini dan letakan tepas dibawah kode <data:post.body/> (jika ada 2/3, cobalah satu satu)
<b:if cond='data:blog.pageType == "item"'><div class='clearfix' id='related'><div class='related-posts'><p>Related Articles</p><script type='text/javascript'>var defaultnoimage="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7L2zdEfLEJcpn9LZXaNtA2CpKelvN9nlKKSCNf4RcPoLZPch07vDNBt6jBTEtg_QdmmjLNZG6Naq53xKEjMALo4RFChwRwErV9CHeOzxSTfK2Z9Nm5wNKAl7QBNjafDyrbp2HFpPLLLg/s1600/no+image.jpg";var maxresults=6;</script><script src='http://js.hack4rt.us/relatedimg.js' type='text/javascript'/><b:loop values='data:post.labels' var='label'><b:if cond='data:label.isLast != "true"'></b:if><script expr:src='"/feeds/posts/default/-/" + data:label.name + "?alt=json-in-script&callback=related_results_labels_thumbs&max-results=6"' type='text/javascript'/></b:loop><script type='text/javascript'>removeRelatedDuplicates_thumbs();printRelatedLabels_thumbs("<data:post.url/>");</script> </div><div class='subscribe'><p class='intro'>If you enjoyed this article just <a href='http://feeds.feedburner.com/sch-xp_blank' title='feedburner'><b>click here</b></a>, or subscribe to receive more great content just like it.</p><p class='feed'><a href='http://http://chakimomis.blogspot.com/feeds/posts/default' title='Subscribe'>Subscribe via RSS Feed</a></p><form action='http://feedburner.google.com/fb/a/mailverify' method='post' onsubmit='window.open('http://feedburner.google.com/fb/a/mailverify?uri=sch-xp;, 'popupwindow', 'scrollbars=yes,width=550,height=520');return true' target='popupwindow'><input name='uri' type='hidden' value='JohnyTemplate'/><input name='loc' type='hidden' value='en_US'/><input id='botsub' 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 id='botsubbutton' type='submit' value='Submit'/><br/><small>Your information will not be shared. Ever.</small><br/></form></div></div> </b:if>
6. Klik simpan template
Pengaturan :Ganti kode yg berwarna Hijau dgn nama feedburner blog anda
Ganti kode yg berwarna Merah dgn nama blog anda
Ganti kode yg berwarna Oren dgn nama feedburner blog anda juga
Semoga bermanfaat, jgn lupa komentar + follownya :)
Sumber