Quantcast
Channel: WordPress.org Forums » [Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Support
Viewing all articles
Browse latest Browse all 42116

michaelquinn on "[Plugin: WordPress SEO by Yoast] Change excerpt length to 141 chars - %%excerpt%%"

$
0
0

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.

Then:
%%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.

Cheers.

MQ


Viewing all articles
Browse latest Browse all 42116

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>