Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] Putting adsense above or below the header image area... (http://forum.bytesforall.com/showthread.php?t=3482)

saifullahraza Sep 16, 2009 07:15 AM

[SOLVED] Putting adsense above or below the header image area...
 
how to put the ads above or below the header image area?

visit my website where side bar google ads are available but where to put link ads and front banner? also how to put the post ads in this awesome theme?


please solve these things i dont want to change theme and will not even if you dont help. :p

regards
SAIF :)

cagsan Dec 19, 2009 01:45 PM

Hello, you can put in front of or above the image, but you have to make a little space between them, thats what I know.

Jozefs Dec 22, 2009 03:02 AM

Use a widget area and place your ad in the widget (with one of the many adsense plugins, or use the text -html plugin en copy the code directly). E.g. my header area config looks like this:

%bar1 %logo %bar1 <?php bfa_widget_area('name=topwidgetarea&cells=2&width_ 1=730&width_2=230&align=8&align_2=6&before_widget= <div id="%1" class="header-widget %1">&after_widget=</div>'); ?> %bar2 %cats %bar2

This gives me two "topwigets", one with a width of 730 px and one with 230px, enough space for two ads (big and small); I only use the big one and leave the small one empty. See www.diskidee.nl

If you want the ad above the logo place the wiget area before %logo ...

juggledad Dec 22, 2009 03:44 AM

if you are going to use the new widget area, make sure you are using 3.4.4

mathur.rajeev Nov 19, 2010 06:12 AM

Thanks Jozefs. I tried the way you explained. It works fine. The adsense started to show just below the header.

But there is a problem.

I have taken a link ad of the size 728*15. my banner size is 1000px. can i wrap the ad in 1000px strip of same color, so that it could look integrated.

juggledad Nov 20, 2010 05:04 AM

change the code to
HTML Code:

%bar1 %logo %bar1 <div id="my-head"> <?php bfa_widget_area('name=topwidgetarea&cells=2&width_ 1=730&width_2=230&align=8&align_2=6&before_widget= <div id="%1" class="header-widget %1">&after_widget=</div>'); ?> </div> %bar2 %cats %bar2
then add a css insert
HTML Code:

#my-head {background: #00ffff;}
(you may want to change teh color ;)

mathur.rajeev Nov 20, 2010 05:21 AM

Thanks JUGGLEDAD,

This littele code change made my day....


All times are GMT -6. The time now is 07:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.