How to Disable or Hide WordPress.com Automattic Stats Plugin Smiley Icon

WordPress.com Stats plugin for self-hosted WordPress blog (aka Automattic Stats plugin) is a good and free web visitors statistics tracker for WordPress blogging platform. The WordPress.com Status plugin provides the most popular metrics, stats and information that a blogger wants to track in a clear and concise interface.

However, after activating and implementing WordPress Stats plugin, a small smiley face icon will be displayed at the bottom of the page. The smiley face, although tiny in size, may affect the overall look and feel of the blog, or causing confusion among visitors about the image that appears oddly at the bottom.

Luckily, it’s possible to hide the smiley face added by the WordPress.com Automattic Stats plugin, by using the following CSS hack.

To hide the smiley face of WordPress.com Stats plugin, add the following CSS code to the WordPress blog’s stylesheet (style.css):

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

Alternatively, add the following JavaScript code into the WordPress footer.php after wp_footer() declaration:

<script type=”text/javascript”>
var e = document.getElementById(”wpstats”);
e.style.width = “0px”;
e.style.height= “0px”;
e.style.overflow = “hidden”;
</script>

Note that the image is required for proper stats gathering and traffic tracking. Anything such as applying “display:none” to the image will cause the image not to be loaded by the browser and will break the stats.

One consent of using the CSS or JavaScript above is the usage of hidden overflow style, which may be treated as a hidden text or hidden link by search engines especially Google that may gives penalty to such implementation that may be perceived as untrustworthy since it presents information to search engines differently than to visitors.


3 Responses to “How to Disable or Hide WordPress.com Automattic Stats Plugin Smiley Icon”

  1. Christopher Ross
    March 25th, 2009 23:17
    3

    Hi there, I put together a quick plugin that inserts the CSS for users. I know it’s a bit overkill for anybody who’s comfortable editing their CSS files but for those who won’t (or can’t) edit it directly, you can download my plugin and have it taken care of for you.

  2. WordPress.com Stats Smiley Remover Plugin :: Christopher Ross
    March 24th, 2009 22:02
    2

    [...] For those of you who would like to know more about the Smiley Face frustrustration, Ryan Imel wrote a great piece on it a while back and there’s also a great piece on My Digital Life. [...]

  3. Baz L
    December 27th, 2008 09:10
    1

    I’m a bit confused. The FAQ for the plugin say that img#wpstats{display:none} is fine…

    Go figure.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.
Custom Search

New Articles

Incoming Search Terms for the Article

desktopsmiley fileNotFound - http://invite.desktopsmiley.com - desktop smiley fileNotFound - desktop smiley file not found - www.desktopsmiley.com - desktopsmiley Search - http://www.desktopsmiley.com/fileNotFound.do - desktop smiley file not found downloads - removing desktopsmiley.com - desktopsmiley.com/fileNotFound.do - how to disable desktop smiley - e.style.width wordpress - desktopsmiley.com/fileNotFound.do? - how to disable desktopsmiley - wp remove smiley stat - disable http://www.desktopsmiley.com/fileNotFound.do - disable dektopsmilies - hide stats smilie - wordpress.com stats smiley - hiding stats smiley wordpress - wordpress stats smiley - www.desktopsmiley.com/fileNotFound.do? - how to stop desktopsmiley search - remove http://www.desktopsmiley.com - remove smiley face wordpress - receive WordPress.com Stats by email - delete desktop smiley - how to remove desktop smiley - remove desktopsmiley.com from my pc - y - wordpress hide style.css - delete http://www.desktopsmiley.com from all pc - remove information column in wordpress - tiny smiley face icon free - turn off smiley face wp stats - desktopsmiley.comfileNotFound - hide wordpress.com stats - "desktopsmiley.com" remove - desktopsmiley.com remove - http://www.desktopsmiley.com - wordpress remove smilie face - wordpress disable stats - www.desktopsmiley - wordpress.com stats plugin missing header - Wordpress.com remove smiley - disable wordpress stat -