23 tháng 6, 2012

Thủ thuật tạo link RSS nằm sau mỗi nhãn ở cuối bài viết



Lần trước mình đã giới thiệu cho các bạn hôm nay mình sẽ giới thiệu một cách mới
- Bài viết này có thể xem là một ứng dụng nho nhỏ cho việc sử dụng các link RSS feed của mỗi nhãn(RSS by label). Với thủ thuật này ta sẽ tạo mộticon RSS nho nhỏ nằm ngay sau mỗi nhãn ở cuối mỗi bài viết.
Thủ thuật này rất đơn giản, bạn chỉ việc thêm một dòng code nho nhỏ vào code template của blog là xong.
☼ Bây giờ ta bắt đầu:
1. Đăng nhập blog
2. Vào bố cục (layout)
3. Vào chỉnh sửa code HTML (edit code HTML)
4. chọn Mở rộng mẫu tiện ích (Expand widget template)
5. Tìm đọan code sau: (hoặc tương tự)
<div class='post-footer-line post-footer-line-2'>
<span class='post-labels'>
<b:if cond='data:post.labels'>
<data:postLabelsLabel/>
<b:loop values='data:post.labels' var='label'>
<a expr:href='data:label.url' rel='tag'><data:label.name/></a> 
<b:if cond='data:label.isLast != &quot;true&quot;'>,</b:if>
</b:loop>
</b:if>

</span>
</div>
6. Chèn thêm đọan code màu đỏ như bên dưới:
<div class='post-footer-line post-footer-line-2'>
<span class='post-labels'>
<b:if cond='data:post.labels'>
<data:postLabelsLabel/>
<b:loop values='data:post.labels' var='label'>
<a expr:href='data:label.url' rel='tag'><data:label.name/></a><a expr:href='&quot;http://namkna.blogspot.com/feeds/posts/default/-/&quot; + data:label.name' target='_blank'><img src='http://www.feedburner.com/fb/images/pub/feed-icon16x16.png'/></a> 
<b:if cond='data:label.isLast != &quot;true&quot;'>,</b:if>
</b:loop>
</b:if>

</span>
</div>
- Thay namkna.blogspot.com thành địa chỉ URL blog của bạn.

7.Save template.

Như vậy đã xong, chúc các bạn thành công.
Nguồn: Fandung
Chủ đề:

0 nhận xét:

Đăng nhận xét

Support : Guide | Blogspot Tips | Television | IDM | Software Free | Site Map | Back Link | Contact | ↑ back to top
Ghi rõ nguồn kynangblog.blogspot.com khi phát hành lại thông tin từ trang này
Copyright © 2011. KỸ NĂNG BLOG - All Rights Reserved
Design by KyNangBlog Edit Ky nang blog
Xem tốt nhất ở độ phân giải 1024 x 768 pixel
Six million kynangblog template byKyNangBlog
Blogger Gadgets