nathank
(Nathan Kershaw)
5 ביוני, 2024, 7:01pm
24
I took a look at that at the same time, but couldn’t work out how to effectively target the right bit of HTML to hide it.
My issue was that I can’t seem to make SASS variables work in selectors.
If I could work out how to do that, could also make it compatible with alternate lock icon.
לייק 1
Kartoon
6 ביוני, 2024, 10:54am
25
Glad this was bumped, I’ve had multiple users ask me how they can use a section (that they’ve always been able to use) because they just assume lock=can’t use this.
2 לייקים
nathank
(Nathan Kershaw)
6 ביוני, 2024, 12:38pm
26
You can use this TC to change the icon to whatever you like:
I (used to) use unlock-alt for the very reason you state - until I developed the need to hide them for some categories!!
3 לייקים
nathank
(Nathan Kershaw)
28 ביולי, 2024, 5:04am
27
לייק 1
Lilly
(Lillian )
28 ביולי, 2024, 5:38pm
28
This has been merged. Thanks @nathank .
edit: also updated the about info
2 לייקים
nathank
(Nathan Kershaw)
29 ביולי, 2024, 12:39am
29
Discovered a regression! When I put in a category/subcategory, it was breaking the TC due to the change above corrupting the CSS.
Fresh PR now (also tidies up something else I missed):
https://github.com/Lillinator/hide-lock-badge-icon/pull/6
2 לייקים
Lilly
(Lillian )
29 ביולי, 2024, 12:49am
30
Merged. thanks Nathan. I didn’t even notice. I loaded it into my test instance and had a quick look, but I didn’t see any errors and it seemed to be working as expected (but admittedly didn’t check subcategories ).
3 לייקים
nathank
(Nathan Kershaw)
30 ביולי, 2024, 5:29am
31
2 לייקים
Lilly
(Lillian )
31 ביולי, 2024, 12:42pm
32
Merged Nice add - thanks!
I really need to spend some time and finish getting the category list_type chooser working. I just need to get a working findby() function.
4 לייקים
Stephen
(Stephen)
3 באפריל, 2025, 6:02pm
33
Unsure if this is a regression, but noticed today that noticed that the lock icon appears next to category names when Show subcategory list above topics in this category. is selected.
2 לייקים
Lilly
(Lillian )
7 באפריל, 2025, 2:39pm
35
where are you seeing lock icon when Show subcategory list above topics in this category is enabled? I don’t see it…
I have the general/photos subcategory set as private and hiding the badge:
I tried with rows and boxes but still couldn’t see a repro.
Stephen
(Stephen)
7 באפריל, 2025, 8:37pm
36
Rows with featured topics works. Boxes with featured topics is where it’s broken.
לייק 1
Lilly
(Lillian )
7 באפריל, 2025, 9:10pm
37
can you post a screenshot? i’m still not able to get a repro with Boxes with featured topics enabled:
2 לייקים
Kartoon
12 ביולי, 2025, 8:55am
39
זה כבר לא עובד לי אחרי עדכון אחרון (אני חושב שזה היה היום, אבל אני לא בטוח ב-100%, רק עכשיו שמתי לב לזה בפעם הראשונה).
I think because of this recent change?
2 לייקים
Kartoon
12 ביולי, 2025, 9:38am
41
Yea that did it you can just add
.badge-category__wrapper [class*=“d-icon-category.restricted”] {
display: none;
}
Via CSS. You obviously lose a couple things like the staff toggle from the plugin but it works.
It’s almost becoming a part time job to figure out how to revert all these little changes every couple updates I’m getting scared to press the button
Lilly
(Lillian )
12 ביולי, 2025, 9:56am
42
תודה שיידעת אותי, אני אסתכל על זה השבוע.
3 לייקים
Lilly
(Lillian )
17 ביולי, 2025, 10:33pm
45
merged and fixed! you’re awesome thank you!
works great. the component could probably use some lovin’ at some point, especially to make it a bit easier to enter the categories.
4 לייקים
Lilly
(Lillian )
22 בנובמבר, 2025, 2:33pm
47
I refactored this component and removed the category/channel selector to make it easier to use. the category/channel selector just introduced too much complexity for a simple objective and wasn’t really necessary.
5 לייקים