Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

[SOLVED] Adding wp_footer before body tag


  #1  
Old Jun 6, 2009, 04:39 AM
Chester's Avatar
Chester
 
21 posts · Jun 2009
[SOLVED] Adding wp_footer before body tag

Hi All,

We are planning to use the atahualpa theme as our 'new' theme, after running an exisiting weblog for over 2 years now.

Unfortunately it only seems possible to setup this theme while it is active. I would have loved to set it up and activate only when ready.

While swithing between the old and new theme, I noticed that suddenly our life-treatening wordpress stats are gone.

I need to place the world famous <?php wp_footer(); ?> tag just before the /body tag to make the stats work.

How do I do that? Please tell me this plugin will continue to work with atahualpa?!
  #2  
Old Jun 6, 2009, 04:49 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you can do that. See the option at ATO->HTML/CSS Inserts->HTML Inserts: Body Bottom
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jun 6, 2009, 11:18 AM
Chester's Avatar
Chester
 
21 posts · Jun 2009
Wow, thanks for the fast response!

I think I'm short of a little knowlegde here, I found the location but somehow it seems that putting: <?php wp_footer(); ?> there would not work.

It appears exactly like that in the source of the page. Should it look like that?

Last edited by Chester; Jun 6, 2009 at 11:27 AM. Reason: Deleted another question that I found the answer for.
  #4  
Old Jun 6, 2009, 07:06 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Oh, right, sorry been a long day and I'm tired. That spot is for HTML and this is PHP.

Does it have to be directly before the </body>? Nad do you want it in the generated code, or called just before the </body is written? I ask because it is being called when the page is generated, at the end of the page footer generation.

What plugin is using 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 Jun 7, 2009, 04:06 AM
Chester's Avatar
Chester
 
21 posts · Jun 2009
No problem, I'm happy you're here to help.
It is the Wordpress.com Stats - plugin. We are using it on a daily base and it just does a better job for me then Analytics for instance.

This is a copy from their FAQ:
= What if the stats don't start showing up? Do I need anything special in my theme? =

Yes, your theme must have a call to `<?php wp_footer(); ?>` at the very bottom right before the `</body>` tag.

I recall I've done this manually long ago, in one of the php files that I'm currently using in my current theme.
I even believe I read those days that this is a pretty standard call, that just seems to be left out on ...% of the templates.
  #6  
Old Jun 7, 2009, 09:53 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Try this out. (I can't run stats on my local machine and have installed it on my hosted blog, but it will take some time to generate teh stats)

go to ATO->Footer->Show number of queries & timer? and set it to 'Yes - visible'

There is code in the Atahualpa to executes an <?php wp_footer(); ?> at the end of the footer creation. This may be your solution without having to do any coding.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jun 8, 2009 at 06:25 AM.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing page name from Body. Also, adding links into Footer OrganicAnalyticsNow Atahualpa 3 Wordpress theme 19 Feb 23, 2010 12:46 PM
[SOLVED] Probs w/tag line ariels Header configuration & styling 8 Jul 13, 2009 06:41 PM
[SOLVED] How To Create A Tag Cloud Page fromtheranks Atahualpa 3 Wordpress theme 2 Jun 23, 2009 03:26 PM
[SOLVED] Problem with viewing by tag and Shashin image plugin funkymuppet Atahualpa 3 Wordpress theme 2 Jun 10, 2009 10:24 AM
[SOLVED] Conditional Tag to exclude widget d_random Sidebars & Widgets 8 Jun 2, 2009 07:23 AM


All times are GMT -6. The time now is 02:53 AM.


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