• Resolved 7thcircle

    (@7thcircle)


    When my content is in a GenerateBlocks container there are no descriptions generated by SlimSEO

Viewing 3 replies - 1 through 3 (of 3 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 container block using this snippet:

    add_filter( 'slim_seo_allowed_blocks', function ( $blocks ) {
    $blocks[] = 'enter the name of the GenerateBlocks container block';
    return $blocks;
    } );
    Thread Starter 7thcircle

    (@7thcircle)

    The content is not dynamic. The content is things such as headings and text.

    With the snippet are you suggesting naming the the block itself or using the name of the block (ie GenerateBlocks/comtainer)?

    Plugin Author Anh Tran

    (@rilwis)

    The container block is a dynamic block, so you need to whitelist it.

    You need to whitelist all blocks you want to parse, including the container and child blocks (heading, text, etc.).

    This is a similar thread that was about the text block in Generateblocks.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.