I have a taxonomy vocabulary whose various parents and children need to have different styles. I would need the tid of the every taxonomy page to appear as a class in the body tag in order to make CSS selectors.
I tried using How can I dynamically add URL or taxonomy to body class to work out a solution, but it seems to work only for nodes. I get a class called path-taxonomy for every taxonomy term and that's it.
I would prefer not to install any module.