Possible to lengthen seo description

Latest Reply from kered316 at 2015-04-09 14:24:47 Solution
It seems in your SEO section in your themes that there is a limit in characters that you can enter for the meta description. I have several site were I will enter the description and then when I look at the source code, the last part of the description is cut off. Is that because there is some sort of character limit? Is there a way to fix/change this?

To change this you need to find function seo() inside the wp-content/themes/YOURTHEME/inc/library.php file and edit the line:
$descr=iconv_substr( strip_tags($p->post_content), 0, 200, 'utf-8' );

Now length of description is set to 200 characters. You may change this here.
Ok, I will give it a try. Thanks!

Leave a reply

Add codeAdd image