Title: WordPress Block Editor (Gutenberg) Issues: Custom Code Not Displaying Correctly
Last modified: September 16, 2024

---

# WordPress Block Editor (Gutenberg) Issues: Custom Code Not Displaying Correctly

 *  [bidak](https://wordpress.org/support/users/bidak/)
 * (@bidak)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/wordpress-block-editor-gutenberg-issues-custom-code-not-displaying-correctly/)
 * Hello,
 * I’m having trouble with some custom code in WordPress after the recent updates.
   The code used to work perfectly, but now, when the Gutenberg block editor is 
   active, it no longer displays correctly.
 * I found a workaround by disabling the block editor for widgets with the following
   code:
 *     ```wp-block-code
       add_filter('use_widgets_block_editor', '__return_false');
       ```
   
 * When I disable the block editor, everything works fine. However, my question 
   is: How can I make my custom code work without disabling the block editor, so
   it functions properly in the default state with Gutenberg active?
 * I would appreciate any advice or guidance on how to resolve this issue in a way
   that maintains compatibility with the latest WordPress version.
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/wordpress-block-editor-gutenberg-issues-custom-code-not-displaying-correctly/#post-18018149)
 * What’s this custom code, and how is it implemented?

Viewing 1 replies (of 1 total)

The topic ‘WordPress Block Editor (Gutenberg) Issues: Custom Code Not Displaying
Correctly’ is closed to new replies.

## Tags

 * [gutenberg](https://wordpress.org/support/topic-tag/gutenberg/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [George Appiah](https://wordpress.org/support/users/gappiah/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/wordpress-block-editor-gutenberg-issues-custom-code-not-displaying-correctly/#post-18018149)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
