• ggeard

    (@ggeard)


    The plugin appears to be breaking Theme.json styles, specifically for blocks that have style variations, and ONLY when the page/post has an empty Meta Description field.

    The Theme.json configuration below renders the Paragraph blocks correctly in the Block Editor, but the front-end renders without the variation styles being applied. Adding any value to the Meta Description field fixes the issue and the block renders correctly. Removing the value from the Meta Description field also reverts the fix.

    {
    "$schema": "https://schemas.wp.org/trunk/theme.json",
    "version": 3,
    "styles": {
    "blocks": {
    "core/paragraph": {
    "variations": {
    "eyebrow": {
    "css": "border-radius: 0.5rem; display: inline-block;"
    }
    }
    }
    }
    }
    }

    Block styles have been registered in the functions.php file using the ‘init’ hook:

    function register_block_styles() {
    register_block_style('core/paragraph', [
    'label' => 'Default',
    'name' => 'default',
    'is_default' => true,
    ]);

    register_block_style('core/paragraph', [
    'label' => 'Eyebrow',
    'name' => 'eyebrow',
    ]);
    }

    add_action('init', 'register_block_styles');

    Tested in WordPress v6.8.3 and Yoast SEO v26.1.1 with all other plugins disabled.

Viewing 1 replies (of 1 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @ggeard,

    I’m sorry about your experience. Based on the provided information, we expect this to be a bug. We’re actively using the bug tracking on our GitHub repository, so your best next step would be to create a new issue for our developers here.

    You will need an account to create a new issue. Please provide as much information about the issue, including the URL to this conversation. This guide will help you submit a complete report which may result in a faster resolution.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.