It doesn’t work for me, I already tried all the ways, changing the configuration of how the categories are displayed, I even went back to the “Default” theme of Discourse and I still can’t get it to work.
I’ll have a look when I can. It’s only being updated if a Discourse update breaks it. Happy to take pull requests on GitHub if anyone has chance to look before I do.
I took a quick look at this to see whether it was a core issue which caused the breakage.
It looks to me like there is some invalid javascript in the component. Given that it worked in the past, I suppose our recent updates to the Theme JavaScript Babel transpiling configuration have made it less forgiving of these kinds of errors.
Yes, thank you very much to you and @david , now I am checking it from my mobile device, later I will check it on PC, but it seems to be working correctly.
I would like to use this for exactly one category. I could list everything else in the “Hide category exceptions”, but that seems difficult to maintain. Would it be possible to add a setting that is the inverse of that?
I love this theme, but there is a bug that I don’t know how to fix, it’s because of my ignorance.
I use this component to put banners in the subcategories, but in the subcategories that I do not use the image is a gap that is not nice. example:
The parentcategory and subcategory are are the respective category and subcategory slug name (the lower case name you see in the browser URL field). for example, in the case of your screenshot the URL is https://holaforo.com/c/musica/thalia/ so the code would be
@Pandabear - I am confused as to why you are not using the hide category exceptions setting in this theme component?
Anyways, if necessary, you can also do something like this so that it is easier to manage which categories and subcategories you want to apply the css code to:
Hi, i’m getting these warnings about this component:
[THEME 68 ‘Category Headers theme component’] Deprecation notice: controller:navigation/category no longer exists, and this shim will eventually be removed. To fetch information about the current discovery route, use the discovery service instead. [deprecation id: discourse.navigation-category-controller]