1. Log in to your WordPress admin panel
2. Go to Appearance > Theme File Editor (or Theme Editor)
3. Select your active theme's header.php file
4. Paste the LegalBanner script tag just before the closing tag:
``html
`
5. Click Update File
Option 2: Plugin (Insert Headers and Footers)
If you prefer not to edit theme files:
1. Install the Insert Headers and Footers plugin (by WPCode)
2. Go to Settings > Insert Headers and Footers
3. Paste the LegalBanner script tag in the Scripts in Header box
4. Save
Option 3: functions.php
Add to your theme's functions.php:
`php
function legalbanner_script() {
echo '';
}
add_action('wp_head', 'legalbanner_script');
``
Important Notes
The LegalBanner script should load before Google Analytics, Meta Pixel, and other tracking scripts
If you use a caching plugin (WP Super Cache, W3 Total Cache, etc.), clear the cache after adding the script
The script works with all WordPress themes, including block themes (Full Site Editing)
No WordPress plugin is needed - the script tag approach is the recommended method