Title: head block inline-css after theme style.css
Last modified: October 27, 2023

---

# head block inline-css after theme style.css

 *  Resolved [tatof](https://wordpress.org/support/users/tatof/)
 * (@tatof)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/load-block-inline-css-after-style-css/)
 * I’m updating my base theme to the block.json way of working. But now i have the
   problem all my block styles are loaded inline **above **style.css in the header.
 * Style.css is loaded with “wp_enqueue_style” -> “wp_enqueue_scripts”
 * Block inline-css are loaded through the block.json
 * ![](https://i0.wp.com/devtof.nl/blockhelp.png?ssl=1)
 * How do I switch this? All wp_enqueue_scripts should go above the block inline-
   css blocks.
    -  This topic was modified 2 years, 7 months ago by [tatof](https://wordpress.org/support/users/tatof/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [tatof](https://wordpress.org/support/users/tatof/)
 * (@tatof)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/load-block-inline-css-after-style-css/#post-17157424)
 * Stupid me… needed to add the priority in the add_action hook.
 *     ```wp-block-code
       add_action( 'wp_enqueue_scripts', 'footer_scripts', 5 );
       ```
   
 * This way my style CSS is loaded earlier then the inline-css from the blocks.
    -  This reply was modified 2 years, 7 months ago by [tatof](https://wordpress.org/support/users/tatof/).

Viewing 1 replies (of 1 total)

The topic ‘head block inline-css after theme style.css’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 1 participant
 * Last reply from: [tatof](https://wordpress.org/support/users/tatof/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/load-block-inline-css-after-style-css/#post-17157424)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
