Number Goes U̶p̶?̶ Who Cares Where! — How to hide the "Analytics" page from your Dashboard (and upvote counts on posts)
I've been finding myself checking the analytics page on my dashboard way too much, so I decided to fix that. I played around inspecting the elements on the Dashboard until I found what I was looking for.
The Analytics page is found in the nav a
CSS block. The blinking Bear link is tagged as the last-child
. All I did was test if first-child
manipulates the Analytics link, which it does.
Here's the final code:
header nav a:first-child {
display: none;
}
Here's how it looks in the code itself, viewed from the Firefox Inspect tool:
And here's how it looks on my Dashboard:
I can still view the Analytics page manually whenever I want to, but it's not as easy to just check on impulse.
I also went ahead and removed the upvote count on my posts, using this simple code:
.upvote-count {
display: none;
}
I hope this is useful to anyone else who wants to avoid worrying about engagement, clicks, views, etc. I'm trying to ween off of that crap and focus more on what this blog is meant for—writing, reading, and connecting with other people.
Cheers!
ETA: I've just realized that this hides the "Home" page on the first part of the Nav bar as well. 😭 I'll mess around and see if I can come up with another hack, lol.
It still works for me; I just have my blog Dashboard bookmarked anyway, so I can easily jump back to the Home page whenever.
✘ Posted on — 01/01/25
✘ Last modified — 7 months, 3 weeks ago
✘ Link — https://blog.xavierhm.com/number-goes-up-who-cares-where-how-to-hide-the-analytics-page-from-your-dashboard-and-upvote-counts-on-posts