Today I am going to tell you how you can change your blog post title appearance for search snippets. Bloggers default theme uses "Blog Title: Post Title" as a post title for search snippets. But what if your blog title itself is very long and descriptive. It doesn't look good to see long titles even search snippet can show first 60 characters only.
Let's change this, follow below steps:
- First of all login to your blogger account.
- Select your "Blog Name" from your account dashboard, now your blog's dashboard will appear.
- Navigate to left side bar downside and click "Template".
- Select "Edit HTML" option.
- Now select the HTML pan and press Ctrl+F and paste below code in that to find this in that code window.
#<title><data:blog.pageTitle/></title>
- Now select this whole code in code pan and replace it with any of below code. First of all read what this code will do.
#This code will show your post title | blog name
<b:if cond='data:blog.pageType == "item"'>
<title><data:blog.pageName/> | <data:blog.title/></title>
<b:else/>
<title><data:blog.pageTitle/></title> </b:if>
#This code will show post title | My Name
<b:if cond='data:blog.pageType == "item"'>
<title><data:blog.pageName/> | My Name</title>
<b:else/>
<title><data:blog.pageTitle/></title> </b:if>
#This post will show only post title
<b:if cond='data:blog.pageType == "item"'>
<title><data:blog.pageName/></title>
<b:else/>
<title><data:blog.pageTitle/></title> </b:if>
After select and replacing save you template by clicking "Save Template". I use second and third code mostly for SEO purpose.
Hope you find this post helpful. Stay tune I will bring you awesome stuff for you. Ask and suggest your queries and topics.
No comments:
Post a Comment