![]() |
placing a few ad banner in header area
Hi
First of all thanx for this excellent theme! I am totally overwhelmed by the flexibility and tweak-options. One thing i can't figure out and that's how to place a few small ad banners linking to advertisers in the header area. The banners will not overlap the RSS or search field, thus remain to the left. Three half size banners would be the ideal situation... all linking to their own advertiser. I just replaced the logo image with one half size banner. This is my website -> www.monochrome.nl Now i'd like 3 of these banners.... and with a correct link and not only linking to the homepage. Is this possible... and how??? |
Small correction... i would like to place the ads in the logo area.
Thanx in advance and a donation is made. Keep up the good work! |
At A. Theme Options -> Header, delete what you have at Show Logo Image? and leave Show Blog Title? and Show Blog Tagline? at No as you have it now.
In functions/bfa_header_config.php, find at around line 98, this: PHP Code:
PHP Code:
To customize the three table cells containing the banners, add via HTML/CSS Inserts -> CSS Inserts HTML Code:
td.header-banner { You've set your width to 99% with a min-width of 1024px and a max-width of 1024px. You could achieve the same by putting "1024px" into Layout -> Layout WIDTH and type (FLUID or FIXED). Also, you should set this to 1000px instead because right now you have horizontal scrollbars. The vertical scollbar needs room, too. The max width that works in all browsers for 1024px screens without causing horizontal scrollbars is 1004px. Thank you for the donation |
Thanx Flyn!!
It took me a while to figure it out, but now it's done i'm really happy with the results. I only have to figure out how to get some space between the two banners and get the sponsor banner to open in a new window. Cheers Frank |
To open links in a new window add the bold part to the link
<a target="_blank" href=".... To get spaces between the banners use the CSS I posted above and put values in there HTML Code:
td.header-banner { The result would be a 20 pixels space on the right side of each banner. |
Thanx again Flyn!! The banner opens a new window. The spacing somehow doesn't work. I checked the bfa_header_config.php and the code is exactly like you posted, except i left the td tag open to include the link info.. like this. Or should i leave the <td> behind the "header-banner" and open another <td> in the next line?
Sorry to ask so many question... i can hardly understand HTML, so all i can do is copy/paste :o Quote:
|
My fault, I added !important to the CSS code in post #5 now. Please try again with the code above it should work now.
It didn't work because it could not overwrite the default style for table cells in the logoarea-table. |
Hahahaha... i'm really just copy-paste level :)
Thanx again Flynn !! And it works |
Flynn...this new theme is awesome. Similar to monochrome I'd like to use the header area to serve ads. However, unlike him/her I wanted to remove the page link menu and replace it with a 728 x 90 and keep the logo/blog title intact. The explanation you provided didn't seem to fit...is this possible? Thanks again...donation coming your way.
Mike |
In bfa_header_config.php find
PHP Code:
PHP Code:
To move the banner around give the td an id, then add styles at CSS Inserts $logo_area .=' <td valign="middle" id="my728banner"> YOUR BANNER CODE </td>'; CSS Insert: HTML Code:
td#my728banner { |
Flynn-
I must be a moron, but I can't locate the bfa_header_config.php. I'm using the new theme 3.32. Thanks, Mike |
Nevermind...got it.
|
Flynn: Make adjustments to the code as suggested (with my ad code inserted):
// END of title/description $logo_area .=' <td valign="middle"> <SCRIPT> document.write('<scr' + 'ipt src=http://ad.doubleclick.net/adj/keeperleaguegm.fsv/home;sect=home;fantasy=yes;game=no;tile=1;dcopt=is t;sz=728x90;ord=' + random_number + '?></scr' + 'ipt>'); </SCRIPT> <NOSCRIPT> <A HREF="http://ad.doubleclick.net/jump/keeperleaguegm.fsv/home;sect=home;fantasy=yes;game=no;tile=1;sz=728x9 0;ord='+random_number+'?" > <IMG SRC="http://ad.doubleclick.net/ad/keeperleaguegm.fsv/home;sect=home;fantasy=yes;game=no;tile=1;sz=728x9 0;ord='+random_number+'?" border="0" height="90" width="728"></A> </NOSCRIPT> </td>'; Then I got this error on the site: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/keeperle/public_html/wp-content/themes/atahualpa332/atahualpa332/functions/bfa_header_config.php on line 122 Suggestions? Thanks, Mike |
Quote:
Sounds like a good work-around for not being able to customize the links of the image block..! |
You can create widget areas anywhere in the layout. There was a thread about this here on the forum
|
Ok , i'am haveing problem moveing around the new banner on my blog .
Everything works grate , but the banner is not in the middle like i want to ... i follow all the steps and still nothing.... This is my header_config.php : // END of title/description $logo_area .=' <td valign="middle" id="my728banner"><a target="_blank" href="http://www.weddingpro.ro"><img src="http://anzia.ro/images/weddingpro2.jpg" border="0"></a> </td>'; And this what i added on Css Inserts : td#my728banner { margin: 100px 100px 100px 100x; } #sbsl27_1 { width: 100%; } ul.rMenu { background: transparent; margin-top: 215px; margin-left: 2px; padding: 0px; position: absolute; width:auto; z-index:4; } ul.rMenu li { background-color: transparent; } ul.rMenu li a:link, ul.rMenu li a:hover, ul.rMenu li a:visited, ul.rMenu li a:active { font-weight: bold; } #imagecontainer { position:absolute; width:100%; z-index:3; } #sbsl6_3 { width: 100%; } Can anyone tell me what i'am missing ? |
You cannot have margin on a table cell.
td#my728banner { margin: 100px 100px 100px 100x; vertical-align: middle; text-align: center; } |
1 Attachment(s)
Hi,
and thx for this great theme !!!! IŽd like to have a Leader (728x90) on this place here @ center... Please HELP:) |
I've been running a 468x60 ad in the logo area at damtrends.com. People like the placement so much that I've already gotten 2 inquiries about it. Is there a way I can set up a rotation of 2 or more ads in that same space in the logo area?
|
This will not rotate them but display a random one on each page view:
PHP Code:
|
How is it possible that there is not an easy way to add html code to the banner area so we can rotate affiliate banner links? This seems pretty basic for any modern website.
|
So I have been all through bfa_header_config.php and the following code is just not there. (newer version?)
Code:
// END of title/description Thanks in advance for any/all help! |
All times are GMT -6. The time now is 02:09 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.