• Resolved Copernicus

    (@copernicus)


    Hello!
    I’m running into what looks like a display error in the Lazy Blocks admin interface when I add theme support for ‘editor-styles’ within functions.php

    add_theme_support('editor-styles');

    Even if I don’t add any custom styles, just adding the theme support (as shown above) results in a mangled UI on the Lazy Blocks admin.

    Here’s a screen view without editor-styles support added:

    View post on imgur.com


    (the standard, expected display of the Lazy Blocks admin UI)

    And here’s a view after the snippet above is added to functions.php:

    View post on imgur.com


    (Lazy Blocks admin UI becomes left-aligned and several of the interface components become misaligned or improperly styled)

    Is there anything that can be done to enable theme support for editor styles AND keep Lazy Blocks UI looking the way that it should?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author nK

    (@nko)

    Hey.

    We testing our plugin with a standard Twenty Twenty One theme, which uses custom editor styles and it is working fine.

    Most probably, something wrong with your installed theme. Can you re-test it with other themes?

    Regards, nK.

    Thread Starter Copernicus

    (@copernicus)

    Thank you for the point of information. I switched to the Twenty Twenty One theme and confirmed that its functions.php includes a call to add_theme_support('editor-styles'); and do see that the Lazy Blocks UI displays accurately.

    As you noted: it appears to be an issue with my installed theme (which, to help anyone else out in the future, is the Astra theme with a child theme active).

    Thanks again for your help.

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

The topic ‘Possible Display Bug in Admin When Adding Theme Support for Editor Styles’ is closed to new replies.