html tags

How to allow HTML taps in mfp_introtext in the default theme to show links?
1 year 8 months ago #1 by Jose

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

  • Posted by TemplatePlazza (5193) Offline
Hi, you can do that by creating a template override (if you don't know how to create it you can follow this video
) then change then change this part :
echo JHtmlString::truncate($item->introtext, $introtext_truncate, true, false);  ?>
into
echo $item->introtext;
1 year 8 months ago #2 by TemplatePlazza

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

In what file i can find the line ?
echo JHtmlString::truncate($item->introtext, $introtext_truncate, true, false); ?>
1 year 8 months ago #3 by Jose

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

Thank you very much, I found this on line 202, now is showing the link tags
1 year 8 months ago #4 by Jose

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

Now the default card appears as duplicates one line without introtext and other with the correct introtext showing the link tags, see attached screenshot or view datepalmsnursery.com/shop
1 year 8 months ago #5 by Jose

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

  • Posted by TemplatePlazza (5193) Offline
Sorry for delay, I missed your reply:(. It's because you post the image inside the body. Try to change previous part into this code :
<?php echo strip_tags($item->introtext,'<img />'); ?>
1 year 8 months ago #6 by TemplatePlazza

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

Powered by Kunena Forum