Monday, 31 October 2016

Cara Menambahkan Judul Posting di Belakang Komentar

Menambahkan Judul Posting di Belakang Komentar
Cara Menambahkan Judul Posting di Belakang Teks Jumlah Komentar Blog.

YANG dimakdud Menambahkan Judul Posting di Belakang Komentar adalah menambahkan judul tulisan di belakang teks "0 Comments" atau "51 Komentar".

Misalnya, 61 comments saja menjadi 61 comments on Desain Widget Featured Post Bawaan Blogger Hasil Modifikasi

Judul posting di belakang teks jumlah komentar biasanya dipasang di template blog seo friendly untuk kepentingan kepadatan kata kunci (keywords density).

Menambahkan Judul Posting di Belakang Komentar

1. Template > Edit HTML
2. Cari kode berikut ini. Jika menemukan lebih dari satu kode seperti ini, ganti semuanya.

<h4>
        <b:if cond='data:post.numComments == 1'>
          1 <data:commentLabel/>:
        <b:else/>
          <data:post.numComments/> <data:commentLabelPlural/>:
        </b:if>
      </h4>


3. Hapus dan Ganti dengan kode ini:

<h4>
        <b:if cond='data:post.numComments == 1'>
          1 <data:commentLabel/> on <data:post.title/>
        <b:else/>
          <data:post.numComments/> <data:commentLabelPlural/> on <data:post.title/>
        </b:if>
      </h4>

4. Save!

Keterangan: 
Kode warna merah adalah kode yang ditambahkan agar menjadi judul postingan yang sedang dibuka.

Demikian Cara Menambahkan Judul Posting di Belakang Komentar.  Permasalahan dan solusi seputar kolom atau komentar blogger lainnya bisa dilihat di laman Komentar Blog.

Good Luck & Happy Blogging! (http://www.contohblog.com).*

Labels:

5 Style Widget Recent Posts dengan Gambar Thumbnail & Judul Saja

5 Style Widget Recent Posts dengan Gambar Thumbnail & Judul Saja

BERIKUT ini CB share kode dan cara pasang 5 jenis Widget Recent Posts (Latest Post, Posting Terbaru, Recent Posts, Tulisan Terbaru) dengan Gambar Thumbnail & Judul Saja.

Cara memasangnya sangat mudah:
1. Layout > Add a Gadget > Pilih HTML/Javascript
2. Isi judul widget dengan Recent Posts atau Posting Tarbaru
3. Copas atau masukkan salah satu jenis Latest Posts yang Anda sukai di bawah ini.
4. Save!

KODE #1
Recent Post dengan Satu Gambar Besar, Lainnya Judul Saja

Recent Post dengan Satu Gambar Besar, Lainnya Judul Saja

<style>
.clear { clear:both; } .recent-post-title { background:#fff; margin:0 0 5px; padding:0; position:relative; } .recent-post-title h2 { font:normal bold 14px Arial,sans-serif; height:26px; line-height:26px; margin:0 0; padding:0 10px; background:#0b944b; color:#ffffff; display:inline-block; } .recent-post-title h6 { float:right; font:normal bold 10px Arial,sans-serif; height:26px; line-height:26px; margin:0 0; padding:0 10px; color:#ffffff; display:inline-block; border-bottom:5px solid #906090; } .recent-post-title h2 a { color:#ffffff; } .recent-post-title h2 a:after { content:"\f18e"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-left:6px; } .recent-post-one-thumb { float:left; width:50%; margin:0 0; } .recent-post-one-thumb .widget { padding:0 10px 10px 0; } .recent-post-one-thumb .widget-content { background:#ffffff; border:1px solid #e5e5e5; padding:15px; } .recent-post-one-thumb ul { list-style-type:none; margin:0 0 0 0; padding:0 0 0 0; } ul.rp_thumbs { margin:0 0 0 0; } ul.rp_thumbs li { font-size:12px; height:auto; margin:0 0 5px; padding:0 0 2px; border-bottom:1px solid #e5e5e5; } ul.rp_thumbs .rp_thumb { position:relative; background:#fbfbfb; margin:3px 0 10px 0; width:100%; height:0; padding-bottom:46%; overflow:hidden; } ul.rp_thumbs .rp_thumb img { height:auto; width:100%; } ul.rp_thumbs2 { font-size:13px; } ul.rp_thumbs2 li {    height: auto;
    font-size: 11px;
    margin: 0 0 5px;
    padding: 0 0 2px;
    border-bottom: 1px solid #e5e5e5;} ul.rp_thumbs2 .rp_thumb2 { background:#fbfbfb; float:left; margin:3px 8px 0 0; height:100px; width:180px; } ul.rp_thumbs2 .rp_thumb2 img { height:100px; width:180px; } span.rp_title { font:normal normal 14px Arial,sans-serif; display:block; margin:0 0 5px; line-height:1.4em; } span.rp_title2 { font-size:14px; } span.rp_summary { display:block; margin:6px 0 0; color:#666666; } span.rp_meta { background:transparent; display:block; font-size:11px; color:#666666; } span.rp_meta a { color:#666666 !important; display:inline-block; } span.rp_meta_date,span.rp_meta_comment,span.rp_meta_more { display:inline-block; margin-right:8px; } span.rp_meta_date:before { content:"\f073"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } span.rp_meta_comment:before { content:"\f086"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } span.rp_meta_more:before { content:"\f0a9"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } ul.rp_thumbs2 li a:hover,ul.rp_thumbs li a:hover { color:#0072C6; }
</style>
<script type='text/javascript'>
var numposts = 1;
var numposts2 = 5;
var showpostthumbnails = true;
var showpostthumbnails2 = false;
var displaymore = false;
var displaymore2 = false;
var showcommentnum = false;
var showcommentnum2 = false;
var showpostdate = false;
var showpostdate2 = false;
var showpostsummary = false;
var numchars = 100;
var thumb_width = 180;
var thumb_height = 100;
var thumb_width2 = 180;
var thumb_height2 = 100;
var no_thumb = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje0PDkGreoCFyWgVgu4rR_F-Ckd4P3ebvfOniqDQlh3iCBdVKff1lBKxhL15cTxKouWTwcYeRPcILr-pKTmkvwO2RI5r10_Y8IbiXCuugAilx8S2n8c_iAYqkZH-75UpgtRKL0gCOWhLdT/w300-c-h140/no-image.png'
var no_thumb2 = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtPOqzNV_un-WcGS2nIEP-IPaR4EJxrmTPKti8h-p4KFtIfDC4_K-KUIvEPcLTSj4GtLFD_FfaOKTo4Cjx-7mFBu1bjkUmNS306DRX5YWbosqpjim-hYnTioBkYt2ptVmMPtymfnHQGcap/s60-c/no-image.png'
</script>
<script type='text/javascript'>
//<![CDATA[
function labelthumbs(e){for(var t=0;t<numposts;t++){var n=e.feed.entry[t];var r=n.title.$t;var i;if(t==e.feed.entry.length)break;for(var o=0;o<n.link.length;o++){if(n.link[o].rel=="replies"&&n.link[o].type=="text/html"){var u=n.link[o].title;var f=n.link[o].href}if(n.link[o].rel=="alternate"){i=n.link[o].href;break}}var l;try{l=n.media$thumbnail.url;l=l.replace("/s72-c/","/w"+thumb_width+"-h"+thumb_height+"-c/")}catch(h){s=n.content.$t;a=s.indexOf("<img");b=s.indexOf('src="',a);c=s.indexOf('"',b+5);d=s.substr(b+5,c-b-5);if(a!=-1&&b!=-1&&c!=-1&&d!=""){l=d}else l=no_thumb}var p=n.published.$t;var v=p.substring(0,4);var m=p.substring(5,7);var g=p.substring(8,10);document.write('<ul class="rp_thumbs">');document.write("<li>");if(showpostthumbnails==true)document.write('<a href="'+i+'"><div class="rp_thumb"><span class="rollover"></span><img width="'+thumb_width+'" height="'+thumb_height+'" alt="'+r+'" title="'+r+'" src="'+l+'"/></div></a>');document.write('<span class="rp_title"><a href="'+i+'" title="'+r+'" target ="_top">'+r+"</a></span>");var y="";document.write('<span class="rp_meta">');if(showpostdate==true){y=y+'<span class="rp_meta_date">'+g+"/"+m+"/"+v+"</span>"}if(showcommentnum==true){if(u=="1 Comments")u="1 Comment";if(u=="0 Comments")u="No Comments";u='<span class="rp_meta_comment"><a href="'+f+'" target ="_top">'+u+"</a></span>";y=y+u}if(displaymore==true){y=y+'<span class="rp_meta_more"><a href="'+i+'" class="url" target ="_top">Read More...</a></span>'}document.write(y);document.write("</span>");document.write('<span class="rp_summary">');if("content"in n){var w=n.content.$t}else if("summary"in n){var w=n.summary.$t}else var w="";var E=/<\S[^>]*>/g;w=w.replace(E,"");if(showpostsummary==true){if(w.length<numchars){document.write("");document.write(w);document.write("")}else{document.write("");w=w.substring(0,numchars);var S=w.lastIndexOf(" ");w=w.substring(0,S);document.write(w+"...");document.write("")}}document.write("</span>");document.write("</li>");document.write("</ul>")}document.write('<ul class="rp_thumbs2">');for(var t=1;t<numposts2;t++){var n=e.feed.entry[t];var r=n.title.$t;var i;if(t==e.feed.entry.length)break;for(var o=1;o<n.link.length;o++){if(n.link[o].rel=="replies"&&n.link[o].type=="text/html"){var u=n.link[o].title;var f=n.link[o].href}if(n.link[o].rel=="alternate"){i=n.link[o].href;break}}var x;try{x=n.media$thumbnail.url.replace("/s72-c/","/w"+thumb_width2+"-h"+thumb_height2+"-c/")}catch(h){s=n.content.$t;a=s.indexOf("<img");b=s.indexOf('src="',a);c=s.indexOf('"',b+5);d=s.substr(b+5,c-b-5);if(a!=-1&&b!=-1&&c!=-1&&d!=""){x=d}else x=no_thumb2}var p=n.published.$t;var v=p.substring(0,4);var m=p.substring(5,7);var g=p.substring(8,10);if(showpostthumbnails2==true)document.write('<a href="'+i+'"><div class="rp_thumb2"><img width="'+thumb_width2+'" height="'+thumb_height2+'" alt="'+r+'" title="'+r+'" src="'+x+'"/></div></a>');document.write("<li>");document.write('<span class="rp_title rp_title2"><a href="'+i+'" title="'+r+'" target ="_top">'+r+"</a></span>");var y="";document.write('<span class="rp_meta rp_meta2">');if(showpostdate2==true){y=y+'<span class="rp_meta_date rp_meta_date2">'+g+"/"+m+"/"+v+"</span>"}if(showcommentnum2==true){if(u=="1 Comments")u="1 Comment";if(u=="0 Comments")u="No Comments";u='<span class="rp_meta_comment rp_meta_comment2"><a href="'+f+'" target ="_top">'+u+"</a></span>";y=y+u}if(displaymore2==true){y=y+'<span class="rp_meta_more rp_meta_more2"><a href="'+i+'" class="url" target ="_top">Read More...</a></span>'}document.write(y);document.write("</span>");document.write("</li>")}document.write("</ul>")};

//]]>
</script>
<script>
document.write("<script src=\"/feeds/posts/default?orderby=updated&alt=json-in-script&callback=labelthumbs\"><\/script>");
document.write('<div class="recent-post-title"></div>');
</script>

KODE #2
Recent Post dengan Satu Gambar Besar, Lainnya Gambar Kecil

Recent Post dengan Satu Gambar Besar, Lainnya Gambar Kecil


<style>
.clear { clear:both; } .recent-post-title { background:#fff; margin:0 0 5px; padding:0; position:relative; } .recent-post-title h2 { font:normal bold 14px Arial,sans-serif; height:26px; line-height:26px; margin:0 0; padding:0 10px; background:#0b944b; color:#ffffff; display:inline-block; } .recent-post-title h6 { float:right; font:normal bold 10px Arial,sans-serif; height:26px; line-height:26px; margin:0 0; padding:0 10px; color:#ffffff; display:inline-block; border-bottom:5px solid #906090; } .recent-post-title h2 a { color:#ffffff; } .recent-post-title h2 a:after { content:"\f18e"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-left:6px; } .recent-post-one-thumb { float:left; width:50%; margin:0 0; } .recent-post-one-thumb .widget { padding:0 10px 10px 0; } .recent-post-one-thumb .widget-content { background:#ffffff; border:1px solid #e5e5e5; padding:15px; } .recent-post-one-thumb ul { list-style-type:none; margin:0 0 0 0; padding:0 0 0 0; } ul.rp_thumbs { margin:0 0 0 0; } ul.rp_thumbs li { font-size:12px; height:auto; margin:0 0 5px; padding:0 0 2px; border-bottom:1px solid #e5e5e5; } ul.rp_thumbs .rp_thumb { position:relative; background:#fbfbfb; margin:3px 0 10px 0; width:100%; height:0; padding-bottom:46%; overflow:hidden; } ul.rp_thumbs .rp_thumb img { height:auto; width:100%; } ul.rp_thumbs2 { font-size:13px; } ul.rp_thumbs2 li {    height: auto;min-height: 66px;
    font-size: 11px;
    margin: 0 0 5px;
    padding: 0 0 2px;
    border-bottom: 1px solid #e5e5e5;} ul.rp_thumbs2 .rp_thumb2 { background:#fbfbfb; float:left; margin:3px 8px 0 0; height:60px; width:60px; } ul.rp_thumbs2 .rp_thumb2 img { height:60px; width:60px; } span.rp_title { font:normal normal 14px Arial,sans-serif; display:block; margin:0 0 5px; line-height:1.4em; } span.rp_title2 { font-size:14px; } span.rp_summary { display:block; margin:6px 0 0; color:#666666; } span.rp_meta { background:transparent; display:block; font-size:11px; color:#666666; } span.rp_meta a { color:#666666 !important; display:inline-block; } span.rp_meta_date,span.rp_meta_comment,span.rp_meta_more { display:inline-block; margin-right:8px; } span.rp_meta_date:before { content:"\f073"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } span.rp_meta_comment:before { content:"\f086"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } span.rp_meta_more:before { content:"\f0a9"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } ul.rp_thumbs2 li a:hover,ul.rp_thumbs li a:hover { color:#0072C6; }
</style>
<script type='text/javascript'>
var numposts = 1;
var numposts2 = 5;
var showpostthumbnails = true;
var showpostthumbnails2 = true;
var displaymore = false;
var displaymore2 = false;
var showcommentnum = false;
var showcommentnum2 = false;
var showpostdate = false;
var showpostdate2 = false;
var showpostsummary = false;
var numchars = 100;
var thumb_width = 180;
var thumb_height = 100;
var thumb_width2 = 60;
var thumb_height2 = 60;
var no_thumb = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje0PDkGreoCFyWgVgu4rR_F-Ckd4P3ebvfOniqDQlh3iCBdVKff1lBKxhL15cTxKouWTwcYeRPcILr-pKTmkvwO2RI5r10_Y8IbiXCuugAilx8S2n8c_iAYqkZH-75UpgtRKL0gCOWhLdT/w300-c-h140/no-image.png'
var no_thumb2 = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtPOqzNV_un-WcGS2nIEP-IPaR4EJxrmTPKti8h-p4KFtIfDC4_K-KUIvEPcLTSj4GtLFD_FfaOKTo4Cjx-7mFBu1bjkUmNS306DRX5YWbosqpjim-hYnTioBkYt2ptVmMPtymfnHQGcap/s60-c/no-image.png'
</script>
<script type='text/javascript'>
//<![CDATA[
function labelthumbs(e){for(var t=0;t<numposts;t++){var n=e.feed.entry[t];var r=n.title.$t;var i;if(t==e.feed.entry.length)break;for(var o=0;o<n.link.length;o++){if(n.link[o].rel=="replies"&&n.link[o].type=="text/html"){var u=n.link[o].title;var f=n.link[o].href}if(n.link[o].rel=="alternate"){i=n.link[o].href;break}}var l;try{l=n.media$thumbnail.url;l=l.replace("/s72-c/","/w"+thumb_width+"-h"+thumb_height+"-c/")}catch(h){s=n.content.$t;a=s.indexOf("<img");b=s.indexOf('src="',a);c=s.indexOf('"',b+5);d=s.substr(b+5,c-b-5);if(a!=-1&&b!=-1&&c!=-1&&d!=""){l=d}else l=no_thumb}var p=n.published.$t;var v=p.substring(0,4);var m=p.substring(5,7);var g=p.substring(8,10);document.write('<ul class="rp_thumbs">');document.write("<li>");if(showpostthumbnails==true)document.write('<a href="'+i+'"><div class="rp_thumb"><span class="rollover"></span><img width="'+thumb_width+'" height="'+thumb_height+'" alt="'+r+'" title="'+r+'" src="'+l+'"/></div></a>');document.write('<span class="rp_title"><a href="'+i+'" title="'+r+'" target ="_top">'+r+"</a></span>");var y="";document.write('<span class="rp_meta">');if(showpostdate==true){y=y+'<span class="rp_meta_date">'+g+"/"+m+"/"+v+"</span>"}if(showcommentnum==true){if(u=="1 Comments")u="1 Comment";if(u=="0 Comments")u="No Comments";u='<span class="rp_meta_comment"><a href="'+f+'" target ="_top">'+u+"</a></span>";y=y+u}if(displaymore==true){y=y+'<span class="rp_meta_more"><a href="'+i+'" class="url" target ="_top">Read More...</a></span>'}document.write(y);document.write("</span>");document.write('<span class="rp_summary">');if("content"in n){var w=n.content.$t}else if("summary"in n){var w=n.summary.$t}else var w="";var E=/<\S[^>]*>/g;w=w.replace(E,"");if(showpostsummary==true){if(w.length<numchars){document.write("");document.write(w);document.write("")}else{document.write("");w=w.substring(0,numchars);var S=w.lastIndexOf(" ");w=w.substring(0,S);document.write(w+"...");document.write("")}}document.write("</span>");document.write("</li>");document.write("</ul>")}document.write('<ul class="rp_thumbs2">');for(var t=1;t<numposts2;t++){var n=e.feed.entry[t];var r=n.title.$t;var i;if(t==e.feed.entry.length)break;for(var o=1;o<n.link.length;o++){if(n.link[o].rel=="replies"&&n.link[o].type=="text/html"){var u=n.link[o].title;var f=n.link[o].href}if(n.link[o].rel=="alternate"){i=n.link[o].href;break}}var x;try{x=n.media$thumbnail.url.replace("/s72-c/","/w"+thumb_width2+"-h"+thumb_height2+"-c/")}catch(h){s=n.content.$t;a=s.indexOf("<img");b=s.indexOf('src="',a);c=s.indexOf('"',b+5);d=s.substr(b+5,c-b-5);if(a!=-1&&b!=-1&&c!=-1&&d!=""){x=d}else x=no_thumb2}var p=n.published.$t;var v=p.substring(0,4);var m=p.substring(5,7);var g=p.substring(8,10);if(showpostthumbnails2==true)document.write('<a href="'+i+'"><div class="rp_thumb2"><img width="'+thumb_width2+'" height="'+thumb_height2+'" alt="'+r+'" title="'+r+'" src="'+x+'"/></div></a>');document.write("<li>");document.write('<span class="rp_title rp_title2"><a href="'+i+'" title="'+r+'" target ="_top">'+r+"</a></span>");var y="";document.write('<span class="rp_meta rp_meta2">');if(showpostdate2==true){y=y+'<span class="rp_meta_date rp_meta_date2">'+g+"/"+m+"/"+v+"</span>"}if(showcommentnum2==true){if(u=="1 Comments")u="1 Comment";if(u=="0 Comments")u="No Comments";u='<span class="rp_meta_comment rp_meta_comment2"><a href="'+f+'" target ="_top">'+u+"</a></span>";y=y+u}if(displaymore2==true){y=y+'<span class="rp_meta_more rp_meta_more2"><a href="'+i+'" class="url" target ="_top">Read More...</a></span>'}document.write(y);document.write("</span>");document.write("</li>")}document.write("</ul>")};
//]]>
</script>
<script>
document.write("<script src=\"/feeds/posts/default?orderby=updated&alt=json-in-script&callback=labelthumbs\"><\/script>");
document.write('<div class="recent-post-title"></div>');
</script>


KODE #3
Recent Posts dengan Gambar Kecil Semua

Recent Post dengan Gambar Kecil Semua


<style>
.clear { clear:both; } .recent-post-title { background:#fff; margin:0 0 5px; padding:0; position:relative; } .recent-post-title h2 { font:normal bold 14px Arial,sans-serif; height:26px; line-height:26px; margin:0 0; padding:0 10px; background:#0b944b; color:#ffffff; display:inline-block; } .recent-post-title h6 { float:right; font:normal bold 10px Arial,sans-serif; height:26px; line-height:26px; margin:0 0; padding:0 10px; color:#ffffff; display:inline-block; border-bottom:5px solid #906090; } .recent-post-title h2 a { color:#ffffff; } .recent-post-title h2 a:after { content:"\f18e"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-left:6px; } .recent-post-one-thumb { float:left; width:50%; margin:0 0; } .recent-post-one-thumb .widget { padding:0 10px 10px 0; } .recent-post-one-thumb .widget-content { background:#ffffff; border:1px solid #e5e5e5; padding:15px; } .recent-post-one-thumb ul { list-style-type:none; margin:0 0 0 0; padding:0 0 0 0; } ul.rp_thumbs { margin:0 0 0 0; } ul.rp_thumbs li { font-size:12px; height:auto; min-height:66px;margin:0 0 5px; padding:0 0 2px; border-bottom:1px solid #e5e5e5; } ul.rp_thumbs .rp_thumb {position: relative;
    background: #fbfbfb;
    margin: 3px 5px 10px 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    float: left;} ul.rp_thumbs .rp_thumb img {    height: 60px;
    width: 60px;} ul.rp_thumbs2 { font-size:13px; } ul.rp_thumbs2 li {    height: auto;min-height: 66px;
    font-size: 11px;
    margin: 0 0 5px;
    padding: 0 0 2px;
    border-bottom: 1px solid #e5e5e5;} ul.rp_thumbs2 .rp_thumb2 { background:#fbfbfb; float:left; margin:3px 8px 0 0; height:60px; width:60px; } ul.rp_thumbs2 .rp_thumb2 img { height:60px; width:60px; } span.rp_title { font:normal normal 14px Arial,sans-serif; display:block; margin:0 0 5px; line-height:1.4em; } span.rp_title2 { font-size:14px; } span.rp_summary { display:block; margin:6px 0 0; color:#666666; } span.rp_meta { background:transparent; display:block; font-size:11px; color:#666666; } span.rp_meta a { color:#666666 !important; display:inline-block; } span.rp_meta_date,span.rp_meta_comment,span.rp_meta_more { display:inline-block; margin-right:8px; } span.rp_meta_date:before { content:"\f073"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } span.rp_meta_comment:before { content:"\f086"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } span.rp_meta_more:before { content:"\f0a9"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } ul.rp_thumbs2 li a:hover,ul.rp_thumbs li a:hover { color:#0072C6; }
</style>
<script type='text/javascript'>
var numposts = 1;
var numposts2 = 5;
var showpostthumbnails = true;
var showpostthumbnails2 = true;
var displaymore = false;
var displaymore2 = false;
var showcommentnum = false;
var showcommentnum2 = false;
var showpostdate = false;
var showpostdate2 = false;
var showpostsummary = false;
var numchars = 100;
var thumb_width = 60;
var thumb_height = 60;
var thumb_width2 = 60;
var thumb_height2 = 60;
var no_thumb = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje0PDkGreoCFyWgVgu4rR_F-Ckd4P3ebvfOniqDQlh3iCBdVKff1lBKxhL15cTxKouWTwcYeRPcILr-pKTmkvwO2RI5r10_Y8IbiXCuugAilx8S2n8c_iAYqkZH-75UpgtRKL0gCOWhLdT/w300-c-h140/no-image.png'
var no_thumb2 = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtPOqzNV_un-WcGS2nIEP-IPaR4EJxrmTPKti8h-p4KFtIfDC4_K-KUIvEPcLTSj4GtLFD_FfaOKTo4Cjx-7mFBu1bjkUmNS306DRX5YWbosqpjim-hYnTioBkYt2ptVmMPtymfnHQGcap/s60-c/no-image.png'
</script>
<script type='text/javascript'>
//<![CDATA[
function labelthumbs(e){for(var t=0;t<numposts;t++){var n=e.feed.entry[t];var r=n.title.$t;var i;if(t==e.feed.entry.length)break;for(var o=0;o<n.link.length;o++){if(n.link[o].rel=="replies"&&n.link[o].type=="text/html"){var u=n.link[o].title;var f=n.link[o].href}if(n.link[o].rel=="alternate"){i=n.link[o].href;break}}var l;try{l=n.media$thumbnail.url;l=l.replace("/s72-c/","/w"+thumb_width+"-h"+thumb_height+"-c/")}catch(h){s=n.content.$t;a=s.indexOf("<img");b=s.indexOf('src="',a);c=s.indexOf('"',b+5);d=s.substr(b+5,c-b-5);if(a!=-1&&b!=-1&&c!=-1&&d!=""){l=d}else l=no_thumb}var p=n.published.$t;var v=p.substring(0,4);var m=p.substring(5,7);var g=p.substring(8,10);document.write('<ul class="rp_thumbs">');document.write("<li>");if(showpostthumbnails==true)document.write('<a href="'+i+'"><div class="rp_thumb"><span class="rollover"></span><img width="'+thumb_width+'" height="'+thumb_height+'" alt="'+r+'" title="'+r+'" src="'+l+'"/></div></a>');document.write('<span class="rp_title"><a href="'+i+'" title="'+r+'" target ="_top">'+r+"</a></span>");var y="";document.write('<span class="rp_meta">');if(showpostdate==true){y=y+'<span class="rp_meta_date">'+g+"/"+m+"/"+v+"</span>"}if(showcommentnum==true){if(u=="1 Comments")u="1 Comment";if(u=="0 Comments")u="No Comments";u='<span class="rp_meta_comment"><a href="'+f+'" target ="_top">'+u+"</a></span>";y=y+u}if(displaymore==true){y=y+'<span class="rp_meta_more"><a href="'+i+'" class="url" target ="_top">Read More...</a></span>'}document.write(y);document.write("</span>");document.write('<span class="rp_summary">');if("content"in n){var w=n.content.$t}else if("summary"in n){var w=n.summary.$t}else var w="";var E=/<\S[^>]*>/g;w=w.replace(E,"");if(showpostsummary==true){if(w.length<numchars){document.write("");document.write(w);document.write("")}else{document.write("");w=w.substring(0,numchars);var S=w.lastIndexOf(" ");w=w.substring(0,S);document.write(w+"...");document.write("")}}document.write("</span>");document.write("</li>");document.write("</ul>")}document.write('<ul class="rp_thumbs2">');for(var t=1;t<numposts2;t++){var n=e.feed.entry[t];var r=n.title.$t;var i;if(t==e.feed.entry.length)break;for(var o=1;o<n.link.length;o++){if(n.link[o].rel=="replies"&&n.link[o].type=="text/html"){var u=n.link[o].title;var f=n.link[o].href}if(n.link[o].rel=="alternate"){i=n.link[o].href;break}}var x;try{x=n.media$thumbnail.url.replace("/s72-c/","/w"+thumb_width2+"-h"+thumb_height2+"-c/")}catch(h){s=n.content.$t;a=s.indexOf("<img");b=s.indexOf('src="',a);c=s.indexOf('"',b+5);d=s.substr(b+5,c-b-5);if(a!=-1&&b!=-1&&c!=-1&&d!=""){x=d}else x=no_thumb2}var p=n.published.$t;var v=p.substring(0,4);var m=p.substring(5,7);var g=p.substring(8,10);if(showpostthumbnails2==true)document.write('<a href="'+i+'"><div class="rp_thumb2"><img width="'+thumb_width2+'" height="'+thumb_height2+'" alt="'+r+'" title="'+r+'" src="'+x+'"/></div></a>');document.write("<li>");document.write('<span class="rp_title rp_title2"><a href="'+i+'" title="'+r+'" target ="_top">'+r+"</a></span>");var y="";document.write('<span class="rp_meta rp_meta2">');if(showpostdate2==true){y=y+'<span class="rp_meta_date rp_meta_date2">'+g+"/"+m+"/"+v+"</span>"}if(showcommentnum2==true){if(u=="1 Comments")u="1 Comment";if(u=="0 Comments")u="No Comments";u='<span class="rp_meta_comment rp_meta_comment2"><a href="'+f+'" target ="_top">'+u+"</a></span>";y=y+u}if(displaymore2==true){y=y+'<span class="rp_meta_more rp_meta_more2"><a href="'+i+'" class="url" target ="_top">Read More...</a></span>'}document.write(y);document.write("</span>");document.write("</li>")}document.write("</ul>")};
//]]>
</script>
<script>
document.write("<script src=\"/feeds/posts/default?orderby=updated&alt=json-in-script&callback=labelthumbs\"><\/script>");
document.write('<div class="recent-post-title"></div>');
</script>


KODE #4
Recent Post dengan Judul Saja, Tanpa Gambar

Recent Post dengan Judul Saja, Tanpa Gambar


<style>
.clear { clear:both; } .recent-post-title { background:#fff; margin:0 0 5px; padding:0; position:relative; } .recent-post-title h2 { font:normal bold 14px Arial,sans-serif; height:26px; line-height:26px; margin:0 0; padding:0 10px; background:#0b944b; color:#ffffff; display:inline-block; } .recent-post-title h6 { float:right; font:normal bold 10px Arial,sans-serif; height:26px; line-height:26px; margin:0 0; padding:0 10px; color:#ffffff; display:inline-block; border-bottom:5px solid #906090; } .recent-post-title h2 a { color:#ffffff; } .recent-post-title h2 a:after { content:"\f18e"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-left:6px; } .recent-post-one-thumb { float:left; width:50%; margin:0 0; } .recent-post-one-thumb .widget { padding:0 10px 10px 0; } .recent-post-one-thumb .widget-content { background:#ffffff; border:1px solid #e5e5e5; padding:15px; } .recent-post-one-thumb ul { list-style-type:none; margin:0 0 0 0; padding:0 0 0 0; } ul.rp_thumbs { margin:0 0 0 0; } ul.rp_thumbs li { font-size:12px; height:auto;margin:0 0 5px; padding:0 0 2px; border-bottom:1px solid #e5e5e5; } ul.rp_thumbs .rp_thumb {position: relative;
    background: #fbfbfb;
    margin: 3px 5px 10px 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    float: left;} ul.rp_thumbs .rp_thumb img {    height: 60px;
    width: 60px;} ul.rp_thumbs2 { font-size:13px; } ul.rp_thumbs2 li {    height: auto;
    font-size: 11px;
    margin: 0 0 5px;
    padding: 0 0 2px;
    border-bottom: 1px solid #e5e5e5;} ul.rp_thumbs2 .rp_thumb2 { background:#fbfbfb; float:left; margin:3px 8px 0 0; height:60px; width:60px; } ul.rp_thumbs2 .rp_thumb2 img { height:60px; width:60px; } span.rp_title { font:normal normal 14px Arial,sans-serif; display:block; margin:0 0 5px; line-height:1.4em; } span.rp_title2 { font-size:14px; } span.rp_summary { display:block; margin:6px 0 0; color:#666666; } span.rp_meta { background:transparent; display:block; font-size:11px; color:#666666; } span.rp_meta a { color:#666666 !important; display:inline-block; } span.rp_meta_date,span.rp_meta_comment,span.rp_meta_more { display:inline-block; margin-right:8px; } span.rp_meta_date:before { content:"\f073"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } span.rp_meta_comment:before { content:"\f086"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } span.rp_meta_more:before { content:"\f0a9"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } ul.rp_thumbs2 li a:hover,ul.rp_thumbs li a:hover { color:#0072C6; }
</style>
<script type='text/javascript'>
var numposts = 1;
var numposts2 = 5;
var showpostthumbnails = false;
var showpostthumbnails2 = false;
var displaymore = false;
var displaymore2 = false;
var showcommentnum = false;
var showcommentnum2 = false;
var showpostdate = false;
var showpostdate2 = false;
var showpostsummary = false;
var numchars = 100;
var thumb_width = 60;
var thumb_height = 60;
var thumb_width2 = 60;
var thumb_height2 = 60;
var no_thumb = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje0PDkGreoCFyWgVgu4rR_F-Ckd4P3ebvfOniqDQlh3iCBdVKff1lBKxhL15cTxKouWTwcYeRPcILr-pKTmkvwO2RI5r10_Y8IbiXCuugAilx8S2n8c_iAYqkZH-75UpgtRKL0gCOWhLdT/w300-c-h140/no-image.png'
var no_thumb2 = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtPOqzNV_un-WcGS2nIEP-IPaR4EJxrmTPKti8h-p4KFtIfDC4_K-KUIvEPcLTSj4GtLFD_FfaOKTo4Cjx-7mFBu1bjkUmNS306DRX5YWbosqpjim-hYnTioBkYt2ptVmMPtymfnHQGcap/s60-c/no-image.png'
</script>
<script type='text/javascript'>
//<![CDATA[
function labelthumbs(e){for(var t=0;t<numposts;t++){var n=e.feed.entry[t];var r=n.title.$t;var i;if(t==e.feed.entry.length)break;for(var o=0;o<n.link.length;o++){if(n.link[o].rel=="replies"&&n.link[o].type=="text/html"){var u=n.link[o].title;var f=n.link[o].href}if(n.link[o].rel=="alternate"){i=n.link[o].href;break}}var l;try{l=n.media$thumbnail.url;l=l.replace("/s72-c/","/w"+thumb_width+"-h"+thumb_height+"-c/")}catch(h){s=n.content.$t;a=s.indexOf("<img");b=s.indexOf('src="',a);c=s.indexOf('"',b+5);d=s.substr(b+5,c-b-5);if(a!=-1&&b!=-1&&c!=-1&&d!=""){l=d}else l=no_thumb}var p=n.published.$t;var v=p.substring(0,4);var m=p.substring(5,7);var g=p.substring(8,10);document.write('<ul class="rp_thumbs">');document.write("<li>");if(showpostthumbnails==true)document.write('<a href="'+i+'"><div class="rp_thumb"><span class="rollover"></span><img width="'+thumb_width+'" height="'+thumb_height+'" alt="'+r+'" title="'+r+'" src="'+l+'"/></div></a>');document.write('<span class="rp_title"><a href="'+i+'" title="'+r+'" target ="_top">'+r+"</a></span>");var y="";document.write('<span class="rp_meta">');if(showpostdate==true){y=y+'<span class="rp_meta_date">'+g+"/"+m+"/"+v+"</span>"}if(showcommentnum==true){if(u=="1 Comments")u="1 Comment";if(u=="0 Comments")u="No Comments";u='<span class="rp_meta_comment"><a href="'+f+'" target ="_top">'+u+"</a></span>";y=y+u}if(displaymore==true){y=y+'<span class="rp_meta_more"><a href="'+i+'" class="url" target ="_top">Read More...</a></span>'}document.write(y);document.write("</span>");document.write('<span class="rp_summary">');if("content"in n){var w=n.content.$t}else if("summary"in n){var w=n.summary.$t}else var w="";var E=/<\S[^>]*>/g;w=w.replace(E,"");if(showpostsummary==true){if(w.length<numchars){document.write("");document.write(w);document.write("")}else{document.write("");w=w.substring(0,numchars);var S=w.lastIndexOf(" ");w=w.substring(0,S);document.write(w+"...");document.write("")}}document.write("</span>");document.write("</li>");document.write("</ul>")}document.write('<ul class="rp_thumbs2">');for(var t=1;t<numposts2;t++){var n=e.feed.entry[t];var r=n.title.$t;var i;if(t==e.feed.entry.length)break;for(var o=1;o<n.link.length;o++){if(n.link[o].rel=="replies"&&n.link[o].type=="text/html"){var u=n.link[o].title;var f=n.link[o].href}if(n.link[o].rel=="alternate"){i=n.link[o].href;break}}var x;try{x=n.media$thumbnail.url.replace("/s72-c/","/w"+thumb_width2+"-h"+thumb_height2+"-c/")}catch(h){s=n.content.$t;a=s.indexOf("<img");b=s.indexOf('src="',a);c=s.indexOf('"',b+5);d=s.substr(b+5,c-b-5);if(a!=-1&&b!=-1&&c!=-1&&d!=""){x=d}else x=no_thumb2}var p=n.published.$t;var v=p.substring(0,4);var m=p.substring(5,7);var g=p.substring(8,10);if(showpostthumbnails2==true)document.write('<a href="'+i+'"><div class="rp_thumb2"><img width="'+thumb_width2+'" height="'+thumb_height2+'" alt="'+r+'" title="'+r+'" src="'+x+'"/></div></a>');document.write("<li>");document.write('<span class="rp_title rp_title2"><a href="'+i+'" title="'+r+'" target ="_top">'+r+"</a></span>");var y="";document.write('<span class="rp_meta rp_meta2">');if(showpostdate2==true){y=y+'<span class="rp_meta_date rp_meta_date2">'+g+"/"+m+"/"+v+"</span>"}if(showcommentnum2==true){if(u=="1 Comments")u="1 Comment";if(u=="0 Comments")u="No Comments";u='<span class="rp_meta_comment rp_meta_comment2"><a href="'+f+'" target ="_top">'+u+"</a></span>";y=y+u}if(displaymore2==true){y=y+'<span class="rp_meta_more rp_meta_more2"><a href="'+i+'" class="url" target ="_top">Read More...</a></span>'}document.write(y);document.write("</span>");document.write("</li>")}document.write("</ul>")};
//]]>
</script>
<script>
document.write("<script src=\"/feeds/posts/default?orderby=updated&alt=json-in-script&callback=labelthumbs\"><\/script>");
document.write('<div class="recent-post-title"></div>');
</script>


KODE #5
Recent Post dengan Gambar Besar Semua

Recent Post dengan Gambar Besar Semua


<style>
.clear { clear:both; } .recent-post-title { background:#fff; margin:0 0 5px; padding:0; position:relative; } .recent-post-title h2 { font:normal bold 14px Arial,sans-serif; height:26px; line-height:26px; margin:0 0; padding:0 10px; background:#0b944b; color:#ffffff; display:inline-block; } .recent-post-title h6 { float:right; font:normal bold 10px Arial,sans-serif; height:26px; line-height:26px; margin:0 0; padding:0 10px; color:#ffffff; display:inline-block; border-bottom:5px solid #906090; } .recent-post-title h2 a { color:#ffffff; } .recent-post-title h2 a:after { content:"\f18e"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-left:6px; } .recent-post-one-thumb { float:left; width:50%; margin:0 0; } .recent-post-one-thumb .widget { padding:0 10px 10px 0; } .recent-post-one-thumb .widget-content { background:#ffffff; border:1px solid #e5e5e5; padding:15px; } .recent-post-one-thumb ul { list-style-type:none; margin:0 0 0 0; padding:0 0 0 0; } ul.rp_thumbs { margin:0 0 0 0; } ul.rp_thumbs li { font-size:12px; height:auto; margin:0 0 5px; padding:0 0 2px; border-bottom:1px solid #e5e5e5; } ul.rp_thumbs .rp_thumb { position:relative; background:#fbfbfb; margin:3px 0 10px 0; width:100%; height:0; padding-bottom:46%; overflow:hidden; } ul.rp_thumbs .rp_thumb img { height:auto; width:100%; } ul.rp_thumbs2 { font-size:13px; } ul.rp_thumbs2 li {    height: auto;font-size: 11px;
    margin: 0 0 5px;
    padding: 0 0 2px;
    border-bottom: 1px solid #e5e5e5;} ul.rp_thumbs2 .rp_thumb2 { background:#fbfbfb; float:left; margin:3px 8px 8px 0; height:auto; width:100%; } ul.rp_thumbs2 .rp_thumb2 img { height:auto; width:100%; } span.rp_title { font:normal normal 14px Arial,sans-serif; display:block; margin:0 0 5px; line-height:1.4em; } span.rp_title2 { font-size:14px; } span.rp_summary { display:block; margin:6px 0 0; color:#666666; } span.rp_meta { background:transparent; display:block; font-size:11px; color:#666666; } span.rp_meta a { color:#666666 !important; display:inline-block; } span.rp_meta_date,span.rp_meta_comment,span.rp_meta_more { display:inline-block; margin-right:8px; } span.rp_meta_date:before { content:"\f073"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } span.rp_meta_comment:before { content:"\f086"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } span.rp_meta_more:before { content:"\f0a9"; font-family:FontAwesome; font-style:normal; font-weight:normal; text-decoration:inherit; padding-right:4px; } ul.rp_thumbs2 li a:hover,ul.rp_thumbs li a:hover { color:#0072C6; }
</style>
<script type='text/javascript'>
var numposts = 1;
var numposts2 = 5;
var showpostthumbnails = true;
var showpostthumbnails2 = true;
var displaymore = false;
var displaymore2 = false;
var showcommentnum = false;
var showcommentnum2 = false;
var showpostdate = false;
var showpostdate2 = false;
var showpostsummary = false;
var numchars = 100;
var thumb_width = 300;
var thumb_height = 170;
var thumb_width2 = 300;
var thumb_height2 = 170;
var no_thumb = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEje0PDkGreoCFyWgVgu4rR_F-Ckd4P3ebvfOniqDQlh3iCBdVKff1lBKxhL15cTxKouWTwcYeRPcILr-pKTmkvwO2RI5r10_Y8IbiXCuugAilx8S2n8c_iAYqkZH-75UpgtRKL0gCOWhLdT/w300-c-h140/no-image.png'
var no_thumb2 = 'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgtPOqzNV_un-WcGS2nIEP-IPaR4EJxrmTPKti8h-p4KFtIfDC4_K-KUIvEPcLTSj4GtLFD_FfaOKTo4Cjx-7mFBu1bjkUmNS306DRX5YWbosqpjim-hYnTioBkYt2ptVmMPtymfnHQGcap/s60-c/no-image.png'
</script>
<script type='text/javascript'>
//<![CDATA[
function labelthumbs(e){for(var t=0;t<numposts;t++){var n=e.feed.entry[t];var r=n.title.$t;var i;if(t==e.feed.entry.length)break;for(var o=0;o<n.link.length;o++){if(n.link[o].rel=="replies"&&n.link[o].type=="text/html"){var u=n.link[o].title;var f=n.link[o].href}if(n.link[o].rel=="alternate"){i=n.link[o].href;break}}var l;try{l=n.media$thumbnail.url;l=l.replace("/s72-c/","/w"+thumb_width+"-h"+thumb_height+"-c/")}catch(h){s=n.content.$t;a=s.indexOf("<img");b=s.indexOf('src="',a);c=s.indexOf('"',b+5);d=s.substr(b+5,c-b-5);if(a!=-1&&b!=-1&&c!=-1&&d!=""){l=d}else l=no_thumb}var p=n.published.$t;var v=p.substring(0,4);var m=p.substring(5,7);var g=p.substring(8,10);document.write('<ul class="rp_thumbs">');document.write("<li>");if(showpostthumbnails==true)document.write('<a href="'+i+'"><div class="rp_thumb"><span class="rollover"></span><img width="'+thumb_width+'" height="'+thumb_height+'" alt="'+r+'" title="'+r+'" src="'+l+'"/></div></a>');document.write('<span class="rp_title"><a href="'+i+'" title="'+r+'" target ="_top">'+r+"</a></span>");var y="";document.write('<span class="rp_meta">');if(showpostdate==true){y=y+'<span class="rp_meta_date">'+g+"/"+m+"/"+v+"</span>"}if(showcommentnum==true){if(u=="1 Comments")u="1 Comment";if(u=="0 Comments")u="No Comments";u='<span class="rp_meta_comment"><a href="'+f+'" target ="_top">'+u+"</a></span>";y=y+u}if(displaymore==true){y=y+'<span class="rp_meta_more"><a href="'+i+'" class="url" target ="_top">Read More...</a></span>'}document.write(y);document.write("</span>");document.write('<span class="rp_summary">');if("content"in n){var w=n.content.$t}else if("summary"in n){var w=n.summary.$t}else var w="";var E=/<\S[^>]*>/g;w=w.replace(E,"");if(showpostsummary==true){if(w.length<numchars){document.write("");document.write(w);document.write("")}else{document.write("");w=w.substring(0,numchars);var S=w.lastIndexOf(" ");w=w.substring(0,S);document.write(w+"...");document.write("")}}document.write("</span>");document.write("</li>");document.write("</ul>")}document.write('<ul class="rp_thumbs2">');for(var t=1;t<numposts2;t++){var n=e.feed.entry[t];var r=n.title.$t;var i;if(t==e.feed.entry.length)break;for(var o=1;o<n.link.length;o++){if(n.link[o].rel=="replies"&&n.link[o].type=="text/html"){var u=n.link[o].title;var f=n.link[o].href}if(n.link[o].rel=="alternate"){i=n.link[o].href;break}}var x;try{x=n.media$thumbnail.url.replace("/s72-c/","/w"+thumb_width2+"-h"+thumb_height2+"-c/")}catch(h){s=n.content.$t;a=s.indexOf("<img");b=s.indexOf('src="',a);c=s.indexOf('"',b+5);d=s.substr(b+5,c-b-5);if(a!=-1&&b!=-1&&c!=-1&&d!=""){x=d}else x=no_thumb2}var p=n.published.$t;var v=p.substring(0,4);var m=p.substring(5,7);var g=p.substring(8,10);if(showpostthumbnails2==true)document.write('<a href="'+i+'"><div class="rp_thumb2"><img width="'+thumb_width2+'" height="'+thumb_height2+'" alt="'+r+'" title="'+r+'" src="'+x+'"/></div></a>');document.write("<li>");document.write('<span class="rp_title rp_title2"><a href="'+i+'" title="'+r+'" target ="_top">'+r+"</a></span>");var y="";document.write('<span class="rp_meta rp_meta2">');if(showpostdate2==true){y=y+'<span class="rp_meta_date rp_meta_date2">'+g+"/"+m+"/"+v+"</span>"}if(showcommentnum2==true){if(u=="1 Comments")u="1 Comment";if(u=="0 Comments")u="No Comments";u='<span class="rp_meta_comment rp_meta_comment2"><a href="'+f+'" target ="_top">'+u+"</a></span>";y=y+u}if(displaymore2==true){y=y+'<span class="rp_meta_more rp_meta_more2"><a href="'+i+'" class="url" target ="_top">Read More...</a></span>'}document.write(y);document.write("</span>");document.write("</li>")}document.write("</ul>")};
//]]>
</script>
<script>
document.write("<script src=\"/feeds/posts/default?orderby=updated&alt=json-in-script&callback=labelthumbs\"><\/script>");
document.write('<div class="recent-post-title"></div>');
</script>

Sebenarnya ke-5 Style Widget Recent Posts dengan Gambar Thumbnail & Judul Saja di atas kodenyanya sama, tinggal mengubah kode css dan html-nya, terutama bagian Thumbnail Image. Supaya memudahkan bagi Newbie, CB share kodenya secara lengkap.

Kode di atas WORKS! Buktinya, CB bisa membuat kelima screenshot di atas setelah mencobanya satu per satu.

Recent Post Per Kategori / Per Label
Bagaimana jika ingin menampilkan Posting Terbaru berdasarkan label/kategori? Anda tinggal mengubah kode JavaScript paling bawah, yakni di bagian kode posts/default, menjadi seperti ini:

<script>
document.write("<script src=\"/feeds/posts/default/-/Label?orderby=updated&alt=json-in-script&callback=labelthumbs\"><\/script>");
document.write('<div class="recent-post-title"></div>');
</script>

Lihat Juga: Tips Membuat widget Recent Post Lainnya. Good Luck & Happy Blogging! (www.contohblog.com).*

Labels:

Sunday, 30 October 2016

Cara Membuat Auto Read More dengan Menampilkan Judul Posting Saja

Cara Membuat Auto Read More dengan Menampilkan Judul Posting Saja
Cara Membuat Auto Read More dengan Menampilkan Judul Posting Saja.

TIPS Cara Membuat Auto Read More dengan menampilkan judul posting saja di Halaman Depan Blog ini sebenarnya sudah ada di tips sebelumnya: Variasi Tampilan Halaman Depan Blog.

Biar fokus ke yang versi memunculkan judul saja, berikut ini kode dan cara memasangnya.

Tampilannya seperti dalam ilustrasi posting ini. Demonya bisa dilihat di Johny Simple Magazine yang menjadi sumber kode auto readmore judul saja ini.

Cara Membuat Auto Read More dengan Menampilkan Judul Posting Saja

1. Template > Edit HTML
2. Temukan (Ctrl+F) kode ini: <b:include data='post' name='post'/>
3. Hapus dan ganti dengan kode berikut ini:

<b:if cond='data:blog.homepageUrl == data:blog.url'>     
<b:if cond='data:blog.pageType != &quot;item&quot;'>         
<a class='latestpost' expr:href='data:post.url'><data:post.title/></a>     
<b:else/>         
<b:include data='post' name='post'/>     
</b:if> 
<b:else/>     
<b:include data='post' name='post'/> 
</b:if>

4. Pasang kode CSS berikut ini yang mengatur tampilan Auto Read More dengan hanyamenampilkan Judul Posting saja. Copas di atas kode ]]></b:skin>

.latestpost {background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBjsuPqIvpyXH1Ev03v_2XFIhK7JoW9iOBqRVrhZ6h9ab8d561labvENBBZewWiS0L7ghvleIcm9PUee7M3_m4MpotnUN5nrGUC8RTgGh7daWAZtln6z8fHPdDldquzVj9waEhjt7thDE/s1600/arrowList_2.gif) no-repeat 0px 3px;font: normal 14px Arial;margin: 15px 0 0 2px;padding: 4px 0px 5px 10px;line-height: 1.5em;position: relative;top:15px}

5. Save Template!

Anda bisa mengubah jenis dan ukuran huruf judul di kode font: normal 14px Arial; sesuai dengan template Anda.

Demikian Cara Membuat Auto Read More dengan Menampilkan Judul Posting Saja. Good Luck & Happy Blogging! (http://www.contohblog.com).*

Labels:

Thursday, 27 October 2016

Membuat Follow by Email (Kotak Berlangganan) Simple Keren di Sidebar Blog

Cara Membuat Follow by Email (Kotak Berlangganan - Subsciption Box) Simple Keren di Sidebar Blog.

MELENGKAPI posting sebelumnya tentang Macam-Macam Widget Kotak Berlangganan di Sidebar Blog, kali ini tampilannya simple dan menggunakan kotak berlangganan atau Follow by Email Bawaan Blogger.

Tampilan Subscription Box-nya seperti ini. Demo Live-nya ada di Starter Theme.

Follow by Email - Kotak Berlangganan - Subsciption Box

CARA PASANG

1. Layout > Add a Gadget > Pilih "Follow by Email"
2. Jika punya ID FeedBurner, maka sesuaikan FeedBurner URL-nya
2. Save!

PASANG KODE CSS

Selanjutnya adalah memasang kode CSS Follow by Email ini biar desainnya bagus seperti gambar di atas:

1. Template > Edit HTML
2. Copas kode berikut ini di atas kode ]]></b:skin>

.FollowByEmail .widget-content:before{content:&quot;Enter your email address to subscribe to this blog and receive notifications of new posts by email.&quot;;display:block}
.FollowByEmail .follow-by-email-inner .follow-by-email-submit {background-color:#e74c3c;}
.FollowByEmail .follow-by-email-inner .follow-by-email-address {font-size: 13px;padding: 6px 0;padding-left: 5%;width: 93%;}
.footer .FollowByEmail .follow-by-email-inner .follow-by-email-address {background-color:#000000;border:1px solid #e74c3c;}
input[type=&quot;submit&quot;] {border-radius:2px;background-color:#06C100;outline:0;border:0;padding:5px 8px;color:#FFFFFF;margin:2px 3px;cursor:pointer;}
input[type=&quot;submit&quot;]:hover {background-color:#324353;}
input[type=&quot;text&quot;] {padding: 4px 5px;border: 1px solid rgba(219,219,219,1);color: #324353;}

3. Anda bisa mengubah kata-kata warna merah.
4. Save Template!

Beres. Demikian cara Membuat Follow by Email - Kotak Berlangganan - Subsciption Box di Sidebar Blogger. Good Luck & Happy Blogging! (http://www.contohblog.com).*

Labels:

Waktu Terbaik untuk Update Konten Blog - Menulis Posting

Waktu Terbaik untuk Update Konten Blog - Menulis Posting
KAPAN Waktu yang Tepat untuk menulis atau update posting blog?

Bagi CB, waktu yang baik untuk update blog itu siang hari. Soalnya, pengunjung terbanyak CB itu malam hari, berdasarkan statistik dari blogger sendiri yang bisa kita cek di dashboard (menu Stats).

Siang hari, pengunjung blog CB di kisaran 5000 s.d. 10.000 pembaca.

Begitu malam hari, jumlah kunjungan (pageviews) di kisaran 10.000-20.000 bahkan lebih dari 20.000 pengunjung (dikit sih, tapi lumayan lah...:)).  Itu pas dicek keesokan harinya atau tiap pagi hari.

Menurut data Alexa per 27 Oktober 2016, Global Rank blog CB ini ada di urutan 54,464. Wuihh.... jauh banget. Lumayan lah, nggak posisi jutaan :) Rank in Indonesia alhamdulillah ada di posisi angka populer Nine One One (911). Namun, indikatornya menurun.... hiks !!!

Selain Statistik Pengunjung blog di Menu Stats Blogger, acuan terbaik mengetahui jumlah pembaca atau pengunjung blog lainnya adalah Google Analytic.

Bisa juga "ngintip" pembaca blog kita melalui Histats. Nah, dari itu semua, kita bisa menentukan kapan waktu terbaik unttuk update blog kita.

Waktu Terbaik untuk Update Konten Blog

Sebuah studi yang dipublikasi Dash Burst mengatakan, ada untung-rugi saat posting blog saat jam-jam sibuk dan saat jam-jam tidak sibuk (malam, misalnya).

Posting di high traffic hours (day time) bisa mengundang pengunjung dan komentar lebih banyak, namun kompetisi dengan posting blog lain lebih ketat!

Jika posting saat low activity times (night time), kita bisa mengharapkan kunjungan yang banyak pula, namun saat "off hours" jumlah pengunjung biasanya sedikit.

Ini kutipannya:

Posting content during high traffic hours (day time) can lead to more visitors, comments and engagement but it’s more likely your post will be buried in the competition with other articles.
When posting during low activity times (night time) you can expect more prominence within user feeds with less noise, but fewer visitors during off hours.
The data also shows that most users read blogs throughout the day, with the highest percentage in the morning between 8am to 11am (peak blog views by hour). The average blog gets the most traffic on Monday but more comments on a Saturday when people aren’t generally working.

Menurut studi tersebut, pengunjung blog tertinggi itu di pagi hari, antara jam 08.00 AM hingga 11.00 AM, terutama hari Senin. Namun, komentar biasanya banyak muncul akhir pekan, hari Sabtu, saat orang "nyantai".

Data lainnya menunjukkan, posting blog terbaik itu ya di pagi hari itu, antara jam 8 hingga jam 10 pagi.

Menurut CB sih, posting blog kapan saja begitu ada ide dan kesempatan (waktu luang). Posting aja, kapan saja, toh kadang-kadang indexing Google juga lambat ^_^. 

Lain soal jika blog Anda berupa blog berita atau blog informasi aktual. Maka, konsekuensinya, Anda harus posting kapan saja dan di mana saja, begitu ada peristiwa aktual dan menarik terjadi.

Jika blog Anda tentang sepakbola, misalnya, maka begitu pertandingan usai, misalnya pukul 04.00 dini hari, ya saat itu juga harus posting hasil pertandingan.

Yang penting nulis dan KARYA SENDIRI! Bukan Copas! Good luck! Happy blogging! (www.contohblog.com).*

Labels: ,

Monday, 24 October 2016

Cara Membuat Auto Read More Grid Style untuk Blog Foto & Video

Cara Membuat Auto Read More Grid Style untuk Blog Foto & Video.

DESAIN atau tampilan blog halaman depan berupa Auto Read More Grid Style  di bawah ini cocok buat blog foto atau video.

Cara Membuat Auto Read More Grid Style untuk Blog Foto & Video


Auto Readmore atau Jump Break otomatis di halaman depan blog dari Exeideas ini bisa dibilang terbaik karena susunan postingnya berupa gambar (thumbnai image), judul, dan ringkasan atau snippet. Yang ringkasannya bisa dihiden atau disembunyikan sehingga menjadi gambar dan judul saja.

Cara Membuat Auto Read More Grid Style untuk Blog Foto & Video

Berikut ini cara membuatnya:

1. Simpan kode berikut ini di atas kode </head>

<b:if cond='data:blog.pageType != &quot;item&quot;'>
 <b:if cond='data:blog.pageType != &quot;static_page&quot;'>
 <style type='text/css'>
 .date-outer .post-outer {width:50%;height:500px;float:left;margin:20px 1% 0px 1%;}
 .date-outer .post-outer .post-body {font-family:Helvetica, Arial;font-size:13px;}
 .date-outer .post-header {margin:0px;}
 .date-outer .post-outer h2.exe_post_TITLE {margin:0px;font-size:18px;font-family:fantasy;font-weight:normal;}
 .date-outer .post-outer h2.exe_post_TITLE a:hover{text-decoration:underline;}
 .date-outer .post-outer img.exe_post_IMG {margin-right:10px;float:left;width:100%;}
 .date-outer .post-outer .exe_post_Desc {font-size:12px;padding: 10px;display: block;}
 .date-outer .post-outer .post-footer {text-align:left;display:block;padding:10px;font-size:11px;}
 .exe_readmore {color:#333333;font-size:13px;font-weight:700;text-transform:uppercase;position:relative;right:0px;float:right;padding:5px;}
 .exe_readmore:hover {background:#333333;color:#ffffff;}
 .post-title, .jump-link {display:none;}
 </style>
 <script type='text/javascript'>
 var exe_summary_count = 250;
 var exe_img_height = 150;
 var exe_img_width = 200;
 var exe_defaultImg = "https://lh4.googleusercontent.com/-fj6pace2cv0/U9Jt75Kq8PI/AAAAAAAARtE/ttg-4YuCOfQ/s250/exe_empty_thumbnail.jpg";
 </script>
 <script type='text/javascript'>
 // Grid Style V2-Optimized Blogger Posts
 // Code Written By EXEIdeas (www.exeideas.com)
 // Copyright 2014. All Right Reserved.
 //<![CDATA[
var _0x8936=["\x3C","\x69\x6E\x64\x65\x78\x4F\x66","\x73\x70\x6C\x69\x74","\x6C\x65\x6E\x67\x74\x68","\x3E","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","","\x6A\x6F\x69\x6E","\x63\x68\x61\x72\x41\x74","\x20","\x2E\x2E\x2E","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x3C\x64\x69\x76\x20\x69\x64\x3D\x22\x65\x78\x65\x5F\x70\x6F\x73\x74\x5F\x44\x49\x56\x22\x3E\x3C\x69\x6D\x67\x20\x73\x72\x63\x3D\x22","\x22\x20\x77\x69\x64\x74\x68\x3D\x22","\x70\x78\x22\x20\x68\x65\x69\x67\x68\x74\x3D\x22","\x70\x78\x22\x20\x63\x6C\x61\x73\x73\x3D\x22\x65\x78\x65\x5F\x70\x6F\x73\x74\x5F\x49\x4D\x47\x22\x2F\x3E","\x3C\x68\x32\x20\x63\x6C\x61\x73\x73\x3D\x22\x65\x78\x65\x5F\x70\x6F\x73\x74\x5F\x54\x49\x54\x4C\x45\x22\x3E\x3C\x61\x20\x68\x72\x65\x66\x3D\x22","\x22\x3E","\x3C\x2F\x61\x3E\x3C\x2F\x68\x32\x3E\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x22\x65\x78\x65\x5F\x70\x6F\x73\x74\x5F\x44\x65\x73\x63\x22\x3E\x3C\x73\x70\x61\x6E\x3E","\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x3C\x2F\x73\x70\x61\x6E\x3E\x3C\x2F\x64\x69\x76\x3E"];function removeHtmlTag(_0xbb2bx2,_0xbb2bx3){if(_0xbb2bx2[_0x8936[1]](_0x8936[0])!=-1){var _0xbb2bx4=_0xbb2bx2[_0x8936[2]](_0x8936[0]);for(var _0xbb2bx5=0;_0xbb2bx5<_0xbb2bx4[_0x8936[3]];_0xbb2bx5++){if(_0xbb2bx4[_0xbb2bx5][_0x8936[1]](_0x8936[4])!=-1){_0xbb2bx4[_0xbb2bx5]=_0xbb2bx4[_0xbb2bx5][_0x8936[5]](_0xbb2bx4[_0xbb2bx5][_0x8936[1]](_0x8936[4])+1,_0xbb2bx4[_0xbb2bx5][_0x8936[3]]);} ;} ;_0xbb2bx2=_0xbb2bx4[_0x8936[7]](_0x8936[6]);} ;_0xbb2bx3=(_0xbb2bx3<_0xbb2bx2[_0x8936[3]]-1)?_0xbb2bx3:_0xbb2bx2[_0x8936[3]]-2;while(_0xbb2bx2[_0x8936[8]](_0xbb2bx3-1)!=_0x8936[9]&&_0xbb2bx2[_0x8936[1]](_0x8936[9],_0xbb2bx3)!=-1){_0xbb2bx3++;} ;_0xbb2bx2=_0xbb2bx2[_0x8936[5]](0,_0xbb2bx3-1);return _0xbb2bx2+_0x8936[10];} ;function EXEcreateSummaryAndThumb(_0xbb2bx7,_0xbb2bx8,_0xbb2bx9,_0xbb2bxa){var _0xbb2bxb=document[_0x8936[11]](_0xbb2bx7);var _0xbb2bxc=_0x8936[12]+_0xbb2bxa+_0x8936[13]+exe_img_width+_0x8936[14]+exe_img_height+_0x8936[15];var _0xbb2bxd=exe_summary_count;var _0xbb2bxe=_0xbb2bxc+_0x8936[16]+_0xbb2bx9+_0x8936[17]+_0xbb2bx8+_0x8936[18]+removeHtmlTag(_0xbb2bxb[_0x8936[19]],_0xbb2bxd)+_0x8936[20];_0xbb2bxb[_0x8936[19]]=_0xbb2bxe;} ;
 //]]>
 </script>
 </b:if>
 </b:if>


2. Ganti kode <data:post.body/> yang kedua --dan ketiga (jika ada) dengan kode ini:

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<data:post.body/>
<b:else/>
<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
<data:post.body/>
<b:else/>
<div expr:id='&quot;summary&quot; + data:post.id'><data:post.body/></div>
<b:if cond='data:post.thumbnailUrl'>
<script type='text/javascript'> EXEcreateSummaryAndThumb(&quot;summary<data:post.id/>&quot;, &quot;<data:post.title/>&quot;, &quot;<data:post.url/>&quot;, &quot;<data:post.thumbnailUrl/>&quot;); </script>
<b:else/>
<script type='text/javascript'> EXEcreateSummaryAndThumb(&quot;summary<data:post.id/>&quot;, &quot;<data:post.title/>&quot;, &quot;<data:post.url/>&quot;, exe_defaultImg); </script>
</b:if>
<script type='text/javascript'>
//<![CDATA[
var _0x4f05=["\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64","\x69\x6D\x67","\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x73\x42\x79\x54\x61\x67\x4E\x61\x6D\x65","\x6C\x65\x6E\x67\x74\x68","\x73\x72\x63","\x2F\x73","\x2D\x63","\x72\x65\x70\x6C\x61\x63\x65","\x42\x6C\x6F\x67\x31"];function resizeThumb(_0x6ad0x2,_0x6ad0x3,_0x6ad0x4){var _0x6ad0x5=document[_0x4f05[0]](_0x6ad0x2),_0x6ad0x6=_0x6ad0x5[_0x4f05[2]](_0x4f05[1]);for(var _0x6ad0x7=0;_0x6ad0x7<_0x6ad0x6[_0x4f05[3]];_0x6ad0x7++){_0x6ad0x6[_0x6ad0x7][_0x4f05[4]]=_0x6ad0x6[_0x6ad0x7][_0x4f05[4]][_0x4f05[7]](/\/s72\-c/,_0x4f05[5]+_0x6ad0x3+_0x4f05[6]);} ;} ;resizeThumb(_0x4f05[8],exe_img_width);//]]>
</script>
<a class='exe_readmore' expr:href='data:post.url'>Read More...</a>
</b:if>
</b:if>


3. Save!

Cara Membuat Auto Read More Grid Style untuk Blog Foto & Video di atas utamanya bagi template blog yang halaman depannya belum berupa auto readmore, terutama lagi template bawaan blogger.

Tips membuat jump break otomatis "biasa" bisa dilihat di Cara Membuat Auto Readmore yang sudah dishare sebelumnya. Good Luck & Happy Bpggoing! (http://www.contohblog.com).*

Labels:

Sunday, 23 October 2016

Kode HTML/JavaScrip Widget Recent Posts di Sidebar Blog

Kode HTML/JavaScrip Widget Recent Posts di Sidebar Blog

UNTUK menampilkan widget recent post, latest posts, atau posting terbaru di sidebar blog, kita bisa menggunakan widget bawaan blogger, yaitu Feed.

Tinggal Add a Gadget > Pilih Feed > masukkan alamat blog > Continue dan seterusnya. Namun, jika bermasalah, kita bisa menggunakan kode berikut ini.

Ada dua kode yang CB simpan dan share di sini, yaitu kode recent post dengan gambar (image thumbnail) dan judul doang, yang dibagikan Help Logger.

Cara Memasangnya:

1. Layout > Add a Gadget > pilih HTML/JavaScript
2. Isi judul
3. Masukkan salah satu kode ini dan Save!


KODE #1 RECENT POST THUMBNAIL IMAGE

RECENT POST THUMBNAIL

<style>
img.recent_thumb {padding:1px;width:72px;height:72px;border:0; float:left;margin:0 10px 5px 1px;}.recent_posts_with_thumbs {float: right;width: 100%;min-height: 72px;margin: 5px 10px 5px 0px;padding: 0;font-size:12px;}ul.recent_posts_with_thumbs li {min-height: 80px;background:none;padding:5px 0;background:none;}.recent_posts_with_thumbs a {text-decoration:none;font-weight:700;font-size: 12px;}.recent_posts_with_thumbs strong {font-size:10px;}i {font-style: normal;font-weight: 400;font-size: 11px;}
</style>
<script>
function showrecentpostswiththumbs(json) {document.write('<ul class="recent_posts_with_thumbs">'); for (var i = 0; i < numposts; i++) {var entry = json.feed.entry[i];var posttitle = entry.title.$t;var posturl;if (i == json.feed.entry.length) break;for (var k = 0; k < entry.link.length;k++){
if(entry.link[k].rel=='replies'&&entry.link[k].type=='text/html'){var commenttext=entry.link[k].title;var commenturl=entry.link[k].href;}
if (entry.link[k].rel == 'alternate') {posturl = entry.link[k].href;break;}}var thumburl;try {thumburl=entry.media$thumbnail.url;}catch (error)
{
s=entry.content.$t;a=s.indexOf("<img");b=s.indexOf("src=\"",a);c=s.indexOf("\"",b+5);d=s.substr(b+5,c-b-5);if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")){
thumburl=d;} else thumburl='http://lh4.ggpht.com/_IjrRiI_bVb0/TOCYn1fMjII/AAAAAAAAF24/5Fvv-HJqh74/loading-2.gif';
}
var postdate = entry.published.$t;var cdyear = postdate.substring(0,4);var cdmonth = postdate.substring(5,7);var cdday = postdate.substring(8,10);var monthnames = new Array();monthnames[1] = "Jan";monthnames[2] = "Feb";monthnames[3] = "Mar";monthnames[4] = "Apr";monthnames[5] = "May";monthnames[6] = "Jun";monthnames[7] = "Jul";monthnames[8] = "Aug";monthnames[9] = "Sep";monthnames[10] = "Oct";monthnames[11] = "Nov";monthnames[12] = "Dec";document.write('<li class="clearfix">');
if(showpostthumbnails==true)
document.write('<img class="recent_thumb" src="'+thumburl+'"/>');
document.write('<b><a href="'+posturl+'" target ="_top">'+posttitle+'</a></b><br>');

    if ("content" in entry) {
      var postcontent = entry.content.$t;}
    else
    if ("summary" in entry) {
      var postcontent = entry.summary.$t;}
    else var postcontent = "";
    var re = /<\S[^>]*>/g;
    postcontent = postcontent.replace(re, "");
if (showpostsummary == true) {
      if (postcontent.length < numchars) {
          document.write('<i>');
         document.write(postcontent);
          document.write('</i>');}
      else {
          document.write('<i>');
         postcontent = postcontent.substring(0, numchars);
         var quoteEnd = postcontent.lastIndexOf(" ");
         postcontent = postcontent.substring(0,quoteEnd);
         document.write(postcontent + '...');
          document.write('</i>');}
}

var towrite='';var flag=0;
document.write('<br><strong>');

if(showpostdate==true) {towrite=towrite+monthnames[parseInt(cdmonth,10)]+'-'+cdday+' - '+cdyear;flag=1;}

if(showcommentnum==true)
{
if (flag==1) {towrite=towrite+' | ';}
if(commenttext=='1 Comments') commenttext='1 Comment';
if(commenttext=='0 Comments') commenttext='No Comments';
commenttext = '<a href="'+commenturl+'" target ="_top">'+commenttext+'</a>';
towrite=towrite+commenttext;
flag=1;
;
}

if(displaymore==true)
{
if (flag==1) towrite=towrite+' | ';
towrite=towrite+'<a href="'+posturl+'" class="url" target ="_top">Read more&#187;&#187;</a>';
flag=1;
;
}
document.write(towrite);
document.write('</strong></li>');
if(displayseparator==false)
if (i!=(numposts-1))
document.write('<hr color="#d9f1fa" size=0.5>');
}document.write('</ul>');

}
</script>
<script>
var numposts = 5;var showpostthumbnails = true;var displaymore = false;var displayseparator = true;var showcommentnum = false;var showpostdate = false;var showpostsummary = true;var numchars = 90;
</script><script src="/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentpostswiththumbs">
</script><div class="clear"/></div>


KODE #2 RECENT POST JUDUL DOANG:

Widget Recent Posts di Sidebar Blog


<div id="hlrpsb">
<script style="text/javascript">
function showrecentposts(json) {

  for (var i = 0; i < numposts; i++) {
    var entry = json.feed.entry[i];
    var posttitle = entry.title.$t;
    var posturl;
    if (i == json.feed.entry.length) break;
    for (var k = 0; k < entry.link.length; k++) {
      if (entry.link[k].rel == 'alternate') {
        posturl = entry.link[k].href;
        break;
      }
    }
    posttitle = posttitle.link(posturl);
    var readmorelink = "&raquo;&raquo;";
    readmorelink = readmorelink.link(posturl);
    var postdate = entry.published.$t;
    var cdyear = postdate.substring(0,4);
    var cdmonth = postdate.substring(5,7);
    var cdday = postdate.substring(8,10);
    var monthnames = new Array();
    monthnames[1] = "Jan";
    monthnames[2] = "Feb";
    monthnames[3] = "Mar";
    monthnames[4] = "Apr";
    monthnames[5] = "May";
    monthnames[6] = "Jun";
    monthnames[7] = "Jul";
    monthnames[8] = "Aug";
    monthnames[9] = "Sep";
    monthnames[10] = "Oct";
    monthnames[11] = "Nov";
    monthnames[12] = "Dec";
    if ("content" in entry) {
      var postcontent = entry.content.$t;}
    else
    if ("summary" in entry) {
      var postcontent = entry.summary.$t;}
    else var postcontent = "";
    var re = /<\S[^>]*>/g;
    postcontent = postcontent.replace(re, "");
    if (!standardstyling) document.write('');
document.write('<div class="bbrecpost2">');
    document.write('<span>');
    if (standardstyling) document.write('');

    document.write(posttitle);
    if (standardstyling) document.write('');
    if (showpostdate == true) document.write(' - ' + cdday + ' ' + monthnames[parseInt(cdmonth,10)] + ' ' + cdyear);
    if (!standardstyling) document.write('<div class="bbrecpostsum"">');
    if (standardstyling) document.write('');
    if (showpostsummary == true) {
      if (standardstyling) document.write('');
      if (postcontent.length < numchars) {
         if (standardstyling) document.write('<i>');
         document.write(postcontent);
         if (standardstyling) document.write('</i>');}
      else {
         if (standardstyling) document.write('<i>');
         postcontent = postcontent.substring(0, numchars);
         var quoteEnd = postcontent.lastIndexOf(" ");
         postcontent = postcontent.substring(0,quoteEnd);
         document.write(postcontent + '... ' + readmorelink);
         if (standardstyling) document.write('</i>');}
}
    if (!standardstyling) document.write('</div>');
document.write('</span>');
document.write('</div>');
    if (standardstyling) document.write('');
}
if (!standardstyling) document.write('<div class="bbwidgetfooter">');
if (standardstyling) document.write('');
document.write('');
if (!standardstyling) document.write('/div');

}
</script>
<script style="text/javascript">var numposts = 5;var showpostdate = false;var showpostsummary = false;var numchars = 100;var standardstyling = true;</script>
<script src="/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts"></script></div>
<noscript>Oops! Make sure JavaScript is enabled in your browser.</noscript>
<style type=text/css>
#hlrpsb a {color: #0B3861; font-size: 13px;}
#rpdr, #rpdr a {color:#808080;}
.bbrecpost2 {
padding-top:6px;
padding-bottom:6px;
border-bottom: 1px #cccccc dotted; }
</style>

Catatan:
Untuk mengatur posisi widget recent post agar muncul hanya di halaman dalam (single page), gunakan Tag Kondisional.

Recent post memang sebaiknya muncul hanya di halaman dalam karena di halaman depan sudah ada posting terbaru auto readmore.

Good Luck & Happy Blogging! (www.contohblog.com).*

Labels:

Friday, 21 October 2016

Cara Menggunakan Template Blog Responsive

Cara Menggunakan Template Blog Responsive
Cara Menggunakan Template Blog Responsive. Nonaktifkan remplate mobile bawaan blogger.

BANYAK blogger pemula yang melewatkan satu langkah yang membuat blognya tidak mobile-friendly alias tidak responsive, padahal menggunakan template blog responsive.

Tampilan blog tidak seperti demo, padahal templatenya sama.

Untuk menghindari hal tersebut, agar tampilan blog responsive atau mobile-friendly seperti blog demonya, lakukan setting di dashboard dengan menonaktifkan remplate mobile bawaan blogger seperti gambar berikut ini.

Cara Setting Dashboard Blogger yang Menggunakan Template Responsive

1. Klik Template
2. Klik icon Gear
3. Klik "No. Show desktop template on mobile device"

menonaktifkan remplate mobile bawaan blogger

Jika template mobile bawaan blogger tidak dinonaktifkan, maka template responsive tidak akan muncul di versi mobile, karena yang muncul adalah templata bawaan blogger.

Jadi, bagi Anda yang baru membuat blog, lalu mengganti templatenya dengan template blog seo friendly dan responsive, jangan lupa setting dashboard seperti di atas, kecuali ada panduan lain dari desainer blogger.

Template responsive adalah template blog yang merespons ukuran layar perangkat yang digunakan untuk membuka sebuah blog. Ukuran standar mobile-device adalah 480 Pixel.

Untuk melihat atau mengetes tampilan blog di berbagai ukuran layar, kita bisa gunakan Troy Labs Daum atau Responsive Design.

Good Luck & Happy Blogging! (www.contohblog.com).*

Labels:

Wednesday, 19 October 2016

Cara Hapus 7 Elemen (Widget) Template Blog yang Tidak Diperlukan

Cara Hapus 7 Elemen (Widget) Template Blog yang Tidak Diperlukan
Cara Hapus 7 Elemen (Widget) Template Blog yang Tidak Diperlukan

SEDIKITNYA ada 7 elemen Template Blog yang Tidak Diperlukan. Ini berdasarkan pengalaman dan "pengamatan" terhadap blognya blogger profesional.

Widget atau elemen ini tidak diperlukan karena tidak digunakan mayoritas pembaca dan hanya membuat loading blog tambah berat.

Ke-7 Elemen Template Blog yang Tidak Diperlukan sehingga harus dipahus atau tidak dipasang itu adalah
  1. Navbar
  2. Footer Blog Posts
  3. Showing posts with label
  4. Subscribe to Post Atom
  5. Quickedit
  6. Statistik Pengunjung
  7. Blog Pager Older Post - Home - Newer Posts

1. Cara Menghapus Navigation Bar (Navbar)

Bar Navigasi ini bawaan blogger. Ada di bagian teratas blog. Jika pembaca sedang login ke akun bloggernya, maka navbar ini muncul. Jarang digunakan, maka hapus saja.

Caranya:

  • Klik “Layout” 
  • Klik Edit widget “Navbar” 
  • Klik 'Off"
Navbar Blogger


2. Elemen Footer Blog Posts

Jika blog Anda bukan blog berita yang tidak membutuhkan elemen waktu posting (timestamp), maka elemen ini bisa disembunyikan di widget blog posts.

Demikian pula elemen lain, seperti lokasi, author box, dll. Caranya:

  • Klik Layout
  • Edit "Blog Posts"
  • Lepas semua centang yang ada di "Page Post option". Kalaupun ada yang dicentang, hanya lima saja, sebagaimana dalam gambar berikut ini:

konfigurasi widget blog posts

Baca: Cara Setting Dashboard Blogger

3. Cara Hapus "Showing posts with label..." 

Tulusan Showing posts with label...  ini bawaan blogger. Muncul di atas halaman label ketika salah satu Label diklik.

Showing posts with label


Untuk menghilangkannya, ganti kode  <b:includable id='status-message'> dengan kode yang ada di posting ini.

4.  Cara Menghapus "Subscribe to Post Atom" 

Ini juga link teks bawaan blogger. Muncul di bawah postingan blog, bahkan di halaman depan. Jarang bahkan tidak digunakan user. Sebaiknya dihapus aja.

Subscribe to Post Atom

Cara menghapusnya:

  • Template > Edit HTML
  • Cari kode berikut ini: <b:include data='feedLinks' name='feedLinksBody'/>
  • Hapus!



Satu lagi, yaitu "Subscribe to Comments (Atom". Cara menghapusnya ada di posting ini

5. Hapus Quickedit

Ini kode obeng dan tang. Bukan hanya tidak diperlukan, tapi juga mengganggu keindahan tampilan blog dan mengurangi skor SEO di Chkme.

Icon dan kode ini muncul setiap kali kita menambahkan widget. Jadi, setelah menambahkan widget, langsung hapus di template. Caranya:
  • Template > Edit HTM
  • Temukan dan hapus semua kode  <b:include name=’quickedit’/>

6. Statistik Pengunjung

Blogger pemula biasanya pasang statistik pengunjung. Entah apa maksudnya, mau pamer juga malah "bikin malu" kalo pengunjungnya dikit.

Widget statistik pengunjung ini tidak perlu dipasang, apalagi kalo sampai memasang kode script dari situs lain semacam Histats dan sejenisnya. Hanya memperberat loading blog.

7. Hapus Blog Pager: Older Post - Home - Newer Posts

Ini juga bawaan blogger. Muncul di bagian bawah posting atau di bawah kotak komentar.  Hapus saja atau ganti karena jarang atau tidak digunakan user.

Older Post - Home - Newer Posts


Anda bisa Menggantinya dengan Judul Posting biar lebih SEO & User Friendly, atau menghapusnya sama sekali.

Untuk menyembunyikan atau menghilangkannya:

  • Template > Edit HTML
  • Simpan kode berikut ini di atas kode ]]></b:skin>

#blog-pager,.blog-pager {display:none;}

Untuk menghapusnya sama sekali, maka hapus kode ini: 

<b:include name='nextprev'/> 

Demikian beberapa Elemen/Widget Template Blog yang Tidak Diperlukan sehingga harus disembunyikan atau dihapus. Baca juga Daftar Widget Wajib Pasang di Blog.

Good Luck & Happy Blogging! (www.contohblog.com).*

Labels:

Saturday, 15 October 2016

Cara Membuat Menu Navigasi Responsive di Atas Header Blog

Cara Membuat Menu Navigasi Responsive di Atas Header Blog.

CB sudah beberapa kali share cara  membuat menu navigasi responsive di atas header blog. Jika menemukan topbar menu terbaru, apalagi terbaik, cb tes, coba, berhasil, dan share di sini.

Kali ini dari situs templat belajar CB selama ini, yaitu W3C Schools. Sudah dicoba dan berhasil. Menu navigasi atas header blog ini masih bisa dimodifikasi, terutama soal warna backgroundnya.

Ini penampakannya versi mobile dan desktop:

navigasi menu versi mobile
navigasi menu versi mobile

navigasi menu versi desktop
navigasi menu versi desktop


Cara Membuat Menu Navigasi Responsive

Cara memasang dan menerapkannya juga ada di laman demo.

1. KODE CSS
Pasang di atas kode ]]></b:skin>

ul.topnav {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
}
ul.topnav li {float: left;}
ul.topnav li a {
    display: inline-block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 17px;
}
ul.topnav li a:hover {background-color: #555;}
ul.topnav li.icon {display: none;}
@media screen and (max-width:680px) {
  ul.topnav li:not(:first-child) {display: none;}
  ul.topnav li.icon {
    float: right;
    display: inline-block;
  }
}
@media screen and (max-width:680px) {
  ul.topnav.responsive {position: relative;}
  ul.topnav.responsive li.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  ul.topnav.responsive li {
    float: none;
    display: inline;
  }
  ul.topnav.responsive li a {
    display: block;
    text-align: left;
  }
}

2. KODE HTML
Pasang di bawah kode <body>

<ul class="topnav" id="myTopnav">
  <li><a href="#home">Home</a></li>
  <li><a href="#news">News</a></li>
  <li><a href="#contact">Contact</a></li>
  <li><a href="#about">About</a></li>
  <li class="icon">
    <a href="javascript:void(0);" onclick="myFunction()">&#9776;</a>
  </li>
</ul>

3. KODE JAVASCRIPT
Pasang di atas kode </body>

<script>
function myFunction() {
    var x = document.getElementById("myTopnav");
    if (x.className === "topnav") {
        x.className += " responsive";
    } else {
        x.className = "topnav";
    }
}
</script>

4. Save Template!

Demikian  Cara Membuat Menu Navigasi Responsive di atas Header Blog. Model lainnya ada di Indeks Top Menu.

Good Luck & Happy Blogging! (http://www.contohblog.com).*

Labels: