header tag in category description ignored

Support desk for Villa Belluci Joomla Hotel Template
GK User
Tue Dec 29, 2015 5:45 pm
If in a (K2) category description (see attached example) the heading tag is changed, this is not taken into the html code, see page details at http://www.wind-rose.co.za menu "Accommodation" which lists the category "Accommodation" and its description. I have changed this heading 2 but html shows <h1 class="item-title">Accommodation</h1><p class="item-desc">Spacious rooms (&gt;50m2) with where I would expect h2 class instead of p class ="item-desc" etcetera.

I would not make a point of header tags if they are not so important for SEO.
User avatar
Junior Boarder

teitbite
Thu Dec 31, 2015 6:37 pm
Hi

Please edit file /html/com_k2/temlates/default/category.php find line:
Code: Select all
         <p class="item-desc"><?php echo strip_tags($this->category->description, '<br>'); ?></p>


and replace it with:

Code: Select all
         <p class="item-desc"><?php echo $this->category->description; ?></p>
User avatar
Moderator

GK User
Sun Jan 10, 2016 12:54 pm
That did the trick. Thanks!
User avatar
Junior Boarder

teitbite
Wed Jan 13, 2016 10:45 am
Hi

Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron