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 »

Help Adding Javascript for Adsense To Header Area


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 Sep 15, 2011, 02:38 PM
table4five
 
12 posts · May 2010
My blog is Simply Elizabeth. I want to position a 728x90 Adsense ad in the space next to the logo and blog title.

I followed these steps that Flynn posted in a previous thread:

%pages
<table>
<tr>
<td>%logo</td>
<td>Google code</td>
</tr>
</table>
%image

This is the exact code:

%pages
<table>
<tr>
<td>%logo</td>
<td><script type="text/javascript"><!--
google_ad_client = "ca-pub-5906324363998740";
/* Simply Elizabeth */
google_ad_slot = "2116562860";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
</tr>
</table>
%image

After clicking save, no ad or placeholder appeared in the header.

I created a 728x90 colored rectangle as a sample and got that to work, you can see it in the header now. that code is:

%pages
<table>
<tr>
<td>%logo</td>
<td><a href="http://s152.photobucket.com/albums/s197/table4five/?action=view&amp;current=728x90SampleAd.png" target="_blank"><img src="http://i152.photobucket.com/albums/s197/table4five/728x90SampleAd.png" border="0" alt="Photobucket"></a></td>
</tr>
</table>
%image

My question is, will Javascript work in the Styling Header Area? Did I miss something? Any suggestions would be appreciated!

-Elizabeth

Last edited by table4five; Sep 15, 2011 at 02:44 PM.
  #2  
Old Sep 15, 2011, 03:10 PM
juggledad's Avatar
juggledad
 
20,010 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
worked for me. it may be that you don't have all PATCH's for 3.6.7 applied. Here are the links.
  • PATCH 367-01: Odd effects when 'CSS: Compress' = 'Yes'
  • PATCH 367-02 is incorporated in PATCH 367-04
  • PATCH 367-03: PHP errors when adding widget areas in index.php
  • PATCH 367-04: Hovering over a Post/Page title only shows "Permanent Link to"
  • PATCH 367-05: Site Title appended after the 'WordPress SEO by Yoast' title
  #3  
Old Sep 15, 2011, 05:07 PM
table4five
 
12 posts · May 2010
I installed all the Patches and I'm still not seeing the ad. Juggledad, if I PM'd you a temporary login to the site, would you be willing to take a look, see if you can figure out what I'm doing wrong? I'm driving myself nuts trying to figure this out!
  #4  
Old Sep 15, 2011, 06:17 PM
juggledad's Avatar
juggledad
 
20,010 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
sure, but like I said I added the code and I saw the ads

looking at the site, it still doesn't look like you have the patches applied

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Putting adsense in header image area jkfly4 Header configuration & styling 2 Jan 18, 2011 03:06 PM
Unable to add adsense code to header / banner area forwardmover Header configuration & styling 1 Dec 31, 2010 02:47 AM
[SOLVED] Putting adsense above or below the header image area... saifullahraza Header configuration & styling 6 Nov 20, 2010 05:21 AM
Configure header area for adsense debeerj Header configuration & styling 5 Jan 22, 2010 07:24 AM
Setting Up Adsense in the Header/Logo Area bill_g Atahualpa 3 Wordpress theme 2 Jan 18, 2010 01:06 PM


All times are GMT -6. The time now is 11:26 PM.


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