Title: Block Theme Patterns not loading
Last modified: August 2, 2024

---

# Block Theme Patterns not loading

 *  [Julian](https://wordpress.org/support/users/juliangk/)
 * (@juliangk)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/block-theme-patterns-not-loading/)
 * Hello,
 * ever since installing WP 6.6 there are problems with patterns in custom block
   themes.
   I have been working for a while with custom block themes and have always
   created patterns in the theme through creating files within the folder “patterns”,
   such as “cover-with-text.php” and never had any issues having the patterns load
   in the backend in the pattern window within the gutenberg editor.
 * I noticed that some of the Block API properties for patterns are different now
   in the Twenty Twenty-Four theme, as here:
 *     ```wp-block-code
       <?php/** * Title: Hero * Slug: twentytwentyfour/banner-hero * Categories: banner, call-to-action, featured * Viewport width: 1400 * Description: A hero section with a title, a paragraph, a CTA button, and an image. */?>
       ```
   
 * Before there used to be `keywords` and no `viewportWidth` . I have changed my
   pattersn accordingly. But now whenever I add a new pattern it doesn’t show in
   the editor. Then while error logging and reloading, minutes later they appear
   for no apparent reason. Then the whole problem starts again when I add a new 
   pattern.
 * I have not managed to debug the problem, can not find the reason and also do 
   not know why sometimes they suddenly start loading/registering and sometimes 
   they don’t. Changing priority in the hook where I add my custom categroy does
   nothing:
 *     ```wp-block-code
       add_action('init', function () {    //**** Unregister Core Patterns  ****/    unregister_block_pattern_category('featured');    unregister_block_pattern_category('footer');    unregister_block_pattern_category('query');    unregister_block_pattern_category('posts');    unregister_block_pattern_category('testimonials');    unregister_block_pattern_category('text');    unregister_block_pattern_category('services');        //**** Register Pattern Category  ****/    register_block_pattern_category(        'example',        array('label' => 'Example')    );});
       ```
   
 * What could be causing these issues? How can I make sure my patterns are being
   recognized and loaded without registering them through php directly?
   Thanks and
   best regardsJulian

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/block-theme-patterns-not-loading/#post-17930956)
 * I’m afraid there aren’t enough users here in the forum who create individual 
   themes. Therefore, I would recommend you to describe this to the Gutenberg team:
   [https://github.com/WordPress/gutenberg/issues](https://github.com/WordPress/gutenberg/issues)–
   I found something similar there: [https://github.com/WordPress/gutenberg/issues/64104](https://github.com/WordPress/gutenberg/issues/64104)
 *  [Dennis Seid](https://wordpress.org/support/users/aventurin/)
 * (@aventurin)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/block-theme-patterns-not-loading/#post-17956006)
 * I had the same problem and found a hint via the linked GitHub issue. It seems
   to be caused by a WordPress internal theme caching functionality.
 * When I added these two lines in the wp-config.php, which deactivate caching among
   other things, new patterns were displayed and loaded immediately:
 *     ```wp-block-code
       define( 'WP_ENVIRONMENT_TYPE', 'development' ); define( 'WP_DEVELOPMENT_MODE', 'theme' );
       ```
   
 * [https://make.wordpress.org/core/2023/07/14/configuring-development-mode-in-6-3/](https://make.wordpress.org/core/2023/07/14/configuring-development-mode-in-6-3/)
    -  This reply was modified 1 year, 10 months ago by [Dennis Seid](https://wordpress.org/support/users/aventurin/).
    -  This reply was modified 1 year, 10 months ago by [Dennis Seid](https://wordpress.org/support/users/aventurin/).
 *  Thread Starter [Julian](https://wordpress.org/support/users/juliangk/)
 * (@juliangk)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/block-theme-patterns-not-loading/#post-17963530)
 * [@aventurin](https://wordpress.org/support/users/aventurin/)
 * Thank you very much for the input. I was not aware of the changes made to caching!
 * Best regards
   Julian
 *  [tatof](https://wordpress.org/support/users/tatof/)
 * (@tatof)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/block-theme-patterns-not-loading/#post-18181584)
 * Just want to say: Dennis Seid, you saved me a lot of work! thanks for your reply
 *  Thread Starter [Julian](https://wordpress.org/support/users/juliangk/)
 * (@juliangk)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/block-theme-patterns-not-loading/#post-18196588)
 * Actually this does not resolve the issue, setting the constants has no effect
   on pattern loading after adding them to the pattern folder.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Block Theme Patterns not loading’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 4 participants
 * Last reply from: [Julian](https://wordpress.org/support/users/juliangk/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/block-theme-patterns-not-loading/#post-18196588)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
