• Resolved xguimera

    (@xguimera)


    I updated to 6.9 and block editor css are not loaded. any suggestion?

    I have a custom theme without json

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi!
    You must forces WordPress to load wp-block-library by adding add_theme_support( 'wp-block-styles' );

    Thread Starter xguimera

    (@xguimera)

    no way… only broken with blocks (block columns, block cover, block cart,etc…)

    Moderator threadi

    (@threadi)

    If I understand correctly, the styles are only missing for individual blocks? Or are there no styles at all?

    Have you enqueued your individual styles in functions.php using the hook enqueue_block_editor_assets?

    Thread Starter xguimera

    (@xguimera)

    all kind of blocks loaded used in block editor. if I use the wp-block-columns, wp-block-cover, the block-cart, the block-checkout (in woocommerce)… no css is loaded

    Moderator threadi

    (@threadi)

    Since we don’t know your custom theme, it’s difficult to say anything more specific. You would have to see what you need to adjust in it so that the styles are reloaded. The line mentioned above, add_theme_support( ‘wp-block-styles’ );, would be important for this.

    Please check the developer console of your browser to see if there are any error messages if you load the editor.

    Also, please check Tools > Site Health to see if there are any abnormalities.

    You are also welcome to provide your theme, especially the functions.php, so that we can assist you if necessary. You can do this on gists, for example: https://gist.github.com/

    Thread Starter xguimera

    (@xguimera)

    Yoast SEO blocks Block editor CSS… disable it and now it is ok.

    Moderator Support Moderator

    (@moderator)

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

The topic ‘Not loading Block Editor CSS’ is closed to new replies.