Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

[SOLVED] Replace %logo in header with Ad code


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Mar 26, 2012, 11:44 AM
Chloe
 
42 posts · Dec 2009
Hello,

I want to replace %logo in the header with ad code like this: <?php echo adrotate_ad(1); ?>.

Can someone tell me if that will work and where to place it? I'm running Atahualpa 3.4.4

Thank you in advance for your help.
  #2  
Old Mar 26, 2012, 12:07 PM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
well you are on an old release of atahualpa wich is now at 3.7.3. my suggestions will be for 3.7.3

Add a new widget area to the 'Configure header Area' option
add a text widget to the new widget area
put the code in the new widget area
get iand install the 'exec-php' plugin
and that should do it.
  #3  
Old Mar 26, 2012, 01:50 PM
Chloe
 
42 posts · Dec 2009
Thank you! I'm almost there. I'm using this code to insert my ad to the left of the blog title and search box.

<?php bfa_widget_area('name=Header Widget&cells=2&align=1&align_2=9&width_2=450&befor e_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>');?>

I'd like to add a background color to widget 1, which contains the PHP code: <?php echo adrotate_ad(22); ?>. Can you tell me how to do that?

I appreciate your help.
  #4  
Old Mar 26, 2012, 02:43 PM
juggledad's Avatar
juggledad
 
20,001 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
you can add a CSS selector and rule to the 'CSS Inserts' option and use the ID that it generates for teh widget. You can eithor take a look at the source of the page to fine it or use the FireBug extension of FireFox to find it.
  #5  
Old Mar 26, 2012, 03:12 PM
Chloe
 
42 posts · Dec 2009
Thanks. That worked great!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to replace the logo in the header chavaden Header configuration & styling 2 Feb 28, 2011 10:29 AM
[SOLVED] How do I replace the text website name with a logo? Kesava Header configuration & styling 0 Jun 18, 2010 07:04 AM
How to replace logo pic with an ad banner newyorkchica Header configuration & styling 1 Jun 2, 2009 02:49 AM
replace "3 cubes" logo with custom logo image liontigerbear Header configuration & styling 3 May 13, 2009 02:07 PM
How to replace the image in %logo by an ad cafenett Header configuration & styling 2 Mar 17, 2009 07:36 AM


All times are GMT -6. The time now is 04:06 PM.


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