Follow these steps:
1. Edit this line (yes, the empty one) in file qa-theme/SnowFlat/qa-theme.php
2. Add this code in that location:
require_once QA_INCLUDE_DIR . 'util/string.php';
if ($this->template === 'question' && isset($this->content['q_view']['raw']['tags'])) {
$tags = qa_tagstring_to_tags($this->content['q_view']['raw']['tags']);
$specialTags = array('article', 'notes', 'other-tag', 'óña');
foreach ($specialTags as $specialTagTemp) {
if (in_array($specialTagTemp, $tags)) {
$class .= ' q-tag-' . qa_slugify($specialTagTemp);
break;
}
}
}
3. Edit in the previous code the special tags. Some special characters will be translated to valid CSS class names. For example, óña will become ona. However, this will depend on the kind of special tags you use.
4. Append the needed styles based on the specific tags in file qa-theme/SnowFlat/qa-styles.css in this way:
.q-tag-article .qa-part-q-view,
.q-tag-article .qa-q-view {
background-color: red;
}
.q-tag-ona .qa-part-q-view,
.q-tag-ona .qa-q-view {
background-color: blue;
}