Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Creating administrative or "private" tags for internal control (like "Featured Post" toggle, but more flexible)


RushofitAll

Question

Site URL: https://www.rushofitall.com/

I used this code (from @Andrius, in another question) to hide tag display at the bottom of blog posts:

.blog-meta-item--tags {
  display: none;
}

This works, but I wonder how I might take it a step further and only hide certain tags.  Even better if this could work with a wildcard, so only tags with a certain prefix would be hidden (like the "#private" tags available in Ghost).  What I'm really looking for is a way to make a set of administrative tags that never show, while also still being able to use topical tags the way they're intended.

Here's a current use case for this.  I have summary block on my homepage (www.rushofitall.com) to display "Featured" posts from one of my blogs, but those featured posts include some that have a thumbnail photo and others that don't, and the two don't look right intermingled.  So I've tagged the featured posts that have thumbnails (with "thumb"), filtered the summary to show only those with that tag, and hidden the tags with the above code.

This works, but it means I can't use tags in the usual way. (And it seems there are probably other use cases for something like this.)

So is there a way to put something like an if-then into that code above? Something like "IF Tag = #* THEN display:none" (could be # or some other prefix plus a wildcard so you could make many of them if you wanted).

Or some other way to accomplish this?

Thanks, Jeff

Link to comment
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...