📌 Donate ủng hộ phí duy trì Website và quản trị viên

💰 Qua Momo: https://me.momo.vn/kqIVT6s3ixuqu2ixs6tbiN
💰 Qua ngân hàng TPBank: 5225.813.8888. Hoàng Quốc Vương
💰 Qua Paypalhttps://www.paypal.com/paypalme/hoangvuongchannel

🙏 Xin chân thành cảm ơn mọi sự đóng góp của các bạn!


Tạo bài viết liên quan hiển thị giữa bài đăng trong blogspot 2010


Tiện ích bài viết liên quan là 1 tính năng không thể thiếu đối với 1 website nói chung và blogspot nói riêng bởi nó sẽ giúp giữ chân khách truy cập lâu hơn thông qua các chủ đề có liên quan đến các bài viết mà họ đang xem. Vì là nền tảng miễn phí cho nên blog cung cấp rất ít các tùy chọn hiển thị bài viết liên quan đặc biệt đối với những bạn muốn hiển thị các bài viết liên quan ở giữa bài đăng trong blogspot và đây chính là thủ thuật mà clash of clans việt muốn giới thiệu với các bạn trong bài viết hôm nay !!!


Tiện ích bài viết liên quan là 1 tính năng không thể thiếu đối với 1 website nói chung và blogspot nói riêng bởi nó sẽ giúp giữ chân khách truy cập lâu hơn thông qua các chủ đề có liên quan đến các bài viết mà họ đang xem. Vì là nền tảng miễn phí cho nên blog cung cấp rất ít các tùy chọn hiển thị bài viết liên quan đặc biệt đối với những bạn muốn hiển thị các bài viết liên quan ở giữa bài đăng trong blogspot và đây chính là thủ thuật mà clash of clans việt muốn giới thiệu với các bạn trong bài viết hôm nay !!!


  • [col]
    • Các bạn có thể chủ động chọn vị trí " Bài viết liên quan " muốn hiện thị ở bất cứ đâu trong bài đăng của mình ở đây clash of clans việt sẽ hiển thị nó ở giữa bài viết





Bước 1: Vào trong trang quản trị  Blog  Chủ Đề  Chỉnh sửa html  > Tìm đến thẻ đóng   </head>  và cody đoạn code dưới đây vào trước thẻ đóng  </head> 

  • [col]
    • Để hiển thị được bài viết liên quan giữa bài đăng trong blog như trên các bạn thực hiện như sau cũng rất đơn giản thôi chúng ta cùng bắt đầu nhé. Để tìm kiếm nhanh các đoạn code các bạn nhấn tổ hợp phím Ctrl + F và copy đoạn code muốn tìm vào khung như hình vẽ bên cạnh

[<b:if cond='data:blog.pageType == &quot;item&quot;'><script type='text/javascript'> //<![CDATA[ var relatedSimply = new Array(); var relatedSimplyNum = 0; var relatedUrls = new Array(); function related_results_labels(json) { for (var i = 0; i < json.feed.entry.length; i++) { var entry = json.feed.entry[i]; relatedSimply[relatedSimplyNum] = entry.title.$t; for (var k = 0; k < entry.link.length; k++) { if (entry.link[k].rel == 'alternate') {relatedUrls[relatedSimplyNum] = entry.link[k].href; relatedSimplyNum++; break;}}}} function removeRelatedDuplicates() { var tmp = new Array(0); var tmp2 = new Array(0); for(var i = 0; i < relatedUrls.length; i++) { if(!contains(tmp, relatedUrls[i])) { tmp.length += 1; tmp[tmp.length - 1] = relatedUrls[i]; tmp2.length += 1; tmp2[tmp2.length - 1] = relatedSimply[i];}} relatedSimply = tmp2; relatedUrls = tmp;} function contains(a, e) { for(var j = 0; j < a.length; j++) if (a[j]==e) return true; return false;} function printRelatedLabels() { var r = Math.floor((relatedSimply.length - 1) * Math.random()); var i = 0; document.write('<ul>'); while (i < relatedSimply.length && i < 20) { document.write('<li><a href="' + relatedUrls[r] + '">' + relatedSimply[r] + '</a></li>'); if (r < relatedSimply.length - 1) { r++; } else { r = 0;} i++;} document.write('</ul>');} //]]> </script> </b:if>]


  • [col]
    • Bước 2 : Tìm đến đoạn thẻ  ]]></b:skin>  và cody đoạn code phía dưới lên trước ]]></b:skin> như hình bên. Ở bước này có 1 số mẫu " Bài viết liên quan " để các bạn lựa chọn


Kiểu 1.


[/*Đoạn Code kiểu 1*/ .related-simplify{position:relative;padding:0;margin:15px auto;width:100%;} .related-simplify h4{background:#3498db;padding:8px 12px;margin:0;font-size:15px;font-weight:400;color:#fff;border:1px solid #2e88c5} .related-simplify ul{margin:0;padding:0} .related-simplify ul li{background:#f6f6f6;position:relative;list-style:none;padding:9px;margin:auto;line-height:1.4em;border:1px solid rgba(0,0,0,0.1);border-bottom:0;transition:all .3s} .related-simplify ul li:nth-child(odd){background:#fefefe} .related-simplify ul li:last-child{border-bottom:1px solid rgba(0,0,0,0.1)} .related-simplify ul li:before{content:'\f138';font-family:fontawesome;position:absolute;margin:0 9px 0 4px;color:#2ecc71;overflow:hidden;transition:all .3s} .related-simplify ul li:hover:before{content:'\f138';font-family:fontawesome;-webkit-animation:bounceright .3s alternate ease infinite;animation:bounceright .3s alternate ease infinite} .related-simplify a{color:#0383d9;font-size:13px;margin:0 0 0 30px;} .related-simplify a:hover{color:#0383d9;text-decoration:underline} .related-simplify ul li:nth-child(n+4) {display:none;} @-webkit-keyframes bounceright{from{-webkit-transform:translateX(0)}to{-webkit-transform:translateX(3px)}} @keyframes bounceright{from{transform:translateX(0)}to{transform:translateX(3px)}}]

 Kiểu 2.

[/* Đoạn code kiểu 2 */ .related-simplify{position:relative;padding:20px 12px 12px 12px;margin:32px auto 24px auto;width:93%;border:4px double rgba(0,0,0,0.2)} .related-simplify h4{background:#fff;padding:8px 10px;position:absolute;margin:0;font-size:17px;font-weight:700;color:#000;top:-21px;left:2.5%} .related-simplify ul{margin:0;padding:0} .related-simplify ul li{position:relative;list-style:none;padding:9px 0;margin:auto;line-height:1.4em;transition:all .3s} .related-simplify ul li:before{content:'\f0c8';font-family:fontawesome;position:absolute;margin:0 5px 0 2px;color:rgba(0,0,0,0.5);overflow:hidden;font-size:60%;left:10px;transition:all .3s} .related-simplify ul li:hover:before{content:'\f0c8';font-family:fontawesome;color:#0383d9;} .related-simplify a{color:#000;font-size:14px;margin:0 0 0 30px;} .related-simplify a:hover{color:#0383d9;} .related-simplify ul li:nth-child(n+4) {display:none;} @media only screen and (max-width:768px){ .related-simplify{padding:15px 0 10px 0;width:100%;border:2px solid #e74c3c;border-left:0;border-right:0} .related-simplify h4{color:#e74c3c;padding:8px;font-size:15px;top:-18px;left:3.5%} .related-simplify a{font-size:14px;margin:0}.related-simplify a:hover{color:#e74c3c} .related-simplify ul li{padding:5px 0} .related-simplify ul li:before,.related-simplify ul li:hover:before{display:none}}]

Kiểu 3.


[/* Đoạn code kiểu 3 */ .related-simplify{display:inline-block;background:#34495e;color:#fff;position:relative;padding:0;margin:20px auto;width:100%;border:6px double #fff;} .related-simplify ul{background:rgba(38,62,87,0.8);margin:0;padding:20px} .related-simplify ul li{position:relative;list-style:none;padding:9px 0;margin:auto;line-height:1.4em;transition:all .3s} .related-simplify ul li:before{content:'\f0c8';font-family:fontawesome;position:absolute;margin:0 5px 0 2px;color:rgba(255,255,255,0.7);overflow:hidden;font-size:60%;left:10px;transition:all .3s} .related-simplify ul li:hover:before{content:'\f0c8';font-family:fontawesome;color:#f1c40f;} .related-simplify a{color:#fff;font-size:17px;margin:0 0 0 30px;} .related-simplify a:hover{color:#fff;text-decoration:underline} .related-simplify ul li:nth-child(n+4) {display:none;} @media only screen and (max-width:768px){ .related-simplify{padding:15px 0 10px 0;width:100%;border:2px solid #e74c3c;border-left:0;border-right:0} .related-simplify h4{color:#e74c3c;padding:8px;font-size:15px;top:-18px;left:3.5%} .related-simplify a{font-size:14px;margin:0}.related-simplify a:hover{color:#e74c3c} .related-simplify ul li{padding:5px 0} .related-simplify ul li:before,.related-simplify ul li:hover:before{display:none}}]


  • [col]
    • Bước 3: Tìm đến thẻ  <data:post.body/>  và thay thế nó bằng đoạn code phía dưới. Thông thường sẽ có 2-3 đoạn code <data:post.body/> trong blog các bạn thử thay thế ở tất cả để test nhé

 

[<div expr:id='&quot;post1&quot; + data:post.id'/>
<br/><div class='related-simplify'>
<b:if cond='data:post.labels'>
<b:loop values='data:post.labels' var='label'>
<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=3&quot;' type='text/javascript'/>
</b:if>
</b:loop>
</b:if>
<script type='text/javascript'>
removeRelatedDuplicates();
printRelatedLabels();
</script>]


Sau khi làm xong các bước trên hãy lưu mẫu template lại, bây giờ tiện ích bài viết liên quan hiển thị giữa bài đăng trong blog đã xuất hiện rồi đây, nếu có bất cứ câu hỏi nào các bạn vui lòng bình luận phía dưới bài viết này nhé và cũng đừng quên thường xuyên truy cập clash of clans việt để theo dõi các thủ thuật blog mới nhất



clash of clan việt

COMMENTS

Video hướng dẫn cách lấy
⬇ Link Copy Base & Link download trên website ⬇



Name

About-us,1,Airdrop,10,App-paypal,17,Auto,15,Ban-tin-coc,442,Base- hall-10,1,Bay,1,BH-10,1,BH-4,2,BH-5,3,BH-6,2,BH-7,1,BH-8,2,BH-9,3,bi-an,6,BIDV,1,Binance,2,Brawlstars,1,Buit-phong-thu,37,Cake,4,Clans-do-sat,21,Clash-roylae,4,Co-may-cong-thanh,1,Co-the-ban-chua-biet,115,da,1,Dac-tinh-quan,48,Game-lien-quan,50,Game-moblie,43,Game-NFT,6,game-pc,8,Hall-10,17,Hall-11,11,Hall-12,13,Hall-13,8,hall-14,11,Hall-16,4,Hall-3,1,Hall-4,4,Hall-5,8,Hall-6,17,Hall-7,13,Hall-8,15,Hall-9,24,Hall12,1,Hero,12,hidden,1,Kiem-tien-online,151,Kim-chi-va-cu-cai-2019,2,Lap-mang-fpt-hai-phong,89,Lien-he,1,Lien-ket-tiep-thi,7,MBBANK,2,Mo-the-atm-online,23,Mod-Clash,1,Momo,7,Mua-lan,38,Mydefipet,2,Null-clash,1,Office,2,Phan-mem,100,phan-mem-mobile,39,phan-mem-pc,23,Phim-anh,3,Pi-network,27,PUBG,8,Quan-doi-base,9,Remitano,1,Sacombank,2,San,6,spell,1,spell-dark-elixir,9,spell-elixir,13,Suc-khoe,9,Template-app,2,Template-ban-hang,2,Template-game,2,Template-nhac,1,Template-phim,17,Template-thu-vien-anh,3,template-tin-tuc,12,Template-truyen-tranh,8,th12,1,The-thao,14,Thong-tin-cong-nghe,55,Thu-thuat-blog,17,Thu-thuat-pc,5,Tien-dien-tu,29,Timo,3,tin,1,Tin-gioi-tre,31,Tin-tuc,68,Tin-tuc-Bitcoin,101,Tin-tuc-tien-dien-tu,4,Toa-nha-tai-nguyen,5,Vat-pham-than-ky,13,Vi-dien-tu,1,video-farm,20,Video-hai,10,video-war,27,Vietcombank,1,Vietinbank,1,Vo-lam-truyen-ky,2,VPBank,2,War-builder-base,4,Xep-nha-hall-12,1,Xep-nha-thu,3,Xep-nha-thu-bh,8,Xep-nha-thu-war,17,Xep-nha-troll,5,
ltr
item
Clash of Clans Việt: Tạo bài viết liên quan hiển thị giữa bài đăng trong blogspot 2010
Tạo bài viết liên quan hiển thị giữa bài đăng trong blogspot 2010
Tiện ích bài viết liên quan là 1 tính năng không thể thiếu đối với 1 website nói chung và blogspot nói riêng bởi nó sẽ giúp giữ chân khách truy cập lâu hơn thông qua các chủ đề có liên quan đến các bài viết mà họ đang xem. Vì là nền tảng miễn phí cho nên blog cung cấp rất ít các tùy chọn hiển thị bài viết liên quan đặc biệt đối với những bạn muốn hiển thị các bài viết liên quan ở giữa bài đăng trong blogspot và đây chính là thủ thuật mà clash of clans việt muốn giới thiệu với các bạn trong bài viết hôm nay !!!
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIDcIrOchZtyeNyBMzQCKfb_fB_JmrAjQCVTlel6d0awckLsZCQKhyphenhyphenIbzpuLVcR4tg8Pakymy0hyWKP2tqUV1kcf7jvcca0U42uyCYTYweoaeyiCglLDJxHMdNZo6efHFjd5Tc5ixypQNh/s640/tao-bai-viet-lien-quan-o-giua-bai-dang-blogspot-2020.PNG
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiIDcIrOchZtyeNyBMzQCKfb_fB_JmrAjQCVTlel6d0awckLsZCQKhyphenhyphenIbzpuLVcR4tg8Pakymy0hyWKP2tqUV1kcf7jvcca0U42uyCYTYweoaeyiCglLDJxHMdNZo6efHFjd5Tc5ixypQNh/s72-c/tao-bai-viet-lien-quan-o-giua-bai-dang-blogspot-2020.PNG
Clash of Clans Việt
https://www.clashofclansviet.com/2019/12/tao-bai-viet-lien-quan-hien-thi-giua-bai-dang-trong-blogspot-2020.html
https://www.clashofclansviet.com/
https://www.clashofclansviet.com/
https://www.clashofclansviet.com/2019/12/tao-bai-viet-lien-quan-hien-thi-giua-bai-dang-trong-blogspot-2020.html
true
3345287795156014315
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All Có Thể Bạn Sẽ Thích LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock STEP 2: Chia sẻ bài đăng lên mạng xã hội Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Nội Dung Bài Viết