Skip to content

Emit one meta description, not two - #26

Merged
alanw707 merged 1 commit into
mainfrom
fix/rankmath-meta-description-2026-11-21
Nov 23, 2026
Merged

alanw707 merged 1 commit into
mainfrom
fix/rankmath-meta-description-2026-11-21

Conversation

@alanw707

Copy link
Copy Markdown
Owner

Root cause of the split description on both BRABUS guides.

Verified in production HTML: tag #1 sits under the theme's <!-- SEO Meta Tags --> comment, tag #2 under <!-- Search Engine Optimization by Rank Math --> and carries stored post meta ('Discover the 2025 price of G Wagon Brabus...').

Changes:

  • theme skips its description tag when Rank Math is active (same rule already applied to Open Graph)
  • guides supply their description via rank_math/frontend/description, which previously had no filter

Verify: exactly one meta description per page, matching og:description.

The theme printed its own description and Rank Math printed a second from
stored post meta. Google picks between them, and on both BRABUS guides the
stored copy is the old 'Discover the 2025 price...' text, so the price-led
rewrite only won half the time.

Theme now defers to Rank Math when it is active, and the guides feed their
copy through rank_math/frontend/description.
@alanw707
alanw707 merged commit b6ecd92 into main Nov 23, 2026
7 checks passed
@alanw707
alanw707 deleted the fix/rankmath-meta-description-2026-11-21 branch November 23, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant