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.
0 comments:
Post a Comment