Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

[SOLVED] Replace %logo in header with Ad code


  #1  
Old Mar 26, 2012, 12:44 PM
Chloe
 
54 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, 01:07 PM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Mar 26, 2012, 02:50 PM
Chloe
 
54 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, 03:43 PM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Mar 26, 2012, 04:12 PM
Chloe
 
54 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 11:29 AM
[SOLVED] How do I replace the text website name with a logo? Kesava Header configuration & styling 0 Jun 18, 2010 08:04 AM
How to replace logo pic with an ad banner newyorkchica Header configuration & styling 1 Jun 2, 2009 03:49 AM
replace "3 cubes" logo with custom logo image liontigerbear Header configuration & styling 3 May 13, 2009 03:07 PM
How to replace the image in %logo by an ad cafenett Header configuration & styling 2 Mar 17, 2009 08:36 AM


All times are GMT -6. The time now is 02:33 PM.


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