More over webmaster and SEO master always find the way to add meta tag inside head section of wordpress website. You can also check meta tags important on your website traffic directly from top best search engines. Know more about meta tag from official site click here. From this post you can learn about why we have to add meta tags inside wordpress website and how to add meta tags in inside head section of wordpress body.
Don’t miss: Top best free directory submission site for website.
Using this methods you can also add google analytics code inside head tag of wordpress website.
Note: Using this method for add meta tags in side head section you don’t need any meta tags wordpress plugins.
2. Meta tag defines description, title and author of website or blog.
3. It also helps to blog some url from search engine for all time.
4. Meta tags have hundreds of name and value parameters.
From the dashboard go
Appearance > Editor
From that you have to open functions.php file.
Step 2
Go functions.php file from righ side bar of wordpress dashboard. (Given in below)
image
Past below code in function in side php tag. Given in below.
function add_meta_tags() {
echo '<meta content="index, follow" name="robots" />';
echo '<meta content="1 days" name="revisit-after" />';
echo '<meta content="all" name="robots" />';
echo '<meta content="all" name="googlebot" />';
echo '<meta content="general" name="general" />';
}
add_action('wp_head', 'add_meta_tags');
Step 3
After adding file click on save button file
Now you are done,
Related search:
• How to add bing meta tag inside head file in wordpress.
• How to add more than one meta tags inside head in php code file.
Useful: Top best keyword density checker tools for your blog or website.
I hope you have solved your solution. If you are not able to add meta tads inside head section on wordpress code file than comment in below. If you like this article on your search how to add meta tag inside php code file don’t miss to share.
Don’t miss: Top best free directory submission site for website.
Using this methods you can also add google analytics code inside head tag of wordpress website.
Note: Using this method for add meta tags in side head section you don’t need any meta tags wordpress plugins.
Add meta tags inside head tag |
Why we have to add meta tags in head section of wordpress php file
1. Meta tag guide to search engine for indexing with time to time.2. Meta tag defines description, title and author of website or blog.
3. It also helps to blog some url from search engine for all time.
4. Meta tags have hundreds of name and value parameters.
Steps to add wordpress Meta tag inside head tag of wordpress website through code – without plugin
Step 1From the dashboard go
Appearance > Editor
From that you have to open functions.php file.
Open function file of your WordPress website |
Open Functions php file from side files |
Step 2
Go functions.php file from righ side bar of wordpress dashboard. (Given in below)
image
Past below code in function in side php tag. Given in below.
function add_meta_tags() {
echo '<meta content="index, follow" name="robots" />';
echo '<meta content="1 days" name="revisit-after" />';
echo '<meta content="all" name="robots" />';
echo '<meta content="all" name="googlebot" />';
echo '<meta content="general" name="general" />';
}
Meta code inside function php file |
Step 3
After adding file click on save button file
Now you are done,
Related search:
• How to add bing meta tag inside head file in wordpress.
• How to add more than one meta tags inside head in php code file.
Useful: Top best keyword density checker tools for your blog or website.
I hope you have solved your solution. If you are not able to add meta tads inside head section on wordpress code file than comment in below. If you like this article on your search how to add meta tag inside php code file don’t miss to share.
Pretty good post. I have just stumbled upon your blog and enjoyed reading your blog posts very much. I am looking for new posts to get more precious info. Big thanks for the useful info. buy cheap traffic
ReplyDelete