Add Code to Your Website Header or Footer
Some third-party services, such as Google Analytics, Google AdSense, Pinterest Rich Pins, Facebook Pixel, or verification tools, require you to add a small piece of code to your website.
Rather than editing your theme files, we recommend using the free WPCode plugin. This keeps your code safe during theme updates and makes it easy to manage.
Install WPCode
Step 1: In your WordPress dashboard, go to Plugins → Add New.
Step 2: Search for WPCode – Insert Headers and Footers.
Step 3: Install and activate the plugin.
Add Your Code
Step 1: Go to Code Snippets → Header & Footer.
Step 2: Paste your code into the location specified by the service you’re using:
- Header (sometimes called
<head>orheader.php) - Body
- Footer (sometimes called
footer.php)
Step 3: Click Save Changes.
Your code is now active on your website.
Which Location Should I Use?
Different services use different terminology and may ask you to add code to different parts of your website.
For example:
- Header – Google Analytics, Pinterest Rich Pins, verification codes, Google Search Console
- Body – Some tracking and marketing tools
- Footer – Chat widgets, analytics, and other scripts
Always follow the instructions provided by the service you’re connecting.

Helpful tip:
Never edit your theme’s header.php or footer.php files directly. Using WPCode ensures your custom code is preserved when you update your Hello You Designs theme.
