Title: How to Place Ad Code into Header Source Code?
Last modified: August 22, 2016

---

# How to Place Ad Code into Header Source Code?

 *  [TVRuckus](https://wordpress.org/support/users/tvruckus/)
 * (@tvruckus)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/how-to-place-ad-code-into-header-source-code/)
 * I am trying to figure out the correct way to place an ad code into the header
   source code of my site. I located the header.php file, but I’m not sure **where**
   to put the ad tag!
 * If I simply copy/paste the ad tag into the header source code directly underneath
   this point:
 * <title><?php wp_title(”); ?></title>
 * Should that work?
 * Thank you for your help and time! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [lisa](https://wordpress.org/support/users/contentiskey/)
 * (@contentiskey)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/how-to-place-ad-code-into-header-source-code/#post-5478254)
 * not sure what theme you are using but might be helpful to add a header widget
   for easy managing/changing later
    article that might help [http://wpshout.com/need-know-making-widget-areas-wordpress-themes/](http://wpshout.com/need-know-making-widget-areas-wordpress-themes/)
 * be sure you are using a child theme for all changes to templates (ie header.php
   etc.)
 * without a link to your website, it’s difficult to determine a suitable spot for
   an ad or where to put the code.
 *  Thread Starter [TVRuckus](https://wordpress.org/support/users/tvruckus/)
 * (@tvruckus)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/how-to-place-ad-code-into-header-source-code/#post-5478259)
 * Oh, okay; no problem there: [http://www.tvruckus.com](http://www.tvruckus.com)
 * Well, according to what I see, our Forefront theme has a child theme for template
   changes; it is called GeneratePress. That is where I found the header.php.
 * The ad tag is actually for a pop-up; the code we are being provided with can 
   be placed either in the footer or header.
 *  Thread Starter [TVRuckus](https://wordpress.org/support/users/tvruckus/)
 * (@tvruckus)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/how-to-place-ad-code-into-header-source-code/#post-5478264)
 * Or, actually, I may have that backwards; Forefront is a child theme of GeneratePress.
   This is what it says:
 * _Forefront is a child theme of GeneratePress_
 * It’s not recommended to add CSS to this file, as it will be lost if you ever 
   update this child theme. Instead, use a Custom CSS plugin.
 * Where do I get a plugin like that?
 *  [lisa](https://wordpress.org/support/users/contentiskey/)
 * (@contentiskey)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/how-to-place-ad-code-into-header-source-code/#post-5478271)
 * if you need a plugin to edit CSS:
    you can install jetpack plugin module “CUSTOM
   CSS”
 * CSS editors are not used for modifications to template files header.php files
 *  Thread Starter [TVRuckus](https://wordpress.org/support/users/tvruckus/)
 * (@tvruckus)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/how-to-place-ad-code-into-header-source-code/#post-5478280)
 * I thank you for your patience, as I am going thru this process for the first 
   time, and have no idea what I am doing.
 * So, are you saying then that CSS editing is a separate issue from the ad tag 
   that I am trying to add, and does not apply to what I am doing? If so, I’ll just
   forget about that completely, as I don’t want to make any actual changes to the
   theme or look of it; I just want to add this ad tag.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘How to Place Ad Code into Header Source Code?’ is closed to new replies.

## Tags

 * [ad code](https://wordpress.org/support/topic-tag/ad-code/)
 * [header.php](https://wordpress.org/support/topic-tag/header-php/)
 * [source-code](https://wordpress.org/support/topic-tag/source-code/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [TVRuckus](https://wordpress.org/support/users/tvruckus/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/how-to-place-ad-code-into-header-source-code/#post-5478280)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
