Tampilan posting pada homepage blogger secara grid dengan thumbnail ini sangat menarik untuk diterapkan pada blog sobat. Tampilan ini sangat cocok untuk blog yang memiliki gambar/photo pada setiap postingannya. Mungkin blog dengan niche berita, photografi, dll. Walaupun sebenarnya sekarang sobat dapat dengan mudah menggunakan tampilan dengan template dinamic yang notabene memiliki tampilan grid pada homepage-nya. Kalau sobat tidak mau repot sobat pilih saja template dinamic yang tersedia pada costumise template.
Mungkin sobat dapat lihat dulu:
a.)
Tampilan Posting Datar dengan Thumbnail b.)
Tampilan Posting ala Majalah/Korang dengan Thumbnail Kelebihan: Adanya Tampilan seperti Pinterest Blog terlihat lebih elegan dan profesional Sebelum Memasang Sebelum sobat memasang tampilan ini, ada baiknya sobat download template sobat terlebih dahulu.
Backup Template : Pada dashboard blogger --> Template --> Cadangkan/Pulihkan (Pojok Kanan Atas) --> Unduh Template Lengkap
Cara Memasang:
Langkah 1. Pada
Dashboard blogger pergi ke -->
Template -->
Edit HTML Langkah 2. Klik kiri disembarang kotak Edit HTML dan cari (
CTRL+F ) kode:
</head> Langkah 3. Copy dan
Paste kode berikut diatas/sebelum
</head> :
<script type='text/javascript'> posts_no_thumb_sum = 100; posts_thumb_sum = 100; </script> <script type='text/javascript'> //<![CDATA[ function removeHtmlTag(strx,chop){ if(strx.indexOf("<")!=-1) { var s = strx.split("<"); for(var i=0;i<s.length;i++){ if(s[i].indexOf(">")!=-1){ s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length); } } strx = s.join(""); } chop = (chop < strx.length-1) ? chop : strx.length-2; while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++; strx = strx.substring(0,chop-1); return strx+'...'; } function createSummaryAndThumb(pID, pURL, pTITLE){ var div = document.getElementById(pID); var imgtag = ""; var img = div.getElementsByTagName("img"); var summ = posts_no_thumb_sum; if(img.length>=1) { imgtag = '<span class="posts-thumb" style="float:left; margin-right: 10px;"><a href="'+ pURL +'"><img src="'+img[0].src+'" /></a></span>'; summ = posts_thumb_sum; } else { imgtag = '<span class="posts-thumb" style="float:left; margin-right: 10px;"><a href="'+ pURL +'" title="'+ pTITLE+'"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvZPDSCdKTl4nfPyTG6kYucDAqa-c-wj9GqrMZxKa4NN2KKWZ462TTml2Q6O1y9ya4P2Ll3TSuFYi1Cb7tK0eGj3Or8wjfOqgRr1KwXq5T46gwQqDvCcIyfvjXk8ZPp8LDjvbFWbeOWuAC/s1600/sorry-image-not-available.png" style="margin-top: -30px;" /></a></span>'; summ = posts_thumb_sum; } var summary = imgtag + '<a href="'+ pURL +'"><div class="post-summary-text">' + removeHtmlTag(div.innerHTML,summ) + '</div></a>'; div.innerHTML = summary; } //]]> </script> Langkah 4. Selanjutnya cari (CTRL+F) kode berikut:
<data:post.body/> Pilih kode yang
kedua. Langkah 5. Lalu gantikan kode diatas dengan kode berikut:
<b:if cond='data:blog.pageType != "static_page"'> <b:if cond='data:blog.pageType != "item"'> <div expr:id='"summary" + data:post.id'> <data:post.body/> </div> <script type='text/javascript'>createSummaryAndThumb("summary<data:post.id/>","<data:post.url/>");</script> <b:if cond='data:post.allowComments'> <a class='comment-bubble' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'> <data:post.numComments/> </a> </b:if> </b:if> </b:if> <b:if cond='data:blog.pageType == "item"'> <data:post.body/> </b:if> <b:if cond='data:blog.pageType == "static_page"'> <data:post.body/> </b:if> Langkah 6. Pilih salah satu kode style yang sobat suka lalu Paste diatas
</head>
Tampilan Pinterest <b:if cond='data:blog.pageType != "static_page"'> <b:if cond='data:blog.pageType!= "item"'> <style> #blog-pager { clear: both; position: absolute; bottom: 0px; left: 0px; } .blog-feeds { display: none; } .post { height: auto; width: 100%; padding: 0px !important; margin: 0px 0px 30px; display: inline-block; text-decoration: none; } h3.post-title a{ font-size: 95%; font-family: 'Open Sans Condensed', sans-serif; text-transform: uppercase; padding: 0px; color: #fff; text-shadow: 3px 2px 2px #222; font-weight: bold; } h3.post-title, .comments h4 { margin: 0px !important; text-align: center; padding: 10px 0px; position: absolute; top: 10px; width: 100%; z-index: 200; } .post-header { display: none; } .date-header { visibility: hidden; height: 0px !important; width: 0px !important; padding: 0px !important; margin: 0px !important; } .posts-thumb { width: 100%; height: auto; overflow: hidden; clear: both; } .post-body { overflow: hidden; position:relative; } .post-body a { text-decoration: none; } .post-body img { display: block; width: auto; height: auto; max-width: 100%; max-height: none; min-width: 100%; min-height: auto; margin: 0px; padding: 0; border: none; outline: none; position: relative; } .post-summary-text { cursor: pointer; background-color: rgba(44, 77, 163, 0.8); color:#fff; font-size:120%!important; font-family: 'Open Sans Condensed', sans-serif; clear:both; overflow:hidden; padding:25% 10% 0%; left: 0; position: absolute; text-align: center; vertical-align: bottom; text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1); top: 0; transform: scale(1); opacity: 0; z-index: 10; height: 100%; transition: all 300ms ease-out 0s; } .post-summary-text:hover { opacity: 1; } .post-footer { display: none; } a.comment-bubble { color: #fff; text-decoration: none; font-size: 120%; right: 5px; z-index: 222; position: absolute; top: 5px; text-shadow: 1px 2px 1px #333; font-family: 'Open Sans Condensed', sans-serif; } a.comment-bubble:before { content: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTiEpvCbkpxLNXLELwmwgc-pV573HBrbH2WEOGqERkBRVp43r-AEvaYoWpeCNMbuz-f2rZnPUL14sEpoLQ8_JbEQ8oonolFOpyHZPz4pdLet5TTyIOVbEjRv6OTOnwPptFjy6taE25mJUA/s1600/heart-active.png); } .main-inner .column-center-inner { -moz-column-count: 3; -moz-column-gap: 1px; -webkit-column-count: 3; -webkit-column-gap: 1px; column-count: 3; column-gap: 1px; width: 100%; padding: 0px !important; } </style></b:if></b:if> <link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'/>
Tampil/Sembunyi Kode
Tampilan Grid Simple <b:if cond='data:blog.pageType != "static_page"'> <b:if cond='data:blog.pageType!= "item"'> <style> #blog-pager { clear:both; } .post { height: auto; width:30.8%; overflow: hidden; display:inline-block; text-decoration:none; float:left; margin:0 1.1% 2%; padding: 0px !important; } h3.post-title a { font-size:75%; font-family: 'Open Sans Condensed', sans-serif; text-transform:uppercase; padding:0; color:#444; } h3.post-title { height: 26px; text-align:center; width:100%; margin:0!important; padding-bottom: 4%; } .date-header { display: none; } .post-body a { text-decoration: none; } .posts-thumb { width:100%!important; height:190px!important; overflow:hidden; clear:both; } .post-body img { display:block; width:100%!important; height:auto!important; max-width:800px!important; max-height:400px!important; min-width:190px!important; min-height:190px!important; border:none; outline:none; position:relative; margin: 0px; padding:0; } .post-summary-text { color:#777; font-size:100%!important; font-family: 'Open Sans Condensed', sans-serif; text-align:center; clear:both; overflow:hidden; margin:5px 0 0; padding:7% 10%; } a.comment-bubble { color:#fff; text-decoration:none; font-size:100%; font-weight: bold; right:10px; position:absolute; top:165px; text-shadow:1px 2px 1px #333; font-family: 'Open Sans Condensed', sans-serif; } a.comment-bubble:before { content: "Comments: "; } .post-header,.post-footer { display:none; } </style></b:if></b:if> <link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'/> Tampil/Sembunyi Kode Langkah 7. Pratinjau terlebih dahulu. Apabila oke maka sobat dapat
Simpan Template .
Selamat Mencoba.
Tidak ada komentar:
Posting Komentar