-
Notifications
You must be signed in to change notification settings - Fork 953
Closed
Description
- I've read and understood the contribution guidelines.
- I've searched for any related issues and avoided creating a duplicate issue.
Please give us a description of what happened
When we update our Yoast SEO plugin from version 22.6 to 22.7, the class for the FAQ block wp-block-yoast-faq-block and How-to block wp-block-yoast-how-to-block is missing.
To Reproduce
Step-by-step reproduction instructions
- Install the Yoast SEO free plugin of version 22.6
- Add a FAQ block and a How-to block on the page with some dummy content
- View the page and inspect the class for the blocks. You can see the FAQ block is outputted as
<div class="schema-faq wp-block-yoast-faq-block">and for the How-to block as<div class="schema-how-to wp-block-yoast-how-to-block"> - Update the plugin to 22.7; you can notice the class for the FAQ changed to
<div class="schema-faq">whereas the How-to block outputted as<div class="schema-how-to wp-block-yoast-how-to-block"> - However, when you try to create a new How-to block on another page, the class gets changes to
<div class="schema-how-to">
Expected results
- The classes for FAQ block 'wp-block-yoast-faq-block' and How-to block
wp-block-yoast-how-to-blockshould be there as some users may use some customization using it.
Actual results
- FAQ block 'wp-block-yoast-faq-block' and How-to block
wp-block-yoast-how-to-blockare missing on the front end.
Screenshots, screen recording, code snippet
If possible, please provide a screenshot, a screen recording or a code snippet which demonstrates the bug.
Screenshots of How-to block

Screenshot of the class showing on 22.6 for How-to block

Screenshot of the class showing on 22.7 for How-to block
Screenshots of FAQ block

Screenshot of FAQ block on version 22.6

Screenshot of FAQ block on version 22.7
Technical info
- If relevant, which editor is affected (or editors):
- Block Editor
- Gutenberg Editor
- Elementor Editor
- Classic Editor
- Other:
- Which browser is affected (or browsers):
- Chrome
- Firefox
- Safari
- Other:
Used versions
- Device you are using: Samsung Book 3 pro
- Operating system: Windows 11
- PHP version: 8.1.23
- WordPress version: 5.6.3
- WordPress Theme: Twenty Twenty-Two
- Yoast SEO version: 22.7 / 22.6
- Gutenberg plugin version:
- Elementor plugin version:
- Classic Editor plugin version:
- Relevant plugins in case of a bug:
Reactions are currently unavailable