This was asked of me in Discord by @MikeJones for his site, and it seems like a useful enough solution for the general public. Note that this only removes secondary tags from the Tags page (the tag cloud at the bottom), if you need to remove primary tags from view then they should probably be a secondary tag.
DISCLAIMER: Please note that you should always be using permissions first to restrict tags from views for those who shouldn't see them. This is not a replacement for permissions.
Read that again, this is not a replacement for permissions.
This is just for extraneous tags that are only for organizational purposes that you have no intention of ever allowing users to sort by or have instant access from your front page. This is not really intended behavior for tags, so use sparingly.
Now on to the code. Paste this in your Custom CSS code box in the Appearance tab of your Admin panel:
// This one removes secondary tags by their /t/slug on the tags PAGE
// and any tag by their t/slug on the tags SIDEBAR
.TagCloud, .IndexPage-nav .item-nav {
// first tag
[href="/t/slug-one"],
// second tag
[href="/t/slug-two"] {
display: none !important;
}
}
This code will work for two tags, if you need to hide additional tags, copy the everything between the // first tag
and // second tag
comments and paste on a new line underneath the comments. Then adjust the slug name to match the tag you are attempting to hide.
Once again, this is not for permissions, your users will still be able to see and post to these tags in accordance with your permissions setup.