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 » Center area post/pages » Post-Kicker, -Byline & -Footer »

[SOLVED] How to Add Javascript to Post Footer (or Kicker)?


  #1  
Old Aug 10, 2011, 07:52 AM
LaneLester
 
76 posts · May 2010
North Georgia, NA
I'd like to put some Javascript ad code in the post footer space. I pasted it in the Multi-Post and Single Post Footer fields on the Post Info Items page.

It doesn't show up.

I'm using Ata 3.6.7, and I've applied the four patches.

Lane
  #2  
Old Aug 10, 2011, 11:12 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
I THINK you can add a new widget area to those boxes and then use a widget for the code.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Aug 10, 2011, 11:59 AM
LaneLester
 
76 posts · May 2010
North Georgia, NA
Thanks, Larry. I don't know if it's possible to add widgets any more. The "Add Widgets" section says you can, and then when I go to the Style Center Column to add the code, there's no place to put it. Instead, there's this message:

Quote:
Where are the 'Content ABOVE Loop', 'The LOOP' etc. options?They are now 'hardcoded' into Atahualpa's <code>index.php</code>. To edit the loop or to add custom code before/after the loop, manually edit <code>index.php</code>.

Since 3.6.5 custom PHP code isn't possible anymore in the Atahualpa Theme Options.
I guess I'll have to cram it into the single.php and so forth.

Later: I found the Quick AdSense plugin will do the job. I'd rather not mark this thread SOLVED in case someone knows an Atahualpa solution.

Lane

Last edited by LaneLester; Aug 10, 2011 at 12:30 PM.
  #4  
Old Aug 10, 2011, 03:51 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
You can put the widget code in the same place you were trying to put the ad code... I think.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Aug 10, 2011, 04:10 PM
LaneLester
 
76 posts · May 2010
North Georgia, NA
Quote:
Originally Posted by lmilesw
You can put the widget code in the same place you were trying to put the ad code... I think.
Well, I did try that. I put:
Code:
<?php bfa_widget_area('name=Post Footer'); ?>
in the "FOOTER: Single Post Pages" field.

In the "Add Widgets" section is this:
Quote:
Note: After you've added new widget areas, you'll need to reload a front end page 1-2 times before they get created and start appearing on the front end. And you'll need to reload WP->Presentation->Widgets 1-2 times before you can see the new widget areas there and start adding widgets.
I'm not sure what a "front end page" is, but I reloaded the home page a couple of times. I also reloaded the Appearance / Widgets page a few times, but only the sidebar widgets are there.

Lane
  #6  
Old Aug 10, 2011, 04:18 PM
juggledad's Avatar
juggledad
 
23,648 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
did you go to dashboard->appearances->Widgets and see if there was a new widget area and add a widget to it?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Aug 10, 2011, 04:48 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
I did say "I think" so the widget code may not work there but it looks like you have it figured out.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #8  
Old Aug 10, 2011, 04:54 PM
LaneLester
 
76 posts · May 2010
North Georgia, NA
Quote:
Originally Posted by juggledad
did you go to dashboard->appearances->Widgets and see if there was a new widget area and add a widget to it?
I went there, but there was no new widget area. I presume it would be under these, and it would say "Post Footer" since that's what I put in the code:

Quote:
Left Sidebar

Right Sidebar

Left Inner Sidebar

Right Inner Sidebar
Lane
  #9  
Old Aug 10, 2011, 05:15 PM
juggledad's Avatar
juggledad
 
23,648 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Well, I just copied teh code you have in post #5, put it in the Footer: Content, went and viewed the front page of my site and now when I go to dashboard->Appearances->widgets I see
Left Sidebar
Right Sidebar
Left Inner Sidebar
Right Inner Sidebar
Post Footer

So it works...
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #10  
Old Aug 10, 2011, 05:26 PM
LaneLester
 
76 posts · May 2010
North Georgia, NA
Quote:
Originally Posted by juggledad
So it works...
I think we have a failure to communicate. I don't want the ad in the footer; I want it in the post footer. That is different from the site footer, isn't it?

But I'm encouraged by your success. Please try putting the code in Post Info Items / FOOTER: Single Post Pages and see if it shows up.

Lane
  #11  
Old Aug 10, 2011, 05:53 PM
juggledad's Avatar
juggledad
 
23,648 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Agh, sorry. Nope it won't go there you need to edit index.php and put it in there
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #12  
Old Aug 10, 2011, 06:02 PM
LaneLester
 
76 posts · May 2010
North Georgia, NA
Quote:
Originally Posted by juggledad
Agh, sorry. Nope it won't go there you need to edit index.php and put it in there
OK, thanks for checking.

The Quick AdSense plugin provides good control of just what kinds of posts and/or pages the ads appear on. It also provides options for where on the page: above/below the post or even inside it.

Lane

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Put AddThis in Kicker or Footer nick51 Post-Kicker, -Byline & -Footer 8 May 12, 2010 08:12 AM
PHP goodies for kicker/footer? paulae Post-Kicker, -Byline & -Footer 5 Oct 14, 2009 08:13 AM
Add SHARE THIS icon below the post footer? eggd Post-Kicker, -Byline & -Footer 2 Aug 21, 2009 12:28 PM
Add photo in kicker which links to appropriate author Cece45 Post-Kicker, -Byline & -Footer 1 Apr 10, 2009 10:52 PM
Post / Page Info Items - Button crashes comp, how do I add to post-footer? Image help everygirlssecret Post-Kicker, -Byline & -Footer 1 Jan 5, 2009 01:12 PM


All times are GMT -6. The time now is 09:35 PM.


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