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

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.


Hướng dẫn khắc phục cấu trúc dữ liệu Hatom (thiếu  Author, Update, Entry-Title) cho blogspot
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.
Hướng dẫn khắc phục cấu trúc dữ liệu Hatom (thiếu Author, Update, Entry-Title) cho blogspot Reviewed by Cuong Nguyen on April 16, 2017 Rating: 5

No comments:

All Rights Reserved by vietclan © 2014 - 2015
Powered By Blogger, Share by Star Tuan

Biểu mẫu liên hệ

Name

Email *

Message *

Powered by Blogger.