Meta tags provide an outline and keywords for your site. As search engine crawls your site, it looks out for minimal considerable information from your site and if such meta tags are available then it is better for search engine optimization. The word meta means information about. Search engine compares these words among similar sites and ranks these sites in order to place in better search engine findings. In a way, it helps search engines to look out for better ranking facilities. This article is a question of learning how to place meta tag information in the header.php of wordpress installation. Tags are attached to the header.php always remains invisible to normal visitors, but search engines can catch those tags and rank your website accordingly. Default installation of WordPress does not contain meta tag information, all these informations need to be added manually in order to create a suitable meta tag information for website.
These informations can be added manually or can be obtained through plugins. In this, writes up we will know how to add meta tags manually to header.php files of the default wordpress installation. It is safe and it does not put extra pressure on the server. Plugins needs to be updated regularly in order to keep safe entire wordpress installation.
What are meta tags?
Meta tags give concise information about your site. It provides information on the web page such as author, keywords, description, copyright, type of document and many more core information. From Meta tag, content width of wordpress can be controlled. In this approach, front end web page can be visible in large and wider way in order to give perfect settings for modern web browsers. This provides an example of meta tag for description, keywords, author, viewport and generators. SC1
The most common example of meta tag example include: SC2
Understanding basics of meta tags:
The second set of lines deals with content-type which means it will treat English as Unite States English not as United Kingdom English so it will treat the word “humor” as it is not as ‘humour’. That is why English language style is found for the page is in the United State, using the ASCII character set. It will send information to visitor’s browser to recognize a character as not being Chineese. The author and contact information is self explanatory, the description meta tag gives unique information about your blog, and the keywords are a list of popular categories which you can summarize to tell search engines to list your site in those specific-listings. It is important to create a complete correlation among description and keywords along with author’s name so that a complete and perfect integration. WordPress is a great platform, but it cannot perform things automatically, you have to provide information to it in order to create wonderful search engine optimization possibilities for your blog.
Are meta tags necessary?
In early days of internet, when there are always basic web browsers, which unable to find relevant informations. In such scenarios, meta tag provides useful and brilliant information from website. Now, after great browser competitions among different units of web browsers more and more browsers such as Firefox and chrome are being more sophisticated and extract such informations easily and do not get to solely depend upon website configuration to extract such informations.
Web browsers can easily figure out about the language of website, and Chorme provides automatic translation facilities in case you find a website in China. Google does not take meta tag for search engine ranking and they utilize their own inbuilt search engine algorithm in order to find the ranking of website.
Many search engines also discarded the idea of seeing meta tags for better search engine rankings as they appear to be exploited by webmasters in order to fetch better search engine rankings. In some searches such as site: mohanmekap.com Google does retrieve information from the meta tag to give a brief information about website.
Content is king and meta tags augment search engine optimization:
Content is king and it is the biggest factor for success of website and without it a website is nothing. People search queries in search engines in order to find relevant content and for this google always like to invite pages and websites which are giving proper content information and drank those sites which are making website for search engine optimization only. It is best to add it on website and continue giving impressive content so that it will boost more traffic and giving up valuable information to visitors.
Putting meta tags in word press website:
- Open cPanel X and reach to its ‘File’ interface.
- Right click on ‘File Manager’ icon and ‘open link in a new tab’
- You will reach to ‘File Manager Settings’
- From their reach to ‘public_html’ and from its right pane under heading of ‘Name’ reach to ‘wp-content’
- Then click on ‘themes’
- Select your currently activated themes from the list of themes.
- Wait for few seconds and it will fetch list of directory of contents inside active theme files.
- Double click on ‘PHP’ icon of header.php and save it on the local computer in order to retrieve it if at any time editing can go completely wrong path.
- Then single click on ‘PHP’ and then click on ‘code editor’ from top bar just under ‘Fole Manager Setting’
- A new popup window namely ‘Code Editor’ comes out.
- Click on ‘Edit’ of ‘Code Editor’ and it will open header. php in a new tab of live web browser.
- While opening header. php in web browser, click on ‘Ctrl+F’ in the keyboard and this will open a new search and replace window and from search place <head> and click find next to find the location of <head> inside header. php file.
- From there select as per the screen shot and replace it with following information.
<meta name=”resource-type” content=”document” />
<meta http-equiv=”content-type” content=”text/html; charset=US-ASCII” />
<meta http-equiv=”content-language” content=”en-us” />
<meta name=”author” content=”Harriet Smith” />
<meta name=”contact” content=”[email protected]” />
<meta name=”copyright” content=”Copyright (c)1997-2004
Harriet Smith. All Rights Reserved.” />
<meta name=”description” content=”Story about my dog
giving birth to puppies.” />
<meta name=”keywords” content=”stories, tales, harriet, smith,
harriet smith, storytelling, day, life, dog, birth, puppies, happy” />
<meta name=”viewport” content=”width=1000″ />
From above listing replaces [email protected] with your personal email, replace Copyright (c) 1997-2004 Harriet Smith. All Rights Reserved with blog information and replace Harriet Smith with your name.
Customize meta tag for your site:
In Content, replace story about my dog giving birth to puppies, to a tag line which represents your blog. Change meta name key word stories, tales, harriet, smith, harriet smith, storytelling, day, life, dog, birth, puppies, happy with keywords from your blog, like my blog mohanmekap.com represents, technology, lifestyle, business and you can examine your blog and add those keyword under meta names ‘keywords’ segment, and finally in meta name view port make content width to 1000 as it is and this makes your website wider and more suitable for modern web browsers. By default WordPress theme gives tour website a smaller and leaner look but by making viewport to 1000, you can make it wider and perfect for viewing. Now, after putting all those relevant keywords, delete all those information between <head> and <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
Then put these meta tags in between those two tags.
Then click on ‘Save Changes’ from the upper right hand side of header.php file. Open your website in a new browser to see whether your website is working properly or not. If it is showing errors then replace header.php with your own back up header.php files. If you follow all informations correctly, then you do not need to worry about errors. It is your own responsibility to work out edits and if it does give you a headache, then it is better to use some plugins in order to effortless additions of meta tags.
In brief to add meta tags to your site, add them to the header.php template file, and it is better to access this through hosting panel, avoid accessing this through WordPress theme. There are some meta tag plugin in the WordPress directory which allows you to make use of customized meta tags but it is always better not to use so many plugins. In the subsequent post, we will learn about conditional tag query and generic meta tags.