All posts tagged smiley face

How to remove the smiley face from a WordPress blog

So a little smiley face appears at the bottom of your blog, and it looks like this:

Well ain’t that the cutest thing! But what is it?

It’s the little .gif file that the WordPress Stats plug-in uses to monitor your page. It does so with some code like this…

<img src="http://stats.wordpress.com/g.gif?host=www.yoursite.com&rand=###############&blog=#######&v=###&post=#&ref=#" alt="" />;

…where the #’s are various characters. It’s all mystic WordPress voodoo which you don’t need to worry about.

Now I actually like the smiley face, but some people want to remove it from their blog. And it’s easy to do.

In wp-admin, head over to Appearance > Editor > style.css (or whatever your main style sheet is named). You then just add this bit of CSS:

/* Let's remove that WordPress Stats Smiley Face ! */
img#wpstats {
     display: none;
}

There you have it! We’re just using plain and simple css to remove the smiley face from the screen, but still loading it so the page view gets counted.

So now you know how to remove the WordPress Stats smiley face. The question is, do you really want to?!