How to Insert Ads in the Header of Your Website




Getting started

To get started, add a new plugin called Advanced Ads.

  1. Click Plugins > Add New
  2. Search for Advanced Ads
  3. Click on Install Now > Activate

Theme update problem

One problem you might run into with the method described below are updates of your theme. After you update your theme, your changes and therefore your banner ads will be lost.
To avoid losing your ads, learn all about child themes.


Insert ads using PHP

In your WordPress Dashboard click Advanced Ads > Placements. You are going to insert PHP within your HTML source code. Snippets of PHP code always begin and end with an angle bracket-question mark combination like the example below.

<?php if( function_exists( ‘the_ad_placement’ ) ){
} ?>



Your Cart