• Resolved attermire

    (@attermire)


    Hi,

    I noticed on one of our sites that Slim SEO is not working with the GenerateBlocks plugin. Our issue is that the automatic meta description tag generator is not able to pick up on any text content made with the GenerateBlocks plugin, specifically: the “Text” block. As such, it results in a blank entry and we have to add our meta descriptions manually.

    GenerateBlocks have kindly asked if we/they could know the condition that would allow Slim SEO to detect the “Text” block and then they will decide what to do with the block in question.

    Thanks in advance for any help.

    • This topic was modified 7 months ago by attermire.
Viewing 1 replies (of 1 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Hi,

    By default Slim SEO will ignore dynamic blocks from generating the meta description to avoid unexpected bugs (like dealing with sessions, custom notifications, query loops, etc.).

    In this case, you can whitelist the GenerateBlocks’s text block using this snippet:

    add_filter( 'slim_seo_allowed_blocks', function ( $blocks ) {
    $blocks[] = 'generateblocks/text';
    return $blocks;
    } );

    FYI, we’ve checked the text block from GenerateBlocks and see it supports dynamic data, which can be complicated in some situations if we enable it by default. So, if you want to support this block, please use the snippet above.

Viewing 1 replies (of 1 total)

The topic ‘Auto Meta Description Generator Not Detecting Content’ is closed to new replies.