Sunday, November 30, 2014

Easy Way to Declare Language in Blogger Platform


Declaring the default language of a website plays vital role for SEO. It helps search engines to know about the website language and they don't have to waste time detecting website language. If you want to make your blog / website SEO friendly then this is a must do. 
If you are on WordPress then you'll have built-in functionality for declaring website language but the user of blogspot/blogger are not so lucky. The people using blogger platform have to manually declare language by adding an HTML code inside your blog template. Today I'll show the easy way to do that.

Easy Way to Declare Language in Blogger Platform

The Lang attribute really helps search engines detect a websites language, So if your website is with any regional language or international then you have to declare it. Follow the step by step instruction for declaring language in blogger.

Step 1: From Blogger Dashboard, Go to Template > Edit HTML. (keep back up your template before edit)

Step 2: Search for <html 

You will find a code similar to this (it may vary by template or by more or less editing)
lang attribute
Fig 01: Code may appear like this image

<?xml version="1.0" encoding="UTF-8" ?>  
<!DOCTYPE html>  
<html b:version='2' class='v2'  
expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml'
Now just copy this code given below.
lang="en-US" xml:lang="en-US"
and paste it in the <html> tag as shown in the Fig: 02

insert lang attribute
Fig 02: Insert code after <html


It will look something like this

1
2
3
4
5
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:version='2' class='v2'
lang="en-US" xml:lang="en-US"
expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml'

Step 3: Save Template
US-English (en-US) is the default language attribute but if your website is of some other language then you can change en-US with the ISO code of your language.

ISO Codes for Language

If your website is of some other language then go to the link given below. There is a complete list of languages with respective ISO codes. Just replace en-US with your desired language code and Save Template.

ISO 639-1 Language Code List


So now you'll be easily able to declare your blog language using the tutorial given  above. If you think this tutorial is helpful, Please leave your comments below.

5 comments:

  1. What difference between declaring the language inside the html and declaring the language with meta tags --> META NAME="Language" CONTENT="English" ????

    ReplyDelete
  2. Very impressive article! The blog is highly informative and has answered all my questions.
    To introduce about our company and the activities, B2b contact list is a database provider
    that helps you to boost your sales & grow your business through well-build xhtml-language-executives-mailing-list

    ReplyDelete
  3. This platform is got pretty much anything you will ever need about movies. if you looking for series this is your best bet. figure looking for drama, action, and others then make this platform you go to from today. and I bet you that you will never want any more. Check out my post on Waptrick comedy and Waptrick.comedy for more. also, see this popularly recommended for you Waptrick games

    ReplyDelete
  4. Hope it clears the language issue in cookie notification

    ReplyDelete
  5. Good Article Fot Coding language. Thanks for sharing good information with us

    ReplyDelete

Contact

Name

Email *

Message *