Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
333 views
in Q2A Core by
hello guys, i want to see my tags on home page as #tag1 #tag2 in orange rectangle. how can i do this?
Q2A version: 1.8.5

1 Answer

+5 votes
by
selected by
 
Best answer

Adjust the styles of your theme. the relevant CSS class is qa-tag-link. You can prefix the tag name with text like this (using the ::before pseudo element):

.qa-tag-link::before {
  content: '#';
}

The color can be set via the background-color attribute:

.qa-tag-link {
  background-color: orange;
}

and/or the border attribute:

.qa-tag-link {
  border: 1px solid orange;
}

depending on whether or not you want a solid rectangle.

If you want the styles applied only on the homepage rather than every tag occurrence you need to further discriminate the selection:

.qa-template-qa .qa-tag-link {
  ...
}

by
thank you worked.

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.

Categories

...