Jump to content

[solved] product short description - bold and bullet point info


Recommended Posts

HTML is stripped from the short description by default. I am sure you can find a work around somewhere on the forum, I think I have seen one before. But the reason it is stripped is because when you use it, it is going to look funky if you use your short description on your category pages, home featured, recommended products, or other spots like that. I know you don't have it on your home featured, but I cannot remember the other places off the top of my head. But using bold in the home description is not going to help for seo purposes. It doesn't actually use a strong tag, it uses a span to modify the font weight.

Link to comment
Share on other sites

simpson, if you just want that on your product page, look in your theme and open product.tpl.

 

Find a line that looks like this,

<div id="short_description_content" class="rte align_justify">{$product->description_short|strip_tags}</div>

 

And remove the |strip_tags

 

So it looks like,

<div id="short_description_content" class="rte align_justify">{$product->description_short}</div

 

You can do the same on other areas.

 

But the point made by Dh is a good one. Some things will now look great on your product page. But may not look so good else where. If you are just using some bold text or another fonts size, it should be ok. But you'll need to keep an eye on your category product list pages and see if it is ok there.

 

Alternatively you could enable the HTML on Category pages by doing the same edit in product-list.tpl.

 

Have fun!

Link to comment
Share on other sites

Actually, what would be good is to move the features section to where the short description is in the product.tpl file. Then you can use the short description for other parts of the site. Unless I am wrong, the features section is already set up on using an ul and you can add bullet styling through the css file.

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...