The code insertion function of wp_footer does not work for me. Yes, I have it in the right place. And yes, I am using the right code. To wit, copied straight from footer.php:
<?php wp_footer(); ?> </body> </html>
I am trying to use the Google Analyticator plugin to insert the code in the footer. FWIW, it won’t insert it in the header either. The CrazyEgg plugin, which also inserts code in the footer, doesn’t work either.
It doesn’t work on a plain vanilla WordPress install. It doesn’t work with the default (and untouched) themes. It doesn’t work with my own themes. It doesn’t work with the Options > Reading set to a static page for home. It doesn’t work with the home page showing my list of posts (the default behavior). It didn’t work on WP 2.1, 2.2, and now 2.3.
Does anyone know why? Could there be a server issue? Does anyone care enough to hunt this down with me? I’ll give you access to whatever you need.
Okay, so I’m a dumbass. For the betterment of other dumbasses out there, I will point out just in what way I am a dumbass.
Every plugin I have chosen to try, which professes to insert code using wp_footer, also offers the option to not do so if the visiting user is logged in to the blog and of a certain user level (e.g., Administrator).
I only ever (Ever!) checked the code while I was, you guessed it, logged in as an administrator.
It took two things happening for me to realize what was going on. Firefox crashed on me, so I fired up Safari (where I was not logged in), and it worked. And I tried the Ultimate Google Analytics plugin, which inserts a very helpful comment to the effect that the code was not inserted because you’re an Administrator. Dumbass!
My apologies to the good people of this board for wasting all y’all’s time.
- The topic ‘wp_footer() code insertion does not work for me’ is closed to new replies.