Question to readers who know WordPress

It seems that when I change the wordpress theme, I lose my stats being counted through sitemeter etc.

hmmm… any ideas?

FacebookEmailPinterestGoogle GmailShare/Bookmark

About Fr. John Zuhlsdorf

Fr. Z is the guy who runs this blog. o{]:¬)
This entry was posted in SESSIUNCULA. Bookmark the permalink.

7 Responses to Question to readers who know WordPress

  1. Father George says:

    At least for wordpress.com (though .org may be the same), the only way to kick-start the widgets is too add another one (anything at all) and then after saving the changes and refreshing the page, erase the extra widget. Good luck.

  2. Father George: That doesn’t work with this problem.

  3. The sidebar widgets may not be recognized by the new theme; you may need to manually repopulate the sidebar if that’s the case. (I’ve experienced this in the past with my own website, though not specifically with the SiteMeter code snippet.)

    If, on the other hand, it’s hard-coded into the old theme, you may want to hard-code it into the new theme.

  4. It is hard coded in this present theme, I think. I am not sure where it has to go in the new theme, or how to write it.

  5. Okay, if we work with that assumption, you can embed the SiteMeter code in the footer.php file. In the WordPress dashboard*,

    1. Go to Design > Theme Editor.
    2. Using the drop-down menu on the right-hand side, select the name of the theme you wish to edit.
    3. Click “Footer (footer.php)” to bring up the footer.php file in the editing window.
    4. At the bottom of this file you will see </body></html>. Paste the SiteMeter code (provided in your SiteMeter Manager) before these two tags.
    5. Save.

    *I’m assuming a couple of things here: first, that you know how to edit themes from the WordPress dashboard (I think that’s a reasonably safe assumption); and second, that the new theme files are writable from the WordPress dashboard (WordPress will not display a “save” button if the file isn’t designated as writable.)

    You can also edit the new footer.php file on your local machine and upload it to the server if you’re more used to doing that.

    Hope this helps; feel free to e-mail if you have any questions.

  6. I don’t want to embed the sitemeter code. I want site meter and whatever other counter to be able to pick up the stats from the feed.

  7. Kaamakya says:

    Browse this site where you end up all A to Z things for shopping
    More informations on http://www.visitthebest.com