How to Make a Responsive Grid Featured Post Mode

Featured Post is to display the article to be at the top. This widget is perfect for those of you who want to display past articles to be the Top or at the top of your front page. Because the past article is often ignored by your blog visitors, so for that past article could be read by visitors too, it is recommended to install this widget.

Usually, when you see a featured post, it must be in the form of a Slide, but this time it's different. This time the article can be adjusted based on the label. This Featured Post displays one image, there is a label or category right above it and some of your articles match the label you want to display.


Featured Post as I share this time, is usually used on anime blogs/websites. Please also note that most anime webs use grids in their posts, this featured post might be perfect for those of you who have anime blogs/websites. I will give a demo just in the form of an image right near the end of this post, first notice if you are interested in this widget please install it on your blog. Ok, go straight to the manufacturing process.

How to Create a Featured Post Mode Grid for an Anime Blog

First step :

1. Open Blogger - Then Login
2. Dashboard - Theme.
3. Select Edit HTML.

Making process :

1. Find the code]]> </ b: skin> or </style>
2. Copy & Paste the following code and place it above the code]]> </ b: skin> or</style>
.featured #md_fpost98 img{margin:0;padding:0;width:150px;height:195px;overflow:hidden}
.featured ul#md_fpost98 h2{color:#fff;bottom:-10px;background:rgba(17,17,17,0.6);width:140px;font-weight:500;padding:3px 5px;font-size:13px;line-height:20px;position:absolute;height:25px;transition:.3s linear;text-align:center}
.featured ul#md_fpost98 h2:hover{height:65px;transition:.3s linear}
.featured .mdinc p{display:none}
.featured ul#md_fpost98{list-style:none;margin:0;padding:5px 0 0;overflow:hidden;border-top:none}
.inf-link{font-size:11px;padding:0 5px;border-radius:2px;position:absolute;bottom:10px;right:-5px}
.featured #md_fpost98 a{color:#64707a;transition:all .3s;display:block}
.featured .md_sum{font-size:13px;color:999}
.featured .mdinc{position:absolute;top:0;right:0;margin:5px;border-radius:5px;padding:5px;background:rgba(17,17,17,0.6);color:#FFF;font-size:12px;font-family:arial,sans-serif}
.featured #md_fpost98 li{margin:5px;padding:0;position:relative;display:inline-block;transition:all .3s;overflow:hidden}
@media screen and (max-width:640px){
  .featured #md_fpost98 li{float:left;width:46%}
  .featured #md_fpost98 img{width:auto;height:auto}
}
3. Jika sudah? Temukan lagi kode </body>
4. Copy & Paste kode berikut ini dan letakkan diatas kode </body>
<b:if cond="data:blog.url == data:blog.homepageUrl">
<script type="text/javascript">
$('#md_fpost98 img').each(function(){$(this).attr('src',$(this).attr('src').replace(/\/s[0-9]+(\-c)?\//,'/w150-h195-c/'))});
</script>
</b:if>
5. Jika sudah? silakan anda Simpan Tema.
6. Selanjutnya - Buka Tata Letak.
7. Tambahkan Gadget - Kemudian Pilih "HTML/Java Script".
8. Copy & Paste kode berikut ini, dan letakkan pada kolom HTML/Java Script.
<div class='featured'><ul id='md_fpost98'>
<script type='text/javaScript'>
var randomfpost_number=4;var randomfpost_chars=0;var randomfpost_details="yes";var randomfpost_comments="Comment";var randomfpost_commentsd="no";var randomfpost_current=[];var total_randomfpost=0;var randomfpost_current=new Array(randomfpost_number);function randomfpost(a){total_randomfpost=a.feed.openSearch$totalResults.$t}document.write('<script type="text/javascript" src="/feeds/posts/default/-/Bahasa Indonesia?alt=json-in-script&max-results=0&callback=randomfpost"><\/script>');function getvalue(){for(var e=0;e<randomfpost_number;e++){var g=false;var h=get_random();for(var f=0;f<randomfpost_current.length;f++){if(randomfpost_current[f]==h){g=true;break}}if(g){e--}else{randomfpost_current[e]=h}}}function get_random(){var b=1+Math.round(Math.random()*(total_randomfpost-1));return b};
</script>
<script type='text/javaScript'>
function md_fpost(j){for(var p=0;p<randomfpost_number;p++){var n=j.feed.entry[p];var s=n.title.$t;if("content" in n){var m=n.content.$t}else{if("summary" in n){var m=n.summary.$t}else{var m=""}}for(var q=0;q<n.link.length;q++){if("thr$total" in n){var l=n.thr$total.$t+" "+randomfpost_comments}else{l=randomfpost_commentsd}if(n.link[q].rel=="alternate"){var o=n.link[q].href;if("media$thumbnail" in n){var r=n.media$thumbnail.url}else{r="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5Kztxq0nx3eL0omo2jymqfrOhFziQ6FD1HVVIDXLkayC-rm7gAXXA3-9FGceT_6mRgRAE8TEc5xQMKg1qdaqMadYfG1TXaqiFTmR9EvbLWeAWplDyjRWECrnP2ZrvnXv1Hbescyup/s1600/no-image.png"}}}document.write("<li>");document.write('<a href="'+o+'" rel="nofollow"><img alt="'+s+'" src="'+r+'" width="'+145+'" height="'+185+'"/><h2>'+s+"</h2></a>");if(randomfpost_details=="yes"){document.write('<div  class="mdinc">Bahasa Indonesia <p> '+l)+'</p></div><div style="clear:both"></div></li>'}}}getvalue();for(var i=0;i<randomfpost_number;i++){document.write('<script type="text/javascript" src="/feeds/posts/default/-/Bahasa Indonesia?alt=json-in-script&start-index='+randomfpost_current[i]+'&max-results=1&callback=md_fpost"><\/script>')};
</script>
</ul></div>

9. Simpan, Publikasikan.

Disini saya menjelaskan sedikit dan menyarankan jika anda ingin menampilkan artikel pada Featured Post ini tepat dibawah Menu Header, kira-kira seperti pada gambar dibawah ini.


Jika anda ingin memasang Featured Post anda tepat dibawah Menu Header. Pertama yang harus anda lakukan adalah menambahkan Elemen pada Tata Letak lalu meletakkan kode nya tepat dibawah menu header yang ada pada template anda. Ok, langsung aja proses pembuatan.

1. Buka Template/Tema.
2. Edit HTML.
3. Temukan kode ]]></b:skin>
4. Copy & Paste kode berikut ini, dan letakkan diatas kode]]></b:skin>
.only-featured{}
.only-featured .widget{padding:15px 14px;overflow:hidden}
.only-featured img,.only-featured iframe{display:block;max-width:100%;border:none;overflow:hidden}
@media only screen and (max-width:640px){
  .only-featured{padding:10px}
@media only screen and (max-width:480px){
  .only-featured{padding:8px}
5. Jika sudah? silakan anda temukan kode menu header yang anda gunakan, saya tidak bisa memperkirakan jika kode yang saya sebutkan benar, jadi silakan anda cari sendiri kode yang mirip dengan menu header anda, jika sudah ketemu silakan anda copy & paste kode berikut ini.
<b:section class='only-featured' id='only-featured' maxwidgets='1' showaddelement='yes'/>
6. Jika sudah dipasang? buka atau refresh tata letak anda, maka akan muncul elemen baru.
7. Terakhir, silakan anda copy & paste kode pada point nomor 8 diatas.


Demikian, bila anda mengalami kesalahan atau ada yang ingin dipertanyakan silakan jangan sungkan untuk berkomentar dibawah ini. Semoga Bermanfaat! Thanks for Reading