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



aaa

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)
https://www.wpbeginner.com/plugins/how-to-add-header-and-footer-code-in-wordpress/
►MonsterInsights https://www.monsterinsights.com/ Promo Code WPBVIP

–Top Resources–

Use Promo Code WPBVIP

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

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

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

WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager

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.
https://www.youtube.com/subscription_center?add_user=wpbeginner

Check us out on Facebook
https://www.facebook.com/wpbeginner

Follow us on Twitter

Check out our website for more WordPress Tutorials
http://www.wpbeginner.com
#WordPress #WordPressTutorial #WPBeginner

bbb

source

You May Also Like

About the Author: admin

Leave a Reply

Your email address will not be published. Required fields are marked *