• Hi. I’ve created a blank block theme. If I enter something in the style.css (for example body{background-color:black !important;}, the styling doesn’t work and I can’t find the style.css in the source code either. Do I have to do anything else so that the style.css is used by the theme?

Viewing 1 replies (of 1 total)
  • Plugin Author Sarah Norris

    (@mikachan)

    Hi @cdheumann. In order to use any CSS added to the style.css file included with an exported theme, you need to enqueue the stylesheet. There is more information in the theme handbook here.

    There is an open issue to consider automatically enqueueing the style.css file in a theme exported with Create Block Theme here.

Viewing 1 replies (of 1 total)
  • The topic ‘style.css didnt work’ is closed to new replies.