cara membuat related post di blogspot

Related post tanpa gambar kecil (thumbnails), berikut kodenya :

Kode CSS

kode CSS dipasang di atas kode </head>
<!--awal-->
<style type='text/css'>
#related-post-satu {font-family:Verdana, Arial, Helvetica, sans-serif;}
#related-post-satu h5 {
font-size:18px;
border-top:2px solid #000000;
background-color:#00FF00;
}
#related-post-satu ul {
font-size:10px;
list-style:none;
width:100%;
height:auto;
margin:0;
padding:0;
background:#;
}
#related-post-satu ul li {margin:0;padding:0;width:100%;}
#related-post-satu ul li a {
color:#000000;
list-style:none;
text-align:justify;
padding:10px;
display:block;
text-transform:uppercase;
}
#related-post-satu ul li a:link, ul li a:active{background:#DCDCDC;}
#related-post-satu ul li a:visited{color:#ffffff;background:#000000;}
</style>
<!--akhir-->

Kode XML+JS Tampilan Desktop

Cari kode dibawah ini lalu paste kode di bawahnya :

<!-- Then use the post body as the schema.org description, for good G+/FB snippeting. -->
<div class='post-body entry-content' expr:id='&quot;post-body-&quot; + data:post.id' expr:itemprop='(data:blog.metaDescription ? &quot;&quot; : &quot;description &quot;) + &quot;articleBody&quot;'>
<data:post.body/>

Paste-kan kode berikut tepat dibawah kode diatas :

<!-- Related Post -->
<div id='related-post-satu'>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<h5>Artikel Terkait :</h5>
<font color='#ffffff' size='1px'>
<b:loop values='data:post.labels' var='label'>
<data:label.name/>
<b:if cond='data:label.isLast != &quot;true&quot;'>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<script expr:src='&quot;/feeds/posts/default/-/&quot; + data:label.name + &quot;?alt=json-in-script&amp;callback=related_results_labels&amp;max-results=30&quot;' type='text/javascript'/>
</b:if>
</b:loop>
</font>
</b:if>
<script type='text/javascript'> removeRelatedDuplicates(); printRelatedLabels();
</script>
</div>
<!-- Related Post -->

Kode XML+JS Tampilan Mobile

<div class='post-footer-line post-footer-line-2'>
<b:if cond='data:top.showMobileShare'>
<div class='mobile-link-button goog-inline-block' id='mobile-share-button'>
<a href='javascript:void(0);'><data:shareMsg/></a>
</div>
</b:if>
<b:if cond='data:top.showDummy'>
<div class='goog-inline-block dummy-container'><data:post.dummyTag/></div>
</b:if>
</div>

Paste-kan kode berikut tepat dibawah kode diatas :

<!-- Related Post -->
<div id='related-post-satu'>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<h5>Artikel Terkait :</h5>
<font color='#ffffff' size='1px'>
<b:loop values='data:post.labels' var='label'>
<data:label.name/>
<b:if cond='data:label.isLast != &quot;true&quot;'>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<script expr:src='&quot;/feeds/posts/default/-/&quot;
+ data:label.name + &quot;?alt=json-in-script&amp;callback=related_results_labels&amp;
max-results=30&quot;' type='text/javascript'/>
</b:if>
</b:loop>
</font>
</b:if>
<script type='text/javascript'> removeRelatedDuplicates(); printRelatedLabels();
</script>
</div>
<!-- Related Post -->
Artikel Terkait :
bagikan excel tutorial

Tidak ada komentar:

Posting Komentar

Silakan Berikan Review Anda Tentang Jasa Digital Computer Pada Kolom Komentar, Terimakasih