Display Banner Ads In Genesis

Displaying Banners ads, Google Adsense or any type of HTML, Image or links in Genesis is very easy.

WordPress offers a large range of conditional tags which make the job easy.

You could paste your HTML or ad code into a hook location using the Genesis Simple Hooks plugin.

The only problem is your ads will also be displayed on archive pages.

That’s why the conditional tags are so useful.

Genesis Simple Hooks Plugin

After installing this plugin, simply paste the code below into the hook location want to display your ads.

Genesis Simple Hook Locations

Execute Code

On Single Posts

<?php if (is_single() ) { ?>
<p>Code-Goes-Here</p>
<?php } ?>

On Single Posts and Pages

<?php if ( is_page() || is_single() ) { ?>
<p>Code-Goes-Here</p>
<?php } ?>

On Pages

<?php if (is_page() ) { ?>
<p>Code-Goes-Here</p>
<?php } ?>

On All Category Archives

<?php if (is_category() ) { ?>
<p>Code-Goes-Here</p>
<?php } ?>

By Post Type

<?php if ( 'book' == get_post_type() ) { ?>
<p>Code-Goes-Here</p>
<?php } ?>

When using images as your ads, you can use the Advanced Image Settings to:

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.