Tối ưu thẻ H1 và H2 trong SEO BLOGSPOT

Monday, November 24, 2014
Tối ưu thẻ H1 cho blogspot vì như chúng ta biết thì mặc định blogspot dùng chung thẻ H2 ở trang chủ và thẻ H2 nằm ở trang bài viết , vì thế hôm nay chúng ta sẽ đổi thẻ H1 và H2 của trang chủ và bài viết trong SEO BLOGSPOT
Cách seo thẻ h1 cho blogspot

Đổi thẻ H2 của tiêu đề Blog và H1 cho bài viết


Tìm đoạn code sau trong blog của bạn
<b:if cond='data:post.title'>    
<h3 class='post-title entry-title'>     
<b:if cond='data:post.link'>     
<a expr:href='data:post.link'><data:post.title/></a>     
<b:else/>     
<b:if cond='data:post.url'>     
<a expr:href='data:post.url'><data:post.title/></a>     
<b:else/>     
<data:post.title/>     
</b:if>     
</b:if>     
</h3>     
</b:if>
Và sau đó sửa nó thành
<b:if cond='data:blog.pageType != &quot;item&quot;'>    
<b:if cond='data:post.title'>     
<h2 class='post-title entry-title'>     
<b:if cond='data:post.link'>     
<a expr:href='data:post.link'><data:post.title/></a>     
<b:else/>     
<b:if cond='data:post.url'>     
<a expr:href='data:post.url'><data:post.title/></a>     
<b:else/>     
<data:post.title/>     
</b:if>     
</b:if>     
</h2>     
</b:if>     
<b:else/>     
<h1 class='post-title entry-title'>     
<b:if cond='data:post.link'>     
<a expr:href='data:post.link'><data:post.title/></a>     
<b:else/>     
<b:if cond='data:post.url'>     
<a expr:href='data:post.url'><data:post.title/></a>     
<b:else/>     
<data:post.title/>     
</b:if>     
</b:if>     
</h1>     
</b:if>

Thay đổi thẻ h1 của tiêu đề chính của blog


Các bạn tìm code sau trong Blog
<h1 class='title'>    
<b:include name='title'/>     
</h1>
Và thay thế thành
<b:if cond='data:blog.pageType != &quot;item&quot;'>    
<h1 class='title'>     
<b:include name='title'/>     
</h1>     
<b:else/>     
<p class='title'>     
<b:include name='title'/>     
</p>     
</b:if>
Hãy tùy chỉnh lại CSS trong blog của bạn