Are you looking to add header or footer code to your WordPress website? One method would be to go into your theme’s files to edit the PHP yourself which can be daunting for new users. In this video, we will show you how to insert header and footer code in WordPress the easy way.

For this video we will be using the Insert Headers and Footers plugin that WPBeginner maintains found here:

With the plugin installed and active, you can go under your Settings, Insert Headers and footers section in your admin area to see the two text areas where you can insert code. The top section is for code that should be in the head of your site while the bottom is for placing code above the end /body tag.

The plugin allows you to make this change and if you update your theme the code modification will stay rather than being overwritten.

Without the plugin, you would manually need to go under Appearance, Theme Editor and choose the files that you want to add the code to. When adding code using this method you will lose any modifications if you update your theme.

If you would prefer the written version of this article, feel free to take a look at our written tutorial here:

If you liked this video, then please Like and consider subscribing to our channel here for more WordPress videos.

Check us out on Facebook

Follow us on Twitter

Check out our website for more WordPress Tutorials