That smiley face on your WordPress Footer?

28

Recently I saw a unexpected visitor suddenly appearing on my footer. A unusual guest named smiley, yes really! As I was doing a regular check on browsershots.org to see how my website was displaying in all the main browsers I noticed a random gap after the footer with a small smiley face in the bottom left corner and sure enough I saw it for myself when I checked it out in my internet browser. What was causing the uninivited guest to appear? Read on to find our the cause of this weirdness!

I did a bit of debugging and started looking at my current list of WordPress plugins, at first I thought WP Super Cache was causing the random smiley face to appear but quickly found that not be the case as I’d deactivated the plugin and the random smiley face was still appearing. I also tried viewing the source code but this didn’t help either as no reference to the smiley face was found on any line in the footer. So what was causing the problem? Turns out it’s the WordPres.com Stats plugin that adds the random smiley face to your footer. The actual reason why this smiley is there is for visual confirmation that the WordPress Stats plugin is actually working, but the smiley can’t be removed by directly editting the plugins php file. You can remove it though, by adding this line to your style.css in your WordPress theme:

img#wpstats { display:none; }

Once you have added this line to your style.css of your active WordPress theme the smiley face will take the hint and disappear. Though secretly it is actually still there, just CSS hides it for you and your viewers.

WordPress.com Stats Plugin

Thats how you solve the great mystery of the random smiley face but if you don’t have the WordPress.com Stats plugin already then you might want to consider installing it. It is an accurate stats system that is specifically designed for WordPress. Operating in the style of one of the best free website statisitics avaliable today, Google Analytics, the WordPress Stats plugin provides information on daily traffic hits, referrals, exact data on specific wordpress posts and loads more. If you have a WordPress website this is a must have plugin to be installed. You won’t be able to find a more accurate WordPress Stats plugin than this plugin!

Click to download the WordPress.com Stats Plugin

Well enjoy you faceless footer, phew now you can get back to blogging with WordPress!

Share This:

  • I thought I showed you how to fix that a year or so ago?

  • Nope, I never asked you about this.

  • Thanks! I was wondering what that was and why it was there.

    • Ha ha no problem ๐Ÿ˜€

  • James’ Blog ยป Seeing a smiley face on your WordPress Footer? great article thank you.

  • thanks dude, helped me solve a minor aggravation

  • Jay

    Thanks so much!

  • Raf

    I actually kinda like the smiley face being there on blogs all around the web. The little fella seems to have its own life, following me around as I read wordpress blogs ๐Ÿ™‚

  • John

    Just letting everybody know that display:none will prevent stats from loading.

    Don’t follow the advice given by the OP.

    Instead use:

    img#wpstats {
    height:0;
    overflow:hidden;
    }

  • Thats strange. I’ve been using display none on img#wpstats on my blog for ages and this has not affected my WP stats from loading?

  • So this solves my mystery on what that smiley is on some major blogs I see! I will try installing it too.. Thank you!

  • Pingback: penis enlargement pills()

  • Definitely the most annoying plugin feature ever. What were they thinking????

  • Definitely the most annoying plugin feature ever. What were they thinking????

  • Jade

    For me the smiley face appeared in my header. I put that bit of code in, and the smiley disappeared, but it still ruined my header placement. I tried deleting the stats plugin, resetting the theme, but nothing worked. Any ideas on how to get my header placement back to normal?

  • Jade

    For me the smiley face appeared in my header. I put that bit of code in, and the smiley disappeared, but it still ruined my header placement. I tried deleting the stats plugin, resetting the theme, but nothing worked. Any ideas on how to get my header placement back to normal?

  • Kennedy

    Thank you–great article!ย  I’m reassured when I see the smiley face that I am in a safe place–WordPress.

  • Kennedy

    Thank you–great article!ย  I’m reassured when I see the smiley face that I am in a safe place–WordPress.

  • Pingback: Questions About Woodworking Projects For Girls | Woodworking Plans()

  • Thanks for this! I was developing a website & a mobile site & it showed-up on both, I was like W.T.F… done a quick search & found this post! I love the Interwebs ๐Ÿ™‚ย  PEACE!

  • Thanks for this! I was developing a website & a mobile site & it showed-up on both, I was like W.T.F… done a quick search & found this post! I love the Interwebs ๐Ÿ™‚ย  PEACE!

  • Pingback: Your Questions About Woodworking Projects For Girls | Patterns for Woodworking()

  • Pingback: Wordpress Analytics | The-IT-Blog()

  • Freddie Carlsson

    Thanks a bunch man!!

  • Freddie Carlsson

    Thanks a bunch man!!

  • Pingback: dewalt table saw()

  • Pingback: The illustrious evolution of the Smiley Face graphic()

  • Ivan

    Thank you sir!