Forum Replies Created

Viewing 1 replies (of 1 total)
  • Just find this code:
    <?php the_title(); ?>
    and replace with this:

    <?php if (strlen($post->post_title) > 35) {
    echo substr(the_title($before = '', $after = '', FALSE), 0, 35) . '...'; } else {
    the_title();
    } ?>

    Example:
    Before:
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>

    After:

    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
    <?php if (strlen($post->post_title) > 35) {
    echo substr(the_title($before = '', $after = '', FALSE), 0, 35) . '...'; } else {
    the_title();
    } ?>
    </a>

    Visit https://www.anoesys.com to see the result ??

Viewing 1 replies (of 1 total)