Site logo

Archived topic

Page header 'cut-off'?

1 reply · Started by James on March 2, 2015

Viewing posts 1–2 of 2

I am wanting to use Adsense ads in my page header>content on single posts, but with a 728 x 90 ad size, I get a little cut-oo when it displays text ads:

Adsense cutoff

Is there a way to adjust the size of the page header area? Perhaps it is not high enough, so the ad gets squeezed?

Thanks,

The Page Header area takes on the width of the container, so you can always increase the container width of your website to allow for 728 ads.

Another option is to use GP Hooks, you could do something like this in the "After Header" area:

<?php if ( is_single() ) : ?>
      <div style="text-align: center;">
            Adsense ads in here
      </div>
<?php endif; ?>

That puts the ad on every single post (so you don't have to), and will keep it outside of the container.

This archived topic is closed to new replies.