Viewing 1 replies (of 1 total)
  • Try replacing this:

    <?php $short_title = mb_substr(the_title('','',FALSE),0,30);
    echo $short_title; if (strlen($short_title) >25){ echo ''; } ?>

    with this:

    <?php $short_title = mb_substr(the_title('','',FALSE),0,30);
    if (strlen($short_title) >25){
     $short_title = mb_substr($short_title,0,25) . '...';
    }
    echo $short_title;
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Display dots if the character size exceeds’ is closed to new replies.