Support » Plugin: Yoast SEO » How is the readability and SEO score generated?

  • Resolved dingo-d

    (@dingo_d)


    I’m using a setup where blocks are generated dynamically. That means that I don’t have classic block like

    <!-- wp:paragraph -->
    <p>This is some content</p>
    <!-- /wp:paragraph -->

    Instead, I have something like

    <!-- wp:eightshift-blocks/paragraph {"wrapperGutter":{"large":"","desktop":"","tablet":"small","mobile":""},"wrapperSpacingTop":{"large":20,"desktop":"","tablet":"","mobile":""},"paragraph":{"content":"This is some content.","styleAlign":"left","styleColor":"primary","styleSize":"default"}} /-->

    The content is stored as an attribute of the block.

    It seems that plugin will just react to the HTML content inside the blocks.

    Is there an option/filter or something that I can set so that the SEO plugin can recognize attributes as valid content (or certain attribute values like “content”)?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Priscilla Chapman

    (@priscillamc)

    Hi @dingo_d,

    Yoast SEO would be able to recognize the content, but would not expect to find the content in the block’s attribute values.

    If you’re not able to find a way to save this to the block content instead, you can use custom JavaScript code to send this data to the Yoast content analysis tool. We have more details and code examples in the Yoast Developer docs: Adding custom data to the page analysis.

    If you’re not familiar with what code to add, we recommend contacting a developer to give you guidance for your specific site.

    Hope this helps!

    Thank you for your answer! I’ll look the docs up about how to do that. I think it will come in handy 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.