Hi,
any chance to affect the length of the generated meta description?
Thanks!
Length of meta description
Moderator: Thorsten
Re: Length of meta description
Hi,
we use the first 12 words of the question.
bye
Thorsten
we use the first 12 words of the question.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Length of meta description
I know, but why don't you let the user decide which meta description he likes to use.
At the moment using just 12 words will be around 40-60 characters, while a good meta description has a length of 150/160 characters.
At the moment using just 12 words will be around 40-60 characters, while a good meta description has a length of 150/160 characters.
Re: Length of meta description
Hi,
well, it can be changed easily: https://github.com/thorsten/phpMyFAQ/bl ... x.php#L289
If you want 20 words, use this code:
bye
Thorsten
well, it can be changed easily: https://github.com/thorsten/phpMyFAQ/bl ... x.php#L289
If you want 20 words, use this code:
Code: Select all
$metaDescription = str_replace('"', '', $faq->getRecordPreview($id, 20));
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Length of meta description
Thanks.
But wouldn't it be better to use characters instead of words?
But wouldn't it be better to use characters instead of words?
Re: Length of meta description
Hi,
if we would use characters it would be possible to cut words...
bye
Thorsten
if we would use characters it would be possible to cut words...
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Length of meta description
Sure, but we're talking about search engine data here
What about combining chars counting with wordwrap? http://php.net/manual/de/function.wordwrap.php
What about combining chars counting with wordwrap? http://php.net/manual/de/function.wordwrap.php
Re: Length of meta description
Hi,
wordwrap() adds a linebreak, that doesn't help...
bye
Thorsten
wordwrap() adds a linebreak, that doesn't help...
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist