My stats counter stopped working after I changed themes. I’m told I need to add a line <?php wp_footer(); ?> to restart this. I right click on ‘Appearance’ on my dashboard, and activate ‘Inspect Element’. I have done a little programming, but not PHP. I am unable to add the line at the bottom as instructed. Exactly how do I add a line?
Any help much appreciated, Rob
You will probably need to edit your theme’s footer.php template file and add the stats code just before the closing
Thanks for replying. The problem is that I don’t know where to find the footer.php file and how to edit it. I tried to do this way: At my blog’s dashboard (I am using Twenty Ten Theme) I scrolled down to ‘Appearance’ and right clicked it and selected ‘Inspect Element’. I can see the PHP code and can see where I need to add the line of code at the bottom. But how do I edit this – or more exactly, what do I do to enable me to enter an ‘edit mode’, then (1) add a new line and (2) type the line of code I need, and then exit and save? Am I on the right lines here? Many thanks again, Rob
I will go ahead and try to create a child theme now- thanks for this. But as a matter of interest I don’t have an Editor option in my Appearance flyout menu. I gather that if I want to use Google Analytics, I will also need to use the Editor (at least that’s what Google Analytics say in their instructions). So at some stage I may need to use this Editor. I’ve seen a good YouTube video demonstrating this – it shows the Editor option under ‘Appearance’ in the screen shot and it all seemed very easy to do. The problem is, I don’t have the Editor option, and I’m stuck. Do I have to upgrade to the professional version of WorPress to get this option to appear? Many thanks again, and sorry to come back again to you. Once I’ve got over this hurdle I shall probably be fine with all this. Rob
Is this a wordpress.com site or a self-hosted WordPress install?
Thanks again for your reply, I appreciate this.
This is a WordPress.com site that I have not (as far as I am aware) installed any software onto my own computer for (for example, I cannot find any .php files on my hard drive).
The actual site is here:
I believe now that’s why there’s no Editor under my Appearance. The motive for all this is to restore my stats function, which were working fine from the time I created the blog for three days, then stopped. I started with the Twenty Ten theme, under which the stats worked fine. The stats stopped when I tried out a couple of other themes (e.g. Twenty Eleven) and then reactivated Twenty Ten.
I have also tried to solve the issue by deactivating all the Widgets, but without success.
Many thanks, Rob
These forums are for self-hosted WordPress sites only. Please try asking your question on http://en.forums.wordpress.com/
- The topic ‘Adding to get stats working’ is closed to new replies.