Remove stats with CSS

  • Unknown's avatar

    Hi,

    I tried to add CSS as supernovia explained in this thread (https://wordpress.com/forums/topic/how-do-i-turn-off-stats/page/2/) to remove the stats (sparkline) from my admin bar.

    I think I have done it correctly with the browser plug in, in chrome with this CSS:

    wp-admin-bar-stats { display: none; }

    Removed the # because the plug in gave me some type of error code with it in the CSS.

    I still cannot get it to work, and the stats is still there, both under “My webpages”, and admin bar.

    Do I need another CSS code? Which would work? I mean, the above forum thread is kind of old…

    Hope I can get help, would like to remove the stats from my webpage log in. :-)

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    The CSS code in that thread from 2015 is for the sparkline we used to display in the black WordPress.com admin bar at the top of the page. We haven’t had a sparkline visible there for at least the past two years.

    If you want to remove it from appearing in the My Sites menu, you can use this code:

    .sidebar__sparkline {display: none;}

  • Unknown's avatar
    perceivingphotography · Member ·

    Hi,

    Okay. I have tried the code in your post, but nothing happens with the stats with that one neither. Maybe I am doing something wrong with the plug in…?

  • What is the URL of the site you’re trying to remove it from?

    And, just curious, why do you want to remove it?

  • Unknown's avatar
    perceivingphotography · Member ·

    The URL is this: http://greenfields00.wordpress.com/

    I don’t really care about the stats acctually, and they don’t seem to add up anyways (getting likes on my posts and followers when stats says no traffic at that time etc).

  • I still cannot get it to work, and the stats is still there, both under “My webpages”, and admin bar.

    Ok, I’m starting to understand what you’re referring to.

    The sparkline that the CSS was provided to remove is small graph which appeared in the admin bar at the top of the site.

    They hasn’t been around for a few years, but it looked like this: https://d.pr/i/95EUbw

    Instead, it sounds like you’re referring to the Stats section itself. Currently, there is no way to remove that.

    getting likes on my posts and followers when stats says no traffic at that time etc

    That’s because folks can Like and Follow your site from the WordPress.com Reader, without visiting your site.

  • Unknown's avatar
    perceivingphotography · Member ·

    Okay, I understand, thanks for explaining :-)

  • The topic ‘Remove stats with CSS’ is closed to new replies.