Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Is it possible to change only the category's tag colour?
Is it possible to change only the category's tag collor?
0
Best Answer
-
Kastang New
Its fairly simply to do:
Move
applications/vanilla/views/discussions/helper_functions.php
tothemes/[YOURTHEME]/views/discussions/helper_functions.php
Find:
if (C('Vanilla.Categories.Use') && $Discussion->CategoryUrlCode != '') echo Wrap(Anchor($Discussion->Category, '/categories/'.rawurlencode($Discussion->CategoryUrlCode), 'Category'));
Change To:
if (C('Vanilla.Categories.Use') && $Discussion->CategoryUrlCode != '') echo Wrap(Anchor($Discussion->Category, '/categories/'.rawurlencode($Discussion->CategoryUrlCode), 'Category_'.$Discussion->CategoryID));
This will add a unique tag to each category class in the form of Category_{CATEGORYID}. You can wrap the classes in whatever colors you want using CSS then.
0
Answers
change them in the css?
I want to do it individually, so e.g. category 1 = yellow, category 2 = blue ...
Its fairly simply to do:
Move
applications/vanilla/views/discussions/helper_functions.php
to
themes/[YOURTHEME]/views/discussions/helper_functions.php
Find:
Change To:
This will add a unique tag to each category class in the form of Category_{CATEGORYID}. You can wrap the classes in whatever colors you want using CSS then.
Hello, is a good plugin but you should use compatible php5 code , not is recommended to use <? short tags in this times, not its supported for most servers.
regards,