Sử dụng label trong blogspot để seo từ khóa như thế nào

Preview:

Citation preview

Sử dụng label trong blogspot để seo từ khóa như thế nàoCode:

http://forum.seotopx.com/threads/seo-tu-khoa-bang-tag-va-category-nhu-the-nao.83860/#post-221738

Như lời hứa hm nay bài viết sau sẽ hướng dẫn seo từ khóa với Label hay thẻ tag trong blogspot nhé. Trong quá trình làm seo, ai cũng biết TAG và Category trong wordpress quan trọng như thế nào khi làm seo, vậy với blogspot, mình dùng các label để seo như thế nào.?

 Sử dụng label làm meta keyword cho mỗi bài viết blogspotCác bạn chú ý rằng công việc này chỉ áp dụng cho những người chuyên thiết kế web bằng blogger. Đối với những bạn mới làm quen các bạn cần phải backup lại template mà các bạn đang sử dụng bằng cách truy cập vào blogger: Template >> Backup/Restore.Đầu tiên các bạn cần tìm thẻ <head> ở template mà các bạn đang sử dụng và thay bằng đoạn code sau:Code:

<!--::::::::::: Block1: Output post meta keywords -->

<b:if cond='data:blog.pageType == &quot;item&quot;'>

<b:section id='meta1' showaddelement='no'>

<!-- widget must be a of Type = 'blog' to have posts data exposed, and must have a unique id -->

<!-- Empty Includables(functions) to output nothing, You must keep them ): -->

<b:widget id='Blog2' locked='no' type='Blog'>

<b:includable id='nextprev'/>

<b:includable id='backlinks' var='post'/>

<b:includable id='post' var='post' />

<b:includable id='status-message'/>

<b:includable id='comment-form' var='post'/>

<b:includable id='backlinkDeleteIcon' var='backlink'/>

<b:includable id='postQuickEdit' var='post'/>

<b:includable id='commentDeleteIcon' var='comment'/>

<b:includable id='feedLinks'/>

<b:includable id='feedLinksBody' var='links'/>

<b:includable id='comments' var='post'/>

<b:includable id='main' var='top'><!-- Main Function of Any widget comes with ID 'main' -->

<!-- Loop Page Posts (only 1 in a post page )-->

<b:loop values='data:posts' var='post'>

<b:if cond='data:post.labels'>

<!-- If the post has labels, make Meta keywords by looping lables -->

&lt;meta name=&quot;keywords&quot; content=&quot;<b:loop values='data:post.labels' var='label'><data:label.name/><b:if cond='data:label.isLast != &quot;true&quot;'>,</b:if></b:loop>&quot; /&gt;

</b:if>

</b:loop>

</b:includable>

</b:widget>

</b:section>

</b:if>

<!--::::::::::: Block1 END -->

<head> <!-- THE HEAD -->

Tìm tiếp đoạn code sau:Code:

<!-- Post/Archive Page -->

<b:if cond='data:blog.pageType != &quot;index&quot;'>

<title><data:blog.pageName/></title>

<!-- Index Page -->

<b:else/>

<title><data:blog.pageTitle/></title>

</b:if>

Sau đó thay toàn bộ đoạn code trên bằng đoạn code bên dưới đâyCode:

<!--::::::::::: Block2: Output Index Title,keywords,decription and Post Title,description -->

<!-- Post/Archive Page -->

<b:if cond='data:blog.pageType != &quot;index&quot;'>

<title><data:blog.pageName/></title>

<meta name='description' expr:content='data:blog.pageName' />

<!-- Index Page -->

<b:else/>

<title><data:blog.pageTitle/></title>

<meta name='keywords' content='your,blog,keywords!!' />

<meta name='description' content='your blog description!!' />

</b:if>

<!--::::::::::: Block2 END -->

Cần phải đảm bảo rằng thẻ b:include đã được gọi trong template của mình (một số template được share trên mạng không hề có thẻ này). Nếu chưa có các bạn cần chèn thẻ này ngay bên trên Block2.Code:

<b:include data='blog' name='all-head-content'/>

Cuối cùng là save template và thử kiểm tra xem meta keyword ở trang chủ và trên bài viết nhé.