Archived topic
Yeost plugin compatibility
4 replies · Started by Ruth on March 25, 2022
Thanks I love the theme and the generate blocks plugin.
My problem is that wordpress and Yeost aren’t picking up the first paragraph when that paragraph is inside a container. For example however many times you put the kephrase in the first paragraph, Yeost won’t recognise it. WordPress also can’t access text inside a container to create post excerpts for the archive/posts page.
I understand that this (probably) won’t actually change the google ranking, but as a designer I’m less likely to use generatepress if it makes me look bad to my clients (generates SOE errors).
One bodge is to create a paragraph element above the first container on the page – but that messes up the styling.
I guess this may not be an easy fix for you, but I’d hope you are at least aware of the problem.
Hi there,
( thanks for raising the new topic ).
If we can look at Excerpt first as the issue there may be alos behind the issue with Yoast.
Theres an underlying issue with WP in the way it handles excerpts in that it strips some blocks and doesn't handle nested innerBlock support very well.
Its a re-opened bug on WP you can see here:
https://core.trac.wordpress.org/ticket/47637
This doesn't just affect GenerateBlocks but any other nest-able blocks that use innerBlocks such as the core Group Block.
This could also be related to the issue you have with Yoast.
Is it possible to see a page where this is is an issue ? As it may be a case of limiting the depth of nested blocks to overcome the issue.
Thanks David - That's perfect.
I suspect you're right and Yeost uses the inbuilt wordpress excerpt generator.
Here is the website I'm working on at the moment https://buildingresearch.solutions/
You can see that on the posts I used my bodge: e.g. https://buildingresearch.solutions/retrofit-measures
But I didn't want to do this for the core pages as I use the first block as the header, so adding a paragraph before would mess up the page layout.
Ruth
Is this purely so as it shows up in the Yoast 'diagnostics' in the editor ?
Hi Ruth
Maybe you use the_excerpt() to fill the meta description and for share post/pages in social media?
This is the work that Yoast do, but if the 1st paragraph have "stranger things" the Yoast don´t pick the text or even output these "stranger things" ( when a shortcode is used in the 1st paragraph it output the literal [short_code])
Try to fill with text the meta description in the Yoast section of the post/page and then Yoast pick this text for their purposes.