Skip to main content

Assessments: Text alignment

The Text alignment assessment checks whether the text uses too much center alignment. By default, it checks for the .has-text-align-center class. This can be changed in the researcher configuration (centerClasses).

Text alignment
Name in codeTextAlignmentAssessment
Title URLhttps://yoa.st/assessment-alignment
Call to action URLhttps://yoa.st/assessment-alignment-cta
When it appliesWhen at least one center-aligned paragraph or heading is longer than 50 characters. In WordPress, only in the block editor.
ProductYoast SEO Premium. Also in Yoast SEO for Google Docs.
Content typesWordPress: added by Yoast SEO Premium, only in the block editor (not in the classic editor or Elementor)
Shopify: not available
Google Docs: documents
LanguagesAll languages. The feedback is different for languages written from right to left (see the scoring table).
Cornerstone❌ Same scoring
Uses highlighting✅ Highlights the center-aligned text

Scoring​

  • LTR: the feedback for languages written from left to right.
  • RTL: the feedback for languages written from right to left.
Traffic lightScoreCriterionFeedback
Red2One center-aligned element that is longer than 50 charactersLTR: Alignment: There is a long section of center-aligned text. We recommend making it left-aligned.
RTL: Alignment: There is a long section of center-aligned text. We recommend making it right-aligned.
Red2Multiple center-aligned elements that are longer than 50 charactersLTR: Alignment: There are X long sections of center-aligned text. We recommend making them left-aligned.
RTL: Alignment: There are X long sections of center-aligned text. We recommend making them right-aligned.