*

morpheus93

  • **
  • 12 posts
Format ad description in Epsilon theme
« on: April 01, 2025, 11:05:46 PM »
How can we format (or better said, allow the user to format) his ad description? In the Epsilon Template all description text is just in one litter without any line breaks, formatting or something else.

That's not very userfriendly nor appealing for the site visitors.

Also activated TinyMCE does not seem to solve the issue.

It's probably just a whole simple setting that I've overlooked, thanks for help!


*

MB Themes

Re: Format ad description in Epsilon theme
« Reply #1 on: April 02, 2025, 12:19:59 PM »
Try to use white-space:pre-line; on description text.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

bgd

  • ***
  • 35 posts
Re: Format ad description in Epsilon theme
« Reply #2 on: June 05, 2025, 07:06:35 PM »
hi,

I solved the problem as follows. The description really doesn't look good without spaces.


go to item.php and change the line

Code: [Select]
<?php echo osc_item_description(); ?>
to   
Code: [Select]
<?php echo nl2br(osc_esc_html(osc_item_description())); ?>

then :

change
Code: [Select]
<?php echo substr(strip_tags(osc_item_description()), 0, 720) . (strlen(strip_tags(osc_item_description())) > 720 ? '...' : ''); ?>
to

Code: [Select]
<?php 
  $short_desc 
= substr(strip_tags(osc_item_description()), 0, 720);
  echo 
nl2br(osc_esc_html($short_desc)) . (strlen(strip_tags(osc_item_description())) > 720 ? '...' : '');
?>



must be ok after changes.

MB thank you for the new osclass upgrade.

*

MB Themes

Re: Format ad description in Epsilon theme
« Reply #3 on: June 06, 2025, 11:54:44 AM »
I think CSS is simpler  :)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots