Skip to main content

Category Description Display

More
15 years 2 months ago - 15 years 2 months ago #20474 by brainforge
I was investigating where some blank space was coming from in a category display.
This comes from lines 49-51 category/tmpl/listing.php
Code:
<p> <php echo JHTML::_('content.prepare',$this->element->category_description); > </p>
The HTML generated by this is:
Code:
<p><p>My category description</p></p>
Firebug shows this as:
Code:
<p> </p><p>My category description</p>
You can see an example of this on your demo:

www.demo.hikashop.com/index.php?option=c...on&Itemid=90&lang=en

Would it be better if the code in category/tmpl/listing.php used a <div> instead?
Code:
<div class="hikashop_category_description_content"> <?php echo JHTML::_('content.prepare',$this->element->category_description); ?> </div>
Similarly lines 48-50 in product/tmpl/listing.php
Last edit: 15 years 2 months ago by brainforge.

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago #20502 by nicolas
Why not yes.

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago #20505 by brainforge
Next release presumably.

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago #20508 by nicolas
Yes.

Please Log in or Create an account to join the conversation.

More
15 years 2 months ago #20509 by brainforge
Thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.187 seconds
Powered by Kunena Forum