• Resolved candreu

    (@candreu)


    I have a little smiling face at the bottom of my pages what I think is created by WP-Stats plugin. Could I remove it?

Viewing 9 replies - 1 through 9 (of 9 total)
  • I don’t think so. It is generated by a javascript on stats.wordpress.com. It is called on line 96 in the stats.php file for the plugin. I believe this script creates the stats info for visitors, so you can’t just delete it. From other threads that I have read, it is there to let you know that WordPress.com Stats is working.

    Add this to your theme’s css file.
    img#wpstats{display:none}

    Thread Starter candreu

    (@candreu)

    It works, shaneholden! Thank you!

    do NOT use img#wpstats{display:none} to hide the smiley face. The developers of wpstats specifically state that anything that would prevent the image from loading will break your stats. They suggest to use this code instead…

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

    do NOT use img#wpstats{display:none} to hide the smiley face. The developers of wpstats specifically state that anything that would prevent the image from loading will break your stats. They suggest to use this code instead…

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

    Wouldn’t it still load? I think it would, even with display:none, since the official plugin repository’s entry for the plugin recommends that code, and it works for me.

    tried all of the above suggestions… then i put this in my footer.php after the call to wp_footer();

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

    Actually in the ReadMe file of WP-Stats, to get rid of the smiley face they say to use:

    img#wpstats{display:none}

    So, if the makers of the plugin say to use it, shouldn’t it be okay?

    You are all correct. Previously, the makers of the plugin (Andy Skelton and crew) did think display:none would break it and the FAQ used to say as such. Lately, it was updated to recommend display:none.

    Also recommended: not using a retarded plugin that generates smiley faces on your website.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Avoid WP-Stats little face at the bottom of my pages’ is closed to new replies.