Kadence - Adding Code to the Head or Footer of your Site
Have you been instructed by an application to paste a code snippet into the head (<head> / header.php) or footer (footer.php) section of your website?
Often you are asked to add header and footer code in WordPress when trying to integrate with web services and applications like Google Analytics, Facebook Pixel, Google Adsense, Pinterest, Email Marketing, pop-up forms, etc.
By default, WordPress doesn’t provide an option to insert code into your website’s header and/or footer, but with the Insert Headers and Footers plugin, it's easy to do!
This quick guide will show you how to easily add header and/or footer code in WordPress, without directly editing your theme files.
- From your WordPress dashboard, head to the Plugins page
- Search for the plugin "insert headers and footers" and install and activate the "WPCode - Insert Headers and Footers" plugin
- Navigate to Code Snippets > Header and Footer
- Paste any of your codes here in the head or footer depending on what you are instructed to do. You can add multiple codes to the head or footer if needed.
- Save!