![[Widget] 3 Style Popular Post Cho Blogspot [Widget] 3 Style Popular Post Cho Blogspot](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQNVIvoccj5dq6uukzARvF71Ugt_pUvlD8HwX3AdmBmTfLw9m25JV_tHETHfHXEGED6-RIl31cBxtWSbFN93tnBzA2nfqMxIHxdk_KxGk1bf1FcWh1gc3DmJ2HpuhLlJn_PBMtlhybZXgl/s1600/wallpapers-20.jpg)
Mình đã chia sẽ hình như là rất nhiều kiểu Popular Post Cho Blogspot, và thực rất được rất nhiều người ưa thích, và lần này mình sẽ chia sẽ với các bạn 3 mẫu bài đăng phổ biến nữa. Bắt đầu nào

Xem thêm[Widget] Bài Đăng Phổ Biến Nhiều Màu Sắc Cho Blogger - Blogspot
[Tutorial] Popular Posts Với Ảnh Đại Điện Lớn Cho Blogger - Blogspot
Mục lục:
- Thực Hiện
- Lời Kết
Thực Hiện
1. Các bạn vào Blogger -> Mẫu -> Chỉnh sửa HTML, tìm thẻ đóng ]]></b:skin> hay thẻ đóng </style> và đặt đoạn CSS sau vào trước một trong hai thẻ đóng đóChú ý ở đây có 3 mẫu các bạn chọn mẫu mình thích nha, một blog chỉ dùng được một mẫu mà thôi, nên đừng có ham chơi cả ba
Mẫu 1
![[Widget] 3 Style Popular Post Cho Blogspot [Widget] 3 Style Popular Post Cho Blogspot](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiExBlJ807g6hoCQn86fsfuHvN8Dz5cr1sQ3cP5rWYcS4c97FnvnmIav-vFwmQPrtHAaw1qW0w4RURJONxitXddisBzMfqN6VbcfRgR1EndP8cbbC3SXV0cMPUTrOwKtWrexL3XL-Rq9cJc/s1600/popular+post+style+1.png)
/* Popular Post Style 1 */
#PopularPosts1 ul{padding:10px 0;margin-top:-15px;}
.PopularPosts .item-thumbnail{margin:0}
.PopularPosts .widget-content ul{padding:0;margin-top:-7px}
.PopularPosts .item-title a{text-decoration:none;font-weight:400;font-size:14px;color:#000;line-height:1.4em;transition:all ease-in-out .1s;}
.PopularPosts .item-title{padding-bottom:.4em}
.PopularPosts .widget-content ul li:hover a,.PopularPosts .widget-content ul li a:hover{color:#48d;}
.PopularPosts li:first-child .item-snippet{position:absolute;top:0;opacity:0;visibility:hidden;width:85%;left:11px;color:#fff;background-color:rgba(172,22,172,.83);padding:10px;font-size:90%;line-height:normal;transition:.3s}
.PopularPosts li:hover:first-child .item-snippet{top:20%;opacity:1;visibility:visible}
.PopularPosts img{width:100%;height:100%}
.PopularPosts .widget-content ul li{list-style:none;margin:10px 0 0!important;padding:0 0 10px!important;line-height:1.3em!important;position:relative;border-bottom:1px solid #f1f1f1}
.PopularPosts li .item-snippet{display:none}
.PopularPosts li .item-thumbnail{width:85px;height:72px;margin:0 10px 0 0;overflow:hidden;float:left}
.PopularPosts li:first-child .item-thumbnail{width:100%;height:100%;max-height:190px;overflow:hidden;margin-bottom:10px}
.PopularPosts li:first-child .item-content{position:relative}
.PopularPosts li:first-child .item-thumbnail,.PopularPosts li:first-child .item-snippet{display:block}
.PopularPosts li:first-child .item-title a{font-size:18px;line-height:1.3em;font-weight:700}
Mẫu 2
/* Popular Post Style 2 */
.PopularPosts .widget-content ul{padding:0;margin-top:-10px}
.PopularPosts .item-thumbnail{margin:0}
.PopularPosts .item-title {padding:0;}
.PopularPosts .item-title a{text-decoration:none;color:#000;}
.PopularPosts .item-title a:hover{color:#ff2d2d}
.PopularPosts .item-snippet{font-size:12px;line-height:1.6em;color:#777;padding-top:10px}
.PopularPosts li{border-bottom:1px dashed #e3e3e3}
.PopularPosts li .item-thumbnail,.PopularPosts li .item-snippet{display:none}
.PopularPosts li:first-child .item-thumbnail,.PopularPosts li:first-child .item-snippet{display:block;overflow:hidden;max-height:180px;margin-bottom:10px;}
.PopularPosts img{padding:0}
.PopularPosts .widget-content ul li{padding:10px 0;margin:0}
Mẫu 3
/* Popular Post Style 3 */
#PopularPosts1 ul{padding:10px 0;margin-top:-15px;}
.PopularPosts .item-thumbnail{margin:0}
.PopularPosts .widget-content ul{padding:0;margin-top:-7px}
.PopularPosts .item-title a{text-decoration:none;font-weight:700;font-size:14px;color:#000;line-height:1.4em;transition:all ease-in-out .1s;}
.PopularPosts .item-title{padding-bottom:.4em}
.PopularPosts .widget-content ul li:hover a,.PopularPosts .widget-content ul li a:hover{color:#48d;}
.PopularPosts img{width:100%;height:100%}
.PopularPosts .widget-content ul li{list-style:none;margin:10px 0 0!important;padding:0 0 10px!important;line-height:1.3em!important;position:relative;border-bottom:1px solid #f1f1f1}
.PopularPosts li .item-snippet{position:absolute;top:0;opacity:0;visibility:hidden;width:85%;left:11px;color:#fff;background-color:rgba(172,22,172,.83);padding:10px;font-size:90%;line-height:normal;transition:.3s}
.PopularPosts li:hover .item-snippet{top:20%;opacity:1;visibility:visible}
.PopularPosts li .item-thumbnail{margin:10px 0;overflow:hidden;float:left}
.PopularPosts li:first-child .item-thumbnail{width:100%;height:100%;max-height:190px;overflow:hidden;margin-bottom:10px}
.PopularPosts li:first-child .item-content{position:relative}
.PopularPosts li:first-child .item-thumbnail,.PopularPosts li:first-child .item-snippet{display:block}
2. Sau đó các bạn chèn đoạn code sau vào trước thẻ đóng </body>Ở trên các bạn chọn mẫu nào thì ở dưới này các bạn chọn code cho phù hơp
Mẫu 1
<script type='text/javascript'>
//<![CDATA[
function resizeThumbarlina(e,t){for(var s=document.getElementById(e),r=s.getElementsByTagName("img"),c=0;c<r.length;c++)r[c].src=r[c].src.replace(/\/s72\-c/,"/s"+t),r[c].width=t,r[c].height=t}resizeThumbarlina("PopularPosts1",400);
//]]>
</script>
Mẫu 2
<script type='text/javascript'>
//<![CDATA[
// Popular Post
var newidth=295;var neweight=180;$(".popular-posts .item-thumbnail img").each(function(){var t=$(this).attr("width");$(this).attr("width",newidth),$(this).attr("height",neweight),$(this).attr("src",$(this).attr("src").replace("/s72-c/","/w"+newidth+"-h"+neweight+"-c/"))}),$(".PopularPosts .item-snippet").text(function(t,i){return i.substr(0,70)});
//]]>
</script>
Mẫu 3
<script type='text/javascript'>
//<![CDATA[
function resizeThumbarlina(e,t){for(var s=document.getElementById(e),r=s.getElementsByTagName("img"),c=0;c<r.length;c++)r[c].src=r[c].src.replace(/\/s72\-c/,"/s"+t),r[c].width=t,r[c].height=t}resizeThumbarlina("PopularPosts1",400);
//]]>
</script>
3. Lưu Mẫu lại4. Sau đó vào Bố cục >> Thêm tiện ích >> Bài Đăng Phổ Biến
![[Widget] 3 Style Popular Post Cho Blogspot [Widget] 3 Style Popular Post Cho Blogspot](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhP3g3OTx7ZxmCC_1tSpCITTpeGl-6g_VR1_XhdozmjGu40frXQPOVTVPP40IAJuu6ztGqojzlnvZoOfIP9S9CW5nfcwgPNl-og9h5jeDDTSwcGdZYocdrxtyN3kxgHWdvE2DYFhOCqABKH/s1600/popularpostchose.png)
Bạn cũng có thể thay đổi tiêu đề cũng như số bài hiên thị
![[Widget] 3 Style Popular Post Cho Blogspot [Widget] 3 Style Popular Post Cho Blogspot](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUy9nJquRJK1boylx5fHZnq6bzvqsKmVTdGyPU04SwPAJUvPmJZz4GoCplscWpjJC8dZcElhzDITQC7OO2poWktdqVW6uB4vOVu40Lxp0jRAbgI5GclLDNqJxyiRMisoHfEOfVxgnASopZ/s1600/popular+post+style.png)
7. Xem Kết Quả
1 nhận xét:
có các nào thêm ảnh ddaii diện cho những bài viết không có ảnh không bạn?
Biểu tượng mặt cười ( Copy & paste xuống phần Comment )
Hãy Luôn Comment Để Tạo Động Lực Cho Tác Giả
Emoticon