HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Idea: Category name as class on body
If you were to include the category name (and maybe even the discussion ID) as classes on the <body> tag, that would give great power and flexibility for customising the layouts of specific categories and even individual discussions using CSS.
Something like this?
<body class="general-discussions discussion7856">
Then people could target anything on those pages using CSS. A basic example being:
body.general-discussions a{
color:red;
}
It wouldn't affect those people who didn't want to use it, so there's no down-sides to doing this!
You could go further and include a class of the username of the person who started the discussion, so you can give custom design features to certain accounts... tho that may be going too far!
thanks,
Paul
0
Comments
You could append this via php or jquery
There was an error rendering this rich post.
That sounds useful... how would I do it in PHP? I don't code PHP.
I'm like your own personal genie today: https://github.com/vanillaforums/Garden/commit/01cccf365d9e7313f5d4a84b9d595be81d289b92
^ what he said, give him a smack on the back
There was an error rendering this rich post.
does he get 3 wishes after he rubs your back?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thanks Lincoln!