Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Duncan,

    I checked the site and also checked 10-15 posts from https://www.roimarketing.co.nz/articles/ to see if the titles are truncated , but didn’t find any.

    Can you share the name and link of the exact post whose title is truncated.

    Thanks

    Thread Starter roimarketing.co.nz

    (@roimarketing)

    Hey Maruti,

    Thanks for your reply. Managed to work out a fix.

    In content-single.php I updated the title (everything in <h1></h1>) to the following:

    <h1 class="entry-title"><?php
    $thetitle = $post->post_title;
    $getlength = strlen($thetitle);
    $thelength = 250;
    echo substr($thetitle, 0, $thelength);
    if ($getlength > $thelength) echo "";
    ?></h1>

    Hope that helps someone else out.

    – ROI Marketing

    Glad to know that you have figured it out yourself.

    Please mark this thread resolved ??

    Thanks

    Hi

    I need to implement this functionality, However I tried changes mentioned by you but its not working.
    Can you please suggest/provide detail changes needs to be done.

    Thank you.

    Hi sj0110,

    Can you please create a new thread and explain your issue with the link to your website?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Truncated Titles in Posts’ is closed to new replies.