Select Page

A website header is one of the most valuable areas of your website because every search engine come here first to read the rule. Add Header Footer Code In WordPress Websites Theme is a little bit difficult for new blogger because different theme has different coding way,

Add Header Footer Code In WordPress

Header Footer

In this tutorial, I will cover both manually and through the plugin, method to easy your job.

While some theme frameworks like Genesis framework have a built-in option for quickly adding code and scripts to your WordPress header or footer. If you’re using the Genesis Framework, you’re in luck! Add Header Footer Code In WordPress head section of your website is ridiculously easy!

  • Go to Genesis > Theme Settings. Scroll down to the bottom and find the section titled Header and Footer Scripts.
  • Paste your code into the first box titled Header Scripts.
Genesis Header and Footer setting

Genesis Header and Footer

  • Click save and you’re done!

Add Header Footer Code In WordPress Websites

As the Header and Footer plugin is free to use, it can be installed on your site directly from the WordPress plugin directory.

Header and Footer plugin walllpaper

Header and Footer plugin

  • To do so, log into your site’s admin area and
  • Then navigate to Plugins > Add New using the sidebar menu.
  • From the Add Plugins screen, enter ‘Header and Footer’ in the search field and then install the first item listed in the results.
Add new plugin in wodpres

plugin

  • Once the plugin has been installed and activated, it can be accessed from the Header and Footer item under the Settings menu on the admin sidebar.
  • By selecting the appropriate tab, you can then write or paste your code snippet in the way that you want.

More information on using this plugin can be found on the Header and Footer section of the developer’s website.

Now, what if you’re not using Genesis and you’d rather not install another plugin? You’ll have to insert your code manually into your WordPress theme. It’s important to note that when and if you install a theme update, your edits will be deleted and you’ll have to add them again. If you’re using a child theme, you should be okay, but if not, you might want to consider using the plugin mentioned above.

Insert Code Manually Into WordPress Theme

  • Find your themes header.php file. You can find it by going to Appearance > Editor and looking for it on the right side of the screen.
Theme editor in wordpress

Theme Editor

  • Once you have your header.php file open, find the line with </head> .
Paste code in Editor above the theme

Paste Code

  • Enter a new line above it and paste your code. Save your changes. That’s it.

Note:-  Some themes will come with settings where you can enter your code into a designated area, much like the Insert Headers and Footers plugin above. It’s definitely a good idea to look into your theme’s documentation to see if that option is available.

For example, the Divi theme has the option available by going to Divi > Theme Options, clicking on the Integrations tab, and entering the code into the box labeled “Add code to the </ head> of your blog.”

Warning:- Please Do not edit, replace or disturb the existing code

Recommended Post

Conclusion

This plugin gives you an easy to use interface for adding code to the header and footer sections of your WordPress website. Hopefully, you should now be able to customize your website with confidence and add additional code snippets as needed.

Remember to share this post with anyone who might benefit from this information, including your Facebook friends, Twitter followers and members of your Google+ group! And also Support Us By Liking Our FacebookTwitter, and Google+ Page.

If you have any suggestion or problem about  Add Header Footer Code In WordPress please feel free to comment below.

Follow me

Harvinder Singh Sharry

owner at Hitechwork
I'm Professional Blogger, SEO, and Digital marketing expert. I started my blog in 2016 with the aim to share my knowledge and experiences for the people associated with my field as well as for the general public.
Follow me

About The Author

Jack Anderson

I'm Professional Blogger, SEO, and Digital marketing expert. I started my blog in 2016 with the aim to share my knowledge and experiences for the people associated with my field as well as for the general public.

Pin It on Pinterest

Shares