Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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

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

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

Your Answer

 
discard

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.