News:

Looking for documentation? Take a look on our wiki

Main Menu

How to add HTML code in to the short description

Started by rasika, July 26, 2013, 15:22:53 PM

Previous topic - Next topic

rasika

Hello,

Please help me to add html code in to the short description area.

My joomla version is 2.5.11 and virtuemart version is 2.0.16.

Thank You

rasika


franzpeter

Never did it before but I did try it out. If you would like for example to add a h2 tag and let one word appear as <strong> to a short description like: This is my short description, you just put in inside the short description field inside the backend. So with the example you put the following into the field: <h2>This is my <strong>short</strong> description.</h2>. The short description is just a text area without a editor like the Joomla tinymce or jce.

rasika

Hi franzpeter,

Thank you your reply. Do you know how to add image and hyperlink in to the short description.  I need add small button and link it to another menu. 

Thanks
Rasika

franzpeter

You need to be careful in case of that, because the database row for short description does have limits in case of the amount of characters (think it is 2000) used. I did try it out and it seems to work with images and links too:
So if you want to insert a small image from your images folder for example you can insert something like that, where it should show up: <img src="images/your_image_folder/yourimage.gif" border="0" alt="" />. In that case I would not insert something into the alt ='', because of the character amount limits.
If you would like to insert a link, you can do it in the following way: <a href="http://www.domain.com" title="domain">
You need, of course replace your_image_folder/yourimage.gif with the correct folder name and the image name, in case of the link replace domain.com with the correct name and the title with something you would like to show as link text.

PRO