Cara Memasang Widget Recent Posts By Tag Untuk Blogger

Discussion in 'HTML & Website Design' started by wrep17, Mar 27, 2016.

Tags:
  1. wrep17

    wrep17 Well-Known Member

    Joined:
    Sep 26, 2015
    Messages:
    1,325
    Likes Received:
    246
    Trophy Points:
    63
    Google+:
    Belajar lagi yuk, jangan lupa gunakan hastag [HASHTAG]#kamibelajar[/HASHTAG]

    1. Pertama simpan dahulu CSS ini diatas kode ]]></b:skin> atau </style>
    Code:
    /*Recent Post By tag*/
    img.rct-thumb{float:left;margin-right:10px;height:72px;width:72px;}
    .recent-by-tag{width:100%;margin:0;padding:0}
    ul.recent-by-tag li{padding:10px 0;margin-bottom:0;border-bottom:1px solid #ddd}
    .recent-by-tag li{font-size:13px;list-style:none;padding-left:0;margin:0;padding:0;overflow:hidden}
    .recent-by-tag a{font-family:'Oswald',sans-serif;font-size:16px;font-weight:normal;margin:0;}
    .recent-by-tag strong{padding-left:0}
    span.showdates{font-size:16px;margin:10px 0 0}
    2. Silakan salin dan simpan kode ini diatas kode </head>
    Code:
    <script type='text/javascript'>
    var numposts = 5;
    var showpostthumbnails = true;
    var showpostdate = true;</script>
    <script type='text/javascript'>
    //<![CDATA[
    // Recent Post By Tag
    // Recent Post By Tag For Blogger by Kang Mousir
    // http://gplus.to/mousir - http://kang-mousir.blogspot.com
    function rcentbytag(e){document.write('<ul class="recent-by-tag">');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}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="http://2.bp.blogspot.com/-giova1ZCh-A/Uzq6L8QTJNI/AAAAAAAAAJc/USXictTq_xs/s70-c/KM+Icon.png"}var p=n.published.$t;var v=p.substring(0,4);var m=p.substring(5,7);var g=p.substring(8,10);var y=new Array;y[1]="Januari";y[2]="Februari";y[3]="Maret";y[4]="April";y[5]="Mei";y[6]="Juni";y[7]="Juli";y[8]="Agustus";y[9]="September";y[10]="Oktober";y[11]="November";y[12]="Desember";document.write('<li class="clear">');if(showpostthumbnails==true)document.write('<a href="'+i+'" target ="_blank" title="'+r+'"><img class="rct-thumb" alt="'+r+'" src="'+l+'"/></a>');document.write('<strong><a href="'+i+'" target ="_blank" title="'+r+'" rel="nofollow">'+r+'</a></strong>');document.write('<br>');var x="";var T=0;if(showpostdate==true){x='<span class="showdates">'+x+g+" "+y[parseInt(m,10)]+" "+v+"</span>";T=1}document.write(x);document.write("</li>");if(t!=numposts-1)document.write("")}document.write("</ul>")}
    //]]>
    </script>
    3. Kemudian simpan kode ini pada widget blogger HTML/JavaScript.
    Code:
    <script>
    document.write("<script src=\"/feeds/posts/default/-/Belajar%20SEO?orderby=updated&alt=json-in-script&callback=rcentbytag\"><\/script>");
    Demo ?
    [​IMG]
     
  2. Muhammad Khoir

    Muhammad Khoir Super Level

    Joined:
    Jun 10, 2014
    Messages:
    2,874
    Likes Received:
    363
    Trophy Points:
    83
    Google+:
    Keren gan? Lagi belajar membuat template ya?
     
  3. AndroidApkApps

    AndroidApkApps Member

    Joined:
    Dec 11, 2015
    Messages:
    693
    Likes Received:
    68
    Trophy Points:
    28
    Keren juga tampilannya clean :D
     
  4. Minecraftndns

    Minecraftndns Active Member

    Joined:
    Dec 13, 2015
    Messages:
    922
    Likes Received:
    100
    Trophy Points:
    43
  5. sulistya

    sulistya Member

    Joined:
    Mar 21, 2016
    Messages:
    95
    Likes Received:
    6
    Trophy Points:
    8
    mantap ilmunya semoga berkah gan makasih tlah berbagi ilmu :)
     
    wrep17 likes this.
  6. Yuyutsu

    Yuyutsu Member

    Joined:
    Mar 22, 2015
    Messages:
    315
    Likes Received:
    35
    Trophy Points:
    28
    Untuk blog di Blogger, setahu saya ga ada 'tag', adanya 'label'. Apa ada perkembangan baru dari Blogger?
     
  7. wrep17

    wrep17 Well-Known Member

    Joined:
    Sep 26, 2015
    Messages:
    1,325
    Likes Received:
    246
    Trophy Points:
    63
    Google+:
    Yaaa, cuma tulisan aja kok, intinya sama :D
     
  8. creative

    creative Well-Known Member

    Joined:
    Oct 24, 2014
    Messages:
    1,725
    Likes Received:
    160
    Trophy Points:
    63
    Google+:
    Wah bloeh dicoba nih.. berat gak gan loadingnya??
     
  9. wrep17

    wrep17 Well-Known Member

    Joined:
    Sep 26, 2015
    Messages:
    1,325
    Likes Received:
    246
    Trophy Points:
    63
    Google+:
    Lancar jaya kok, engga lemot :D
     
  10. blidee19

    blidee19 Member

    Joined:
    Feb 18, 2016
    Messages:
    89
    Likes Received:
    19
    Trophy Points:
    8
    Google+:
    wow banget den di coba dulu
     
  11. wrep17

    wrep17 Well-Known Member

    Joined:
    Sep 26, 2015
    Messages:
    1,325
    Likes Received:
    246
    Trophy Points:
    63
    Google+:
    Silahkan dicoba den, di editing lagi lebih baik silahkan den
     
Loading...

Share This Page