WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Like Lifehacker and several other sites, would like to know how to add # before tags displayed on the site. for e.g. instead of a tag like "abc", how about "#abc". - is there a way to automatically add # across all the tags present in the system?

share|improve this question
Global changes are usually overly broad and can cause unwanted issues. It is better practice to determine specific parts of theme where this should be applied, relevant function and work from there. – Rarst Jun 3 '11 at 19:24
Yes. In single.php - this is precisely where I want to add this. – ash Jun 13 '11 at 14:34
possible duplicate of Add # before each tag – ialocin Jul 21 '15 at 16:03

You could just do cosmetic changes on your theme with some javascript:

<script type="text/javascript">
    jQuery('.tags li a').prepend('#');

<ul class="tags">
    <li><a href="/tag/sometag/">sometag</a></li>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.