Advertisement:

Author Topic: Inject Adsense ads in specific position in header  (Read 498 times)

Aficionado

  • Guest
Inject Adsense ads in specific position in header
« on: December 22, 2017, 06:23:30 pm »
Hi.

I want to inject a responsive adsense script (ad) in the empty header space (right to the site LOGO) as shown at the capture. I'm using OsclassWizards theme, but other can benefit also.

So far, i have failed to do so. Any help much appreciated. thanx.


mrtsoftware

  • Sr. Member
  • ****
  • Posts: 343
Re: Inject Adsense ads in specific position in header
« Reply #1 on: January 16, 2018, 10:15:45 am »
I do not recommend to place adsense there, you can fill space between logo and " publish ads" button as mine...You can add some ectra button like " contact, register, forum " etc...

Try to place adsense below within content....

See secreenshoot of mine and please comment if something wrong

By the way, how to do you solve adsense responsive view on mobile devices for wizards theme?
On mobile devices adsense is overflowing outside container ( expecially 728x90 under search banner )


Aficionado

  • Guest
Re: Inject Adsense ads in specific position in header
« Reply #2 on: January 16, 2018, 11:21:21 am »
Why not place a banner in that wasted space ?

As for your question, have you tried the Adsense responsive type of ads ? I don't know if it works ok related to your problem with the theme, but you could try.


mrtsoftware

  • Sr. Member
  • ****
  • Posts: 343
Re: Inject Adsense ads in specific position in header
« Reply #3 on: January 16, 2018, 02:38:46 pm »
I do not use banner fo right now, I could not find ideal banner suits web site sector...may be later...

Yes, all my adsense codes are responsive...
Did you check your site on mobile device? is header ads not overflowing to right side as width 728?

mrtsoftware

  • Sr. Member
  • ****
  • Posts: 343
Re: Inject Adsense ads in specific position in header
« Reply #4 on: January 16, 2018, 02:57:07 pm »
<div class="ads_header ads-headers"> <?php echo osc_get_preference('header-728x90', 'osclasswizards_theme'); ?> </div>

Adsense is viewing withing above code in header,
into MAIN.CSS I could not find "ads_header ads-headers".
Probably no css coded for this container, that's way adsense if overflowing in mobile devices...