# How to hide click counter on internal anchor links in the same post?

**URL:** https://meta.discourse.org/t/how-to-hide-click-counter-on-internal-anchor-links-in-the-same-post/31377
**Category:** Development
**Tags:** click-counter
**Created:** [July 24, 2015, 4:41am UTC](https://meta.discourse.org/t/how-to-hide-click-counter-on-internal-anchor-links-in-the-same-post/31377 "2015-07-24T04:41:05Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [July 24, 2015, 4:41am UTC](https://meta.discourse.org/t/how-to-hide-click-counter-on-internal-anchor-links-in-the-same-post/31377/1 "2015-07-24T04:41:05Z")

</div>

There’s probably not much can be done about this and it might not matter to anyone else, but I see it as a bug - it’s odd to me that when I create a table of contents for a long wiki post that it then shows the click count next to each link. This could get pretty crazy and doesn’t really bring anything.

As exemplified on a [wiki page](http://community.namati.org/t/common-questions-about-using-the-network-platform/1467) I created on my site:

![](https://global.discourse-cdn.com/meta/original/3X/f/1/f1875e179b7f86d7c257e185f73377b296cd60c9.png)

Continuing the discussion from [HTML anchors should be added](https://meta.discourse.org/t/html-anchors-should-be-added/16455/32):

> [@tobiaseigen](#):
>
> this is an old topic, but I see the discourse FAQ has anchors, which I learned are generated using markdown and work. It’s a bit cumbersome and I’d prefer the ability to add table of contents automagically for long topics, but.. at least you can do it.
> 
> I just followed the example to create a pretty long FAQ for my community which you’re welcome to look at raw for inspiration.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [July 24, 2015, 4:50am UTC](https://meta.discourse.org/t/how-to-hide-click-counter-on-internal-anchor-links-in-the-same-post/31377/2 "2015-07-24T04:50:55Z")

</div>

TBH I can see how this might be useful to get a sense of what members are interested in, possibly indicating what could be improved.

In any case, have you looked into using CSS to `display: none` it?

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [July 24, 2015, 1:23pm UTC](https://meta.discourse.org/t/how-to-hide-click-counter-on-internal-anchor-links-in-the-same-post/31377/3 "2015-07-24T13:23:59Z")

</div>

Thanks @Mittineague! I have not tried looking into CSS to `display: none` it - and am not sure how to do that to be honest. Is it possible to do that specifically for internal links? If so then that would solve my problem. Any guidance much appreciated.

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [July 24, 2015, 1:40pm UTC](https://meta.discourse.org/t/how-to-hide-click-counter-on-internal-anchor-links-in-the-same-post/31377/4 "2015-07-24T13:40:54Z")

</div>

A workaround for your specific case - because all your internal page links begin with “#” - would be something like this:

```css
a[href^="#"] span.clicks { display: none; }

```

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [July 24, 2015, 1:47pm UTC](https://meta.discourse.org/t/how-to-hide-click-counter-on-internal-anchor-links-in-the-same-post/31377/5 "2015-07-24T13:47:07Z")

</div>

thanks, dean! that works.

hmm.. no solved button for bugs?

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [July 24, 2015, 1:52pm UTC](https://meta.discourse.org/t/how-to-hide-click-counter-on-internal-anchor-links-in-the-same-post/31377/6 "2015-07-24T13:52:22Z")

</div>

Changed the category to support so you can mark it solved. updated the title because I kept reading “counter augments” as “counter arguments”.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [July 24, 2015, 1:53pm UTC](https://meta.discourse.org/t/how-to-hide-click-counter-on-internal-anchor-links-in-the-same-post/31377/7 "2015-07-24T13:53:43Z")

</div>

Heh. Thanks!

As my friend told me yesterday… “I’d agree with you, but then we’d both be wrong.”

---

<div class="post-metadata">

### Author: ![Tom\_Newsom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_newsom/32/115981_2.png) [@Tom\_Newsom](https://meta.discourse.org/u/Tom_Newsom)
#### Post date: [July 24, 2015, 2:17pm UTC](https://meta.discourse.org/t/how-to-hide-click-counter-on-internal-anchor-links-in-the-same-post/31377/8 "2015-07-24T14:17:56Z")

</div>

> [@tobiaseigen](#):
>
> I’d prefer the ability to add table of contents automagically for long topics

Something along these lines is in the works

Continuing the discussion from [Discourse Version 1.4](https://meta.discourse.org/t/discourse-version-1-4/26488):

> [@Discourse Version 1.4](https://meta.discourse.org/t/discourse-version-1-4/26488/1):
>
> HTML anchor support that works for deep linking to headings in a post

(I am very much looking forward to this)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [January 24, 2024, 4:27pm UTC](https://meta.discourse.org/t/how-to-hide-click-counter-on-internal-anchor-links-in-the-same-post/31377/9 "2024-01-24T16:27:17Z")

</div>


