Site logo

Archived topic

Wordpress editor has changed and everything is too narrow

9 replies · Started by Robin on February 1, 2022

Viewing posts 1–10 of 10

Hi there,

Sorry about this! We introduced this bug in 3.1.2.

Until we release 3.1.3, you can use this code to temporarily fix it:

add_action( 'enqueue_block_editor_assets', function() {
	wp_add_inline_style( 'gp-premium-block-elements', '.is-root-container>.wp-block {max-width: var(--gp-block-element-width) !important;}' );
} );

Let me know if you need more info :)

Hi Tom,

Thanks for your reply! Where should I add that code?

Hi Fernando,

Ah great thanks, I have that plugin. I'll add the code.
Also, if I forget to remove it once the bug is fixed will it have impact? If the php code is still there?

Thanks.

You’re welcome! With regards to the looks and functionality of the blocks, there should be no effect.

There would just be two instances of codes doing the same thing.

With that said, I recommend you still remove this after the update since this would unnecessarily add “duplicate” code which would bulk up your site’s size even though relatively minimal.

Hope this answers your inquiry! :)

Right ok, so when update 3.1.3 to generatepress comes I can delete it then? :)

Thanks!

Hi there,

yes thats correct.

Hi David,

Great thanks :)

Glad to be of help

This archived topic is closed to new replies.