HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Add Header and Footer Code in WordPress (the Easy Way)

113,884 views November 10, 2019 2:52

Watch on YouTube
ChannelWPBeginner - WordPress Tutorials

Description from the creator

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.

--Links--

►Written Tutorial - How to Add Header and Footer Code in WordPress (the Easy Way)
wpbeginner.com/plugins/how-to-add-header-and-fo…
►MonsterInsights monsterinsights.com/ Promo Code WPBVIP

--Top Resources--

Use Promo Code WPBVIP

►Best WordPress Contact Form Plugin wpforms.com/wpbeginner
►Best WordPress Analytics Plugin monsterinsights.com/
►Best Lead Generation Plugin optinmonster.com/
►Best WordPress SEO Plugin aioseo.com/
►Best Landing Page Builder for WordPress seedprod.com/
►Best WordPress Giveaway Plugin rafflepress.com/

--Related Videos--
►WordPress Tutorial - How to Make a WordPress Website for Beginners youtube.com/watch?v=DvbFBxKcORA
►WordPress Gutenberg Tutorial: How to Easily Work With the Block Editor youtube.com/watch?v=JjfrzGeB5_g
►What is SEO and How Does it Work? youtube.com/watch?v=JjfrzGeB5_g
►How to Install a WordPress Theme youtube.com/watch?v=ZIPQRQLAz90

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

wordpress.org/plugins/insert-headers-and-footer…

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 liked this video, then please Like and consider subscribing to our channel here for more WordPress videos.
youtube.com/subscription_center?add_user=wpbegi…

Check us out on Facebook
facebook.com/wpbeginner

Follow us on Twitter
twitter.com/wpbeginner

Check out our website for more WordPress Tutorials
wpbeginner.com
#WordPress #WordPressTutorial #WPBeginner

About this tutorial

WPBeginner - WordPress Tutorials published this 2:52 video tutorial on November 10, 2019. It has been watched 113,884 times on YouTube.

Duration
2:52
Published
November 10, 2019
Views
113,884
Likes
453

Tags

Share

This tutorial in other languages