Hướng dẫn khắc phục cấu trúc dữ liệu Hatom (thiếu Author, Update, Entry-Title) cho blogspot

2
Khắc phục lỗi Hatom cho Blogspot giúp site bạn tốt hơn được google index nhanh hơn và có hạng từ khóa tốt hơn trong SEO. Các lỗi thiếu author, thiếu update, thiếu entry-title là những lỗi thường thấy và phổ biến trên Blogspot.


1
huhu
Trong bài viết này mình sẽ hướng dẫn các bạn cách tối ưu và khắc phục 3 lỗi này

1. Thiếu Author

Tìm đoạn thẻ có dạng như sau:
<span class='post-author vcard'>
<b:if cond='data:top.showAuthor'>
<b:if cond='data:post.authorProfileUrl'>
<span class='fn'>
<a expr:href='data:post.authorProfileUrl' rel='author' title='author profile'><data:post.author/></a>
</span>
<b:else/>
<span class='fn'><data:post.author/></span>
</b:if>
</b:if>
</span>
Và thay thế thành đoạn sau:
<span class='post-author vcard' itemscope='itemscope' itemtype='http://schema.org/Person'>
<b:if cond='data:top.showAuthor'>
<b:if cond='data:post.authorProfileUrl'>
<span class='fn author'>
<a expr:href='data:post.authorProfileUrl' rel='author' title='author profile'>
<span itemprop='name'><data:post.author/></span></a>
</span>
<b:else/>
<span class='fn author'>
<span itemprop='name'><data:post.author/></span>
</span>
</b:if>
</b:if>
</span>

2. Thiếu Update

Tìm đoạn thẻ có dạng như sau:
<data:post.timestamp/>
Thay thế thành:
<span class='updated'><data:post.timestamp/></span>

3. Thiếu Entry-Title

Bước 1: Tìm đoạn code như bên dưới với cụm từ 'data:post.title' (một số template có thể là h1, h2)
<b:if cond='data:post.title'>
<h3 class='post-title'>
Thay thế thành đoạn sau:
<b:if cond='data:post.title'><h3 class='post-title entry-title'>
Bước 2: Tiếp tục tìm đoạn:
<div class='blog-posts hfeed'>
Xóa chữ hfeed trong dòng đó
Bước 3: Tìm đoạn sau:
<div class='post hentry'>
Xoá chữ hentry trong đoạn đó
Bước 4: Tìm đoạn sau:
<div class='post hentry uncustomized-post-template
Thay thế thành:
<div class='post uncustomized-post-template
Lưu mẫu lại, có thể mất một vài ngày để google cập nhật, sau một vài ngày các lỗi thiếu author, update, entry-title sẽ được cải thiện.
#Tag: blogcodegoogle
  1. blogger_logo_round_35

    BÁC CÓ THỂ XEM BLOG MÌNH, BLOG MÌNH THIẾU AUTHOR VỚI UPDATE, NHƯNG TÌM NHỮNG ĐOẠN CODE TRÊN TẠI SAO KHÔNG THẤY

    Trả lờiXóa
    Trả lời
    1. blogger_logo_round_35

      Tự comment tự trả lời

      Xóa
    2. blogger_logo_round_35

      Bác phải để lại link blog thì mới biết hướng dẫn chứ !!! :D

      Xóa
    3. blogger_logo_round_35

      G+ Của em đó bác. thường để link nhiều ng ko thích

      Xóa

Phổ biến trong tuần

Bạn có thể quan tâm

Đăng ký theo dõi

Hỏi tôi khi cần!