WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Avoid WP-Stats little face at the bottom of my pages (10 posts)

  1. candreu
    Member
    Posted 6 years ago #

    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?

  2. lisamwise
    Member
    Posted 6 years ago #

    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.

  3. shaneholden
    Member
    Posted 6 years ago #

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

  4. candreu
    Member
    Posted 6 years ago #

    It works, shaneholden! Thank you!

  5. macharborguy
    Member
    Posted 6 years ago #

    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}

  6. Joshua Goodwin
    Member
    Posted 5 years ago #

    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.

  7. rekall
    Member
    Posted 5 years ago #

    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>

  8. popart
    Member
    Posted 5 years ago #

    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?

  9. Lloyd Budd

    Posted 5 years ago #

    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.

  10. Brade
    Member
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic