[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 :) |
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.
|
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 ... |
if you are going to use the new widget area, make sure you are using 3.4.4
|
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. |
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 HTML Code:
#my-head {background: #00ffff;} |
Thanks JUGGLEDAD,
This littele code change made my day.... |
All times are GMT -6. The time now is 05:55 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.