nystudio107 / craft-seomatic

SEOmatic facilitates modern SEO best practices & implementation for Craft CMS 3. It is a turnkey SEO system that is comprehensive, powerful, and flexible.
https://nystudio107.com/plugins/seomatic
Other
165 stars 69 forks source link

Set character limits on other title and description fields #1265

Open milesjbland opened 1 year ago

milesjbland commented 1 year ago

Is your feature request related to a problem? Please describe.

Currently, in Plugin Settings > Titles, you are able to set the character limits for the SEO Title and SEO Description fields. But, you can't set them for Twitter Title/Description or Facebook OpenGraph Title/Description.

Describe the solution you would like

It would be nice if we had additional fields in the settings to add optional character limits to these fields.

Describe alternatives you have considered

We can add our own text field with a character limit and use that to populate these, but we'd prefer to use the native SEO field.

Additional context

N/A

khalwat commented 5 months ago

Would it be acceptable if they used the same settings from the SEO Title & SEO Description length settings? Currently it's setting the defaults to what Twitter & Facebook say are the length limits.

EmptyStreets commented 4 months ago

https://capture.dropbox.com/xAZ6dVfXYVoOFcKn

Same here. It becomes a mess depending on the length of data and fieldtype.

khalwat commented 4 months ago

@EmptyStreets I'm not understanding the context here, that field seems to be populated with a whole lot of characters that shouldn't be there?

I also never got an answer from @milesjbland ?

EmptyStreets commented 4 months ago

Sorry. I mean that schema.org description doesn't follow the character limit defined in the plugin setting nor there's any additional option(s) to specify this for schema json. Can be an issue in terms of SEO (looks really spammy) and adds additional overhead to the page size.

khalwat commented 4 months ago

@EmptyStreets would you be ok with the proposal I mentioned above? That all titles and descriptions are truncated to the limit set for titles and descriptions?

EmptyStreets commented 4 months ago

Sounds logical to me. It couldn't be easier.

milesjbland commented 2 months ago

@khalwat Sorry for the delay in getting back to you! Happy with the proposed solution.