Wordpress tip: Hide WP Stats Smiley

Wp Stats is a great Wordpress plugin that displays useful statistics on your dashboard such as Top posts & Searches. However, it will display a small smiley at the bottom of your page.

Here I’ll show you how to hide the smiley so that it does not disrupt your beautiful layout.

Just insert this code snippet at the end of your main css file, normally called “styles.css”:

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

The code above will reduce the image size to 0 and thus makes the smiley disappear. If something is still out of place in the immediate vicinity of the smiley, it is probably due to borders or spacing elements being applied to the image. Add these additional lines of codes between the “overflow:hidden;” and the closing curly bracket:

margin:0;
border: none;
padding:0;

On a last note, while doing the above will hide the image, the browser will still download it. DO NOT USE display:none to remove the smiley because that would prevent the statistics tracking from working because the image would not be loaded at all by the browser. For more tutorials and tips subscribe to our RSS, we update regularly.

3 Comments

  1. I’ve recently started a blog, the information you provide on this site has helped me tremendously. Thank you for all of your time & work.

  2. One again, your idea is very

    good.thank you!very much.

  3. Finally got that little thing off my page! Thanks for the tip

Post a Comment

Your email is never shared. Required fields are marked *

*
*