[Plugin: Google Analytics for WordPress] What to do if theme does not use footer.php
-
I have recently installed a new CMS-style theme for WordPress — http://carringtontheme.com/. This theme is different from any I have used before, in that it does not use the default template files — header.php, footer.php, page.php, etc — in the normal way.
In each template file it has only a couple lines of php code and this note:
// NOTE: this file is here for compatibility reasons – active templates are in the footer/ dirI have been using google-analytics-for-wordpress plugin v2.9.3 for some time with good results. However, changing to Carrington theme creates a problem.
I get an error with plugin because footer.php does not call wp_footer. I see the error and I see the fix posted on the plugin site.
However, as Carrington theme does not use footer.php I think it also does not use wp_footer. Adding wp_footer call to footer.php may not be effective or may cause add’l problem. So I am unclear on what to do.
I can see the GA code on some pages, but I am unable to check every page and I do not know how to tell if there are errors or broken functions that may not be immediately visible to me.
My question is whether I should stop using plugin and enter GA code manually into theme templates, ignore the error and hope it works anyway, or is there some fix or change for plugin that gets around the wp_footer requirement?
Thank you.
The topic ‘[Plugin: Google Analytics for WordPress] What to do if theme does not use footer.php’ is closed to new replies.