Elxis CMS Forum

Support => General => Topic started by: xmanhattan on April 11, 2020, 12:05:25

Title: article title ellipses
Post by: xmanhattan on April 11, 2020, 12:05:25
Hello all,

How can I extend the number of characters that are displayed under articles titles listing which now shows ellipses ...?

Title: Re: article title ellipses
Post by: webgift on April 16, 2020, 11:40:17
Hello @xmanhattan,
Open the file: components/com_content/views/aarticle.html.php
Line: 186

Change the line:

if (eUTF::strlen($title) > 30) { $title = eUTF::substr($title, 0, 27).'...'; }
to the one you wish like (increased by 20 characters):
if (eUTF::strlen($title) > 50) { $title = eUTF::substr($title, 0, 47).'...'; }
Title: Re: article title ellipses
Post by: xmanhattan on April 16, 2020, 13:01:39
Perfect!!!
Thank you webgift and have a Happy Easter!
Title: Re: article title ellipses
Post by: webgift on April 23, 2020, 18:26:03
Happy Easter @xmanhattan!