Langsung ke konten utama

Tampilan Posting Grid dengan Thumbnail pada Blogger

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/AVvXsEgXuMVjKmgvSkrHGxCL8J7sT0IHUOc8juKwc2xk5XEXKsvK9Ie13hR3D_JVPu1bnrtGYGUEK2Al7Ea2C83tHUyy9c1wWcG6CUcsw9Pd0LdFYiGiI_GoAgkMSXMEdVtTKHIkW_T4EfXWPr56/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 != &quot;static_page&quot;'>
    <b:if cond='data:blog.pageType != &quot;item&quot;'>
        <div expr:id='&quot;summary&quot; + data:post.id'>
            <data:post.body/>
        </div>
        <script type='text/javascript'>createSummaryAndThumb(&quot;summary<data:post.id/>&quot;,&quot;<data:post.url/>&quot;);</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 == &quot;item&quot;'>
    <data:post.body/>
</b:if>
<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
    <data:post.body/>
</b:if>
Langkah 6. Pilih salah satu kode style yang sobat suka lalu Paste diatas </head>

Tampilan Pinterest

Tampilan Pinterest



Tampilan Grid Simple

Tampilan Grid Simple

Langkah 7. Pratinjau terlebih dahulu. Apabila oke maka sobat dapat Simpan Template.
Selamat Mencoba.

Komentar

Postingan populer dari blog ini

Juggernaut - Relic Blade of the Kuur-Ishiminari

This is mod sword of Juggernaut - Relic Blade of the Kuur-Ishiminari Dota 2 Reborn common weapon. This item originally from Lost Treasure of the Ivory Isles (Series 3). Green beautiful ambient effect will shown when idle and especially if Yurnero using his 1st skill "blade fury". Mod type: Standart . Hope you guys like this mod and support our favorite game in steam community market. The essence of gaming is fun. No money? Just mods. Enjoy the game and boost your MMR! For installation mod guide: How to install mods with vpk creator . Juggernaut - Relic Blade of the Kuur-Ishiminari

Terrorblade - Foulfell Corruptor

Terrorblade - Foulfell Corruptor mod mythical item Dota 2 Reborn from Treasure of the Emerald Revival with ultra rare chance to get it. This set has ambient effect on the weapon, Blades of the Foulfell Corruptor. This set items consists of: Armor of the Foulfell Corruptor, Demon Form of the, Foulfell Corruptor, Blades of the Foulfell Corruptor, Wings of the Foulfell Corruptora and Helm of the Foulfell Corruptor. It can be combine with  Terrorblade - Fractal Horns of Inner Abysm arcana mod. Hope you guys like this mod and support our favorite game in steam community market. No money? Just mods.The essential gaming is fun. Enjoy the game and boost your mmr!

Axe - Snowpack Savage

Mod skin Axe - Snowpack Savage rare item Dota 2 Reborn from Fortivus 2017 Treasure. This item consists of : Axe of the Snowpack Savage, Beard of the Snowpack Savage, Armor of the Snowpack Savage, Belt of the Snowpack Savage and Prize of the Snowpack Savage . Mod type: Standart . Hope you guys like this mod and support our favorite game in steam community market. The essence of gaming is fun. No money? Just mods. Enjoy the game and boost your MMR! For installation mod guide: How to install mods with vpk creator . Axe - Snowpack Savage