Creating a Bare-Bones Theme – Just the Basics

Create the theme directory and the style.css file

This is a preview lesson
Register or sign in to take this lesson.

Step 1

Navigate to wp-content/themes directory in your Development site’s file structure.

Step 2

Create a new directory named


Step 3

Open the first-block-theme directory in your IDE

Step 4

create a new file named style.css

Step 5

Add the following code to the file

/* Theme Name: My First Block Theme */
Code language: JSON / JSON with Comments (json)

The header section of style.css will typically contain more information than this but the Theme Name is required in order for WordPress to identify the files in your theme directory as a theme that can be activated.