function titleLimitChar($title){ if(strlen($title) > 55 && !(is_single()) && !(is_page())){ // not in single post page and page. $title = substr($title,0,55) . ".."; } return $title; } add_filter( 'the_title', 'titleLimitChar' );
what you ask for, requires files customization what in reference to Item Support Policy is not allowed. So if you want to modify files and don't know how, you should contact with your web developer.
Comments
if(strlen($title) > 55 && !(is_single()) && !(is_page())){ // not in single post page and page.
$title = substr($title,0,55) . "..";
}
return $title;
}
add_filter( 'the_title', 'titleLimitChar' );
what you ask for, requires files customization what in reference to Item Support Policy is not allowed. So if you want to modify files and don't know how, you should contact with your web developer.
Thanks for understanding!