• Hi,

    I’m checking your plugin and would like to ask why it overrides the max-width applied on blocks in editor by the theme with this CSS:

    .gutentor-active .editor-styles-wrapper .wp-block {
    	max-width: 100%;
    }

    Is there any specific reason why Gutentor does this? Isn’t this a territory of a theme to provide max-width of blocks?

    Thanks and regards,

    Oliver

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor codersantosh

    (@codersantosh)

    Hello @webmandesign,

    Yes, you are right, technically the code should be on the theme.
    The main reason adding this is currently most of the theme is not Gutenberg friendly, when people import template demo design, it does not look good on the editor. This is the main reason we added this code. We have plan to remove this after some time.

    Best Regards!

    Thread Starter WebMan Design | Oliver Juhas

    (@webmandesign)

    Hi @codersantosh,

    Thank you for explanation.

    Wouldn’t it be better to keep WordPress default editor styles even for themes that do no support Gutenberg?
    Or is this CSS for to somehow force/mitigate for wide/full alignment of the blocks in themes that do not support this feature? In that case I believe it could be conditional using if ( current_theme_supports( 'align-wide' ) ) {...}.

    Your plugin is meant for Gutenberg editor and it’s a pity that it actually causes issue with Gutenberg ready themes.

    Looking forward to future version of the plugin ??

    Best regards,

    Oliver

    Plugin Contributor codersantosh

    (@codersantosh)

    Hello Oliver,

    Thank you for your suggestions, we appreciate it and accept it. We will add it in the next version of the plugin.

    Best Regards!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Block max-width in editor’ is closed to new replies.