Yoast SEO
[Plugin: WordPress SEO by Yoast] Change excerpt length to 141 chars - %%excerpt%% (2 posts)

  1. Fariid
    Posted 3 years ago #

    Hi ;

    How can I change excerpt length in WordPress SEO ?

    I want to change it to 141 chars and I think it is now set 86 chars .

    Thanks ;
    PS : Sorry for my English


  2. michaelquinn
    Posted 2 years ago #

    Hey there.

    I know this is a late reply, but I've seen this question asked a few other places so I thought my solution my help others.

    In the file: wordpress-seo/inc/wpseo-functions.php - around line 177 (search for 155), you will find two instances of '0, 155'.

    Simply change both of these to '0, 141' - or whatever you want. I set mine to 100.

    %%excerpt%%... %%ct_product_tag%%: Learn more. Buy online.

    creates a pretty neat meta description around 150 chrs with a nice bit from the description, the brand, and then a little sign off line. Works pretty good for a large catalogue as a fallback default.

    NOTE: you probably will need to make the changes whenever you update the plugin. Don't know if there is some way to avoid that.

    Hope that helps.



Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic