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] Adding wp_footer before body tag


  #1  
Old Jun 6, 2009, 05:39 AM
Chester's Avatar
Chester
 
21 posts · Jun 2009
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, 05:49 AM
juggledad's Avatar
juggledad
 
23,597 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, 12:18 PM
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 12:27 PM. Reason: Deleted another question that I found the answer for.
  #4  
Old Jun 6, 2009, 08:06 PM
juggledad's Avatar
juggledad
 
23,597 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, 05: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, 10:53 AM
juggledad's Avatar
juggledad
 
23,597 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 07:25 AM.
  #7  
Old Jun 7, 2009, 11:24 AM
Chester's Avatar
Chester
 
21 posts · Jun 2009
Quote:
Originally Posted by juggledad
There is code in the Atahualpa to executes an <?php wp_footer(); ?> at the end of the footer creation.
I'm so stupid. You gave me the final hint. I was already showing my suprise in my previous post the that wp_footer call wasn't in there, but it is. The fact is when you're logged in as admin, depending on you stats-settings it won't show it to you in the source, since you don't want it to count your own visits.

Once I logged out it was there, even without your option switched on.

Thanks and sorry.

ps. What do you think sofar? (warning; non-english site) www[dot]salek[dot]nl/blog

Last edited by juggledad; Jun 8, 2009 at 07: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 01:46 PM
[SOLVED] Probs w/tag line ariels Header configuration & styling 8 Jul 13, 2009 07:41 PM
[SOLVED] How To Create A Tag Cloud Page fromtheranks Atahualpa 3 Wordpress theme 2 Jun 23, 2009 04:26 PM
[SOLVED] Problem with viewing by tag and Shashin image plugin funkymuppet Atahualpa 3 Wordpress theme 2 Jun 10, 2009 11:24 AM
[SOLVED] Conditional Tag to exclude widget d_random Sidebars & Widgets 8 Jun 2, 2009 08:23 AM


All times are GMT -6. The time now is 12:29 PM.


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