FAQ H2 tag in documentation but not block editor?
-
Hi,
I’m seeing in this article, the markup for the FAQ block has an H2 heading for a title:https://developer.yoast.com/theming-gutenberg-the-faq-block/
It also has
But when I try to set up FAQs with the Yoast SEO blocks, my output is only using strong tags
I searched this issue and found this forum that it seems to be a known issue:
https://github.com/Yoast/wordpress-seo/issues/11802
My question is:
Since the H2 tag is on your article noted above, I’m curious if this was once included, and if there is a way to bring it back? With a code snippet perhaps? I couldn’t find anything by googling or searching this forum.
If that’s not an option, my other question is: Also, like others in the forum, if I manually add the H2 tag, per the markup given in the article (same class and everything), the block wants to switch to HTML, and then it can no longer be edited as an FAQ, nor converted back to an FAQ block. If I use this method for now, will it convert to the ‘right’ way of setting up these FAQs later, when the Yoast SEO FAQ blocks are updated to include heading tags, as mentioned in the forum thread?
Just worried we’ll have a bunch of HTML blocks at a point in time when we could be rather editing with Yoast FAQ blocks, which would be way easier. Wish there was an easy way to convert this HTML back to an FAQ, is what I’m saying…
Or, do you think there could be some other solution that would work in the interim? Like for instance, keeping the H2 in a heading block above the FAQ block, but using “display:none” on the Yoast FAQ title, so it continues to form the schema tag, but without having the question text show up twice for front-end users? I mean, I know I can technically do this, but I’m curious if your plugin will have some other way to ‘switch back’ if we do these temporary measures to ensure H2 tags on our site? I guess that’s not the best option…
Our entire site is written in the question / answer format. So this is really important – if we take out H2s to use the FAQ blocks, we will lose all the benefits of using keywords in heading tags, too. But we really want to get on this FAQ bandwagon (I know it’s not necessary to mark it up to show up in SERPs this way, but we still want to get ahead here and cover our bases).
Side note: Also want to implement this https://codepen.io/abergin/pen/ihlDf – a CSS only accordion (also mentioned on your site as a suggestion). But that may affect a lot if the div and html tags change later, yes? such as, if we try an interim method of getting an H2 in the FAQ block?
Anyway… thinking out loud and hoping someone may know of a solution for the time being?
Thanks!
- The topic ‘FAQ H2 tag in documentation but not block editor?’ is closed to new replies.