I am enqueuing bootstrap stylesheet in my block theme. I want to keep boostrap stylesheet file loaded before the block library stylesheet files.
For example see this demo example site https://uniquesweb.co.in/ntheme/ , if you look at the source code, you will see that all the inline styles of the block editor core blocks are loading first and then the unibsstyle-css is loading. I want to load it as first stylesheet and then any other, because bootstrap css is overwriting what I am providing in theme.json file, from example, default font family, font size for various heading etc.
is there a filter or priority parameter to load my own enqueued stylesheet to load first and then the others ?
- The topic ‘how to enqueue stylesheet before block library style’ is closed to new replies.