Hướng dẫn SEO, thiết kế webs

Hiển thị bài viết theo nhãn bất kỳ ở trang chủ (only show post of one label in home page)

Trong thiết kế blog đôi khi theo yêu cầu bạn chỉ muốn hiển thị bài viết thuộc nhãn nhất định nào đó ra trang chủ hoặc kiểu trang index. Với thủ thuật này, ở trang chủ của bạn chỉ hin thị bài viết của một nhãn duy nhất và bài viết thuộc các nhãn khác sẽ bị ẩn đi





View here -  here
CasesWant \ DoReplace MY FIRST LINE CODE with
1Display gadget on home page in Blogger. ( Hide gadget from static and post pages on blogger. )<b:if cond='data:blog.url == data:blog.homepageUrl'>
2Display gadget on index pages, such as homepage, labels page and yearly archive page.<b:if cond='data:blog.pageType == &quot;index&quot;'>
3Display gadget on post pages in Blogger. ( Hide gadget from homepage and static pages in Blogger. )<b:if cond='data:blog.pageType == &quot;item&quot;'>
4Display gadget on static pages in Blogger. ( Hide gadgets from homepage and post pages in Blogger. )<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
5Show gadgets on post and static pages in Blogger.( Hide gadgets from index pages, including homepage, in blogger. )<b:if cond='data:blog.pageType != &quot;index&quot;'>
6Show gadgets on homepage and static pages in Blogger. ( Hide gadgets from post pages in Blogger. )<b:if cond='data:blog.pageType != &quot;item&quot;'>
7Display gadgets on homepage and posts pages in Blogger. ( Hide gadgets from static pages in Blogger. )<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
8Display gadgets only on monthly archive pages in Blogger.<b:if cond='data:blog.pageType == &quot;archive&quot;'>
9Display gadgets only on a specific page in Blogger.<b:if cond='data:blog.url == &quot;Your_URL_Here&quot;'>
10Display gadgets on anywhere except any one specific page in Blogger.<b:if cond='data:blog.url != &quot;Your_URL_Here&quot;'>
11Hide gadgets on 404 not found pages in Blogger.<b:if cond='data:blog.pageType != &quot;error_page&quot;'>

Tham khảo
http://blogger-hints-and-tips.blogspot.com/2010/03/displaying-gadget-only-on-home-page.html  (correct here)

http://helplogger.blogspot.com/2012/03/how-to-add-related-posts-widget-to.html 
http://templateblogspot-fullfree.blogspot.com/2014/09/blogspot-tips-only-show-post-of-one.html 
http://helplogger.blogspot.com/2012/03/hideshow-widgetsgadgets-in.html 
http://daihiepaccounting.blogspot.com/2015/06/bai-viet-hien-thi-theo-nhan-ngoai.html (chưa được)
http://daihiepaccounting.blogspot.com/2015/06/hien-thi-bai-viet-theo-nhan-ngoai-trang.html  (chưa thử)
http://hieumeoblog.blogspot.com/2011/09/hien-thi-bai-viet-ngoai-trang-chu-giong_03.html (chưa thử)
http://www.terocket.com/2011/07/hien-thi-widget-o-nhung-trang-nhat-inh.html
http://www.mybloggertricks.com/2011/01/how-to-show-and-hide-widgets-in-blogger.html (show or hide)
http://www.bloggertipsseotricks.com/2014/10/hide-show-gadget-widget-in-blogger.html (các kiểu)
http://nguoithanhmien.blogspot.com/2014/06/cach-tao-widget-bai-viet-moi-theo-nhan.html (chưa thử)
http://www.bloggingspell.com/add-related-posts-blogger/ (chưa thử)
http://www.bloggerwidgetgenerators.com/2014/02/related-posts-widget-for-blogger-blogspot.html(chưa thử)
http://wikiblogvn.blogspot.com/2014/05/rut-gon-bai-viet-tren-trang-chu-blogger.html (thu gọn bài viết ra trang chủ)
http://www.terocket.com/2013/04/autoreadmore-thumbnail-scripts-blogspot.html (thu gọn bài viết có mô tả ảnh ra trang chủ)

No comments:

Post a Comment