This article will help you to understand how to add meta tags in wordpress.
Why I need to add meta tags in wordpress?
These are following reason to add meta tag in wordpress
- To optimize your web site for more efficient indexing of your content by search engines and easier sharing on social networks.
- To title, headings, content, and Meta Tags such as description or keywords.
How can do it myself without impacting websites?
Meta Description is a summary of a page’s content, you can add meta tag manually, you can also use Theme template files or WordPress Plugins.
Adding Meta Tag manually
1: In your Dashboard, open your theme
Log into your dashboard and select Appearance -> Editor ( to access your current theme’s code).
2: Open your Header file
Find the file titled “Header or header.php” on the right hand side files in your template. This is the file you will need to edit or to add meta tags.
3: Add the meta tag
In the head tag of the header enter the meta tag information. The meta tags will use Swift type’s approved syntax:
<meta class=”swiftype” name=”[field name]” data-type=”[field type]” content=”[field content
Below this is an example meta tag for 24*7 WP Support. This may need to be edited depending on your specific theme and site.
// 24*7 WP Support
<meta class=”swiftype” name=”name” data-type=”string” content=”<?php echo get_the_page_meta(’email’, $post->post_page); ?>”>
Difficulty level [Easy, Medium, Hard].