TagDiv Composer Makes Block Editor Narrow (See Screenshots)

Posted in: Newspaper
Post count: 5

For some reason, my block editor when I’m creating new posts is very narrow. Something is messing with the CSS of the block editor pages that messes it up big time. If I disable the TagDiv Composer plugin, the block editor returns to normal.

With TagDiv Composer Off:

With TagDiv Composer On:

Post count: 5

for some reason, it’s injecting this into the post-new.php file:

<style>/* custom css */ .td-gutenberg-editor .editor-styles-wrapper .wp-block {max-width: 335px}</style>

Post count: 5

Further update, it’s clearly pulls from the “Content-width” settings for the Single Post Content element. If you change that, the max-width it sets changes with it. The issue is that I never set mine, and it looks like the default is auto, so I’m not sure why the theme is choosing to inject that 335px max width.

Post count: 18283

Hi,

Please make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv Composer, also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.

If the problem persist, please set this code in functions.php -> wp-content/plugins/td-composer/legacy/Newspaper/functions.php
add_action('admin_head',function() {
echo '<style>.td-gutenberg-editor .editor-styles-wrapper .wp-block {max-width:726px;}</style>';
});

Or you can send us an email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.