This article provides steps and video tutorial on – How to add code to head tag in wordpress ?
Step by Step Guide
To add code to your websites head tags open your wordpress website’s admin dashboard or login if you haven’t already – you can login to wordpress by placing /wp-login.php behind your website url.
Now, we need to Edit – header.php file. Follow the steps below to find your header.php file
Go to –
2- Hover over – Appearance
3- Click Editor
4- Now an Editor Opens – Listing Several files.
5- Find and Choose header.php file
or skip steps 1 to 5 and instead place /wp-admin/theme-editor.php?file=header.php behind your domain/website url, this url will open header.php file in editor.
and in case you have a WordPress Network installation this method and url will not work instead you will need to use a url like this https://mrvirk.com/wp-admin/network/theme-editor.php
6- Towards the top of the file you will see <head> tags.
Add your code just above the closing head tag.
Save/Update the file.
Note: If you can’t find Editor. This solution is aimed at self hosted wordpress sites (wordpress.org), if you happen to be using free wordpress.com, unfortunately they don’t allow users to access theme editor or make changes to theme files, or even allow the user to install a plugin without upgrading the plan, you should read this – WordPress.com vs WordPress.org and may want to move to a self hosted wordpress site for piece of mind.
Use Cases for Adding Code to WordPress Head
The solution in this article works for all the above use cases.
If the article, helped please show support by sharing it on social network of your choice
Relevant Tags: how to edit head in wordpress, wordpress head, wordpress edit head, wordpress head tag, head tag wordpress, wordpress code editor, how to insert ad code in your wordpress site, add html tag to wordpress, add code to header wordpress, wordpress add code to header