Title: Enqueue core block&#8217;s CSS with custom dynamic block
Last modified: October 31, 2023

---

# Enqueue core block’s CSS with custom dynamic block

 *  [ashuga](https://wordpress.org/support/users/ashuga/)
 * (@ashuga)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/enqueue-core-blocks-css-with-custom-dynamic-block/)
 * We’ve created a custom, dynamic block, that pulls data dynamically with PHP from
   an external database.
 * For the front end styling, I would like to use WordPress’s columns and column
   blocks to arrange the content. It’s easy enough to apply the columns block structure
   to the HTML mark up. The styling is not as easy, though, since WordPress will
   only load those when the actual columns block is used.
 * **How can I enqueue WordPress’ core styles for the columns/column blocks when
   my dynamic, custom block is used?**
 * Obviously I could write some CSS to do the same formatting, but I would rather
   not re-invent the wheel in making new columns CSS.
 * Is there a way to enqueue a core block’s CSS, even when it’s not used on the 
   page?

Viewing 1 replies (of 1 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/enqueue-core-blocks-css-with-custom-dynamic-block/#post-17173669)
 * Try to add this in your PHP via wp_enqueue_scripts-hook:
 *     ```wp-block-code
       wp_enqueue_style( 'wp-block-columns' );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Enqueue core block’s CSS with custom dynamic block’ is closed to new 
replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/enqueue-core-blocks-css-with-custom-dynamic-block/#post-17173669)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
