When testing the modal block in Radicle, I noticed that Yoast doesn’t seem to pick up text fields outside of InnerBlocks. Is there a way to fix that?
Do you mind giving me the HTML of the page you’re testing it on? eg:
<!-- wp:radicle/modal {"heading":"..."} -->
<!-- wp:paragraph -->
<p>...</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>...</p>
<!-- /wp:paragraph -->
<!-- /wp:radicle/modal -->
<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->
<!-- wp:radicle/modal {"heading":"Modal not heading","body":"\u003cbr\u003eGutenberg blocks for custom layouts. Best Gutenberg blocks for bloggers. Responsive Gutenberg blocks for pages. Gutenberg blocks library for WordPress. Drag-and-drop Gutenberg blocks editor. Lightweight Gutenberg blocks for speed SEO-friendly. Gutenberg blocks for content."} -->
<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->
In my above example ‘heading’ and ‘body’ are not picked up by Yoast.
body is not a block attribute for the modal block, are you sure that’s your markup?
I’m DMing you a solution based on Yoast SEO: Adding data to the content analysis | Yoast developer portal
@ben thank you for your help!
1 Like