Archived topic
Wordpress editor has changed and everything is too narrow
9 replies · Started by Robin on February 1, 2022
Hello,
I started creating elements yesterday evening. I started with a template footer.
I just wanted to continue but the template itself has gotten narrow. The footer has decreased in size, horizontally that is.
Does anyone know if there is a setting to change it?
Screenshot is here =
https://drive.google.com/file/d/1x2bYBufs0Dn5-oWAM7-6A0_F9Do3Xd0h/view?usp=sharing
Thanks.
Robin
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 Robin,
Here is a link you may refer to for assistance with regards to adding PHP: https://docs.generatepress.com/article/adding-php/
Specifically, you may use a plugin called Code Snippets and add the PHP code through there.
Kindly see: https://share.getcloudapp.com/JruGyekR
Hope this helps! :)
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