I read some examples of creating badges for menu items (and more) but didn’t see if that would work with a Title for a collection. For example, if I am showing a long list of items of which 6 have not been read by the user I would like to show a badge with (6).
And to be clear - this is not an item’s title; this is the Collection’s title.
I have the rollup - I just don’t see how to add it to a Title. I currently just show the number in brackets like below. But a badge would look much better. And I don’t see how to add a badge to a title in Glide or which CSS technique would override/append the badge at the end of title.
If the title text is static, you can place the label in a ::before pseudo-element as static content, and reserve the Title value strictly for the badge number.
This allows the badge to update dynamically from the data while keeping the label static and independently styled.