Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+20 votes
in Plugins by
edited by

you probably remember Tag Descriptions Plugin from the plugin tutorial. this is a necessary plugin for better SEO.

now I updated Gideon's original code to add a few features:

Dowload Zip file

Or check it on Github

Demo and ScreenShot from a simple tag with image:

new features:

  • Icons in tags, just like stackoverflow.com
  • diffrent "title" attribute from widget content for better SEO and preventing problems with HTML in it's content
  • HTML support in description(as an option)
  • now it applies these changes to 'Tags' page too

enjoy it and feel free to fork.


  • I had diffrent versions of this plugin on multiple sites & made a mistake and pushed wrong files on github. it's updated now and new version should work correctly. thank James Spittal for reporting.
  • now this plugin won't add "Link Title" & "Icon Image" to tags in "Tag" page. thanks Jurrek for informing me.
  • in new update it now uses DOM Document to handle links instead of original method(sting manipulation:preg)
  • thanks to @Another one & @maxjtechno for reporting the problem, now subscription image for tags will show up.

Best Regards


I wonder why would anyone downvote this.
for the joy of trolling :)
I think this is great plugin. Does anybody use it? Why is there no discussion?
I use it, and it works fine.
great plugin! I installed on 1,7 and its working. Is it ok to use in q2a recent versions?

8 Answers

+3 votes
Can you please provide us the working demo of the website with this plugin enabled?
0 votes
edited by

Just tried this on my site (http://merspi.com.au) and caused a strange error.

I put it in the qa-plugin folder, and then visited the 'Pages' section in the admin panel and the server returns a 500 error message. When I rm -rf q2a-tag-descriptions/ - it appears that the problem disappears and the site returns to normal.

Anyone experienced anything similar? I'd love to get this working - because it's a plug-in I'd like to use!

From my error log:

[Sat Jun 15 12:03:01 2013] [error] [client] PHP Fatal error:  require_once(): Failed opening required '/var/www/qa-plugin/q2a-tag-descriptions/qa-tag-desc-edit.php' (include_path='.:/usr/sharephp:/usr/share/pear') in /var/www/qa-include/qa-base.php on line 632, referer: http://merspi.com.au/admin/permissions
[Sat Jun 15 12:03:03 2013] [error] [client] PHP Warning:  file_get_contents(/var/www/qa-plugin/q2a-tag-descriptions/qa-tag-desc-overrides.php): failed to open stream: No such file or directoryin /var/www/qa-include/qa-base.php on line 317, referer: http://merspi.com.au/account
Managed to resolve this issue by downloading http://www.question2answer.org/releases/q2a-tag-descriptions-tutorial.zip and installing that before grabbing the github repository. My bad!
All resolved.
it seems that I uploaded an an old version on github. I will fix it soon.
I uploaded wrong files to git, it should work now.
Thanks @Towhid! Much appreciated.
0 votes
reshown by
Useful this user-selectable option:
Enable tag links as external url links
Enable tag links as tag-images

best determined separately for each tag in the edit panel tag, and the default for all as the picture or the link url in the admin panel.

I updated this plugin, please update and tell me if it's fixed!
It is well, the current version no longer displays the string (TAG_ICON).
  However does not work simple text formatting, for example - a new line by the enter key. When you save the new line disappears from the tag-description.
And if you can set up your script in order to url links in tag-description may have been active?
edited by
This feature will be useful for us if it works, because we will export our extended tag descriptions to another place and use only short versions directly on our site.

How can I link to an external site, such as


in the tag description? Simply putting in the URL does not work.
+2 votes

Thanks, great plugin but it needs to be updated, star when subscribing to tag doesn't show up:

I've replaced the line 41 here :

from :
to :
$a->insertBefore($element, $a->firstChild);

and I have again the previous behaviour (image node before text node).
It seems to work...
ehm... don't be angry with me ... :-)
typo :-)


height :-)
thanks for reporting both typo and suggesting update, I applied both. also in new version I added support for "Tags" page too.
Thanks a lot !
0 votes

There is character problem. When I copied this plugin, the all tags had character problem. Example the "segítség" tag changed to "segítség". I use utf 8.

But I can't use icon. After I tried with Github version, which is character problem too.
hi, I solved this issue in new version. update your plugin :)
+1 vote
whether it is possible to make the description of the findings in more <meta name = "description" content = " ??
good idea, in next version I'll add option to enable meta tags.
I decided to add this feature and many other features in an upcoming Q2A SEO plugin.
when will the update
0 votes
edited by
Hi Towhid,

I am using this plugin from you and I just realized how many other plugins you have published on Github:


This is really great, thanks lot for your efforts!

I would suggest only a very small, but important change in your github repositories:

Please don´t use another subfolder for the plugin. Always start with the main directory of the repository.


If I am cloning the git repository the plugin is not found:
/qa-plugin/ > git clone https://github.com/Towhidn/q2a-tag-descriptions.git

puts all files in the following subdirectory and the plugin therefore is not found by the admin.



Hope you can change this soon for all your plugins, so that updating your plugins in the future will be very easy with just:
/qa-plugin/q2a-tag-descriptions > git pull

Thanks again for your efforts!

for the moment i am just using a symlink to the subdirectory:
ln -s q2a-tag-descriptions/q2a-tag-description q2a-tag-descriptions-link
it doubles my number of links in the plugin-directory for the extensions, but it reduces complexity.
It's possible with "sparsecheckout" or using a command like this:

having files in root troubled some newbie users who downloaded and extracted the files to upload them. also I'm planning to add a directory for each plugin's documentation and files for changelog and credits to the root. so having plugin in the root would be a mess.
thanks for the sparsecheckout tip:
could be a solution, thanks for this hint.

I still suggest, that you could place the documentation in a /doc subdirectory as well as the other stuff:
And only leave the readme file with the plugin in the root.
0 votes
Hi guys, Id like to now if I can use this plugin in q2a 1.8 tnks!
Hi, it is working file for my 1.8 Q2A website