Creating a WordPress theme

🏁 In this series, we will create a WordPress classic theme from scratch, called Domingo.

The first step to creating a WordPress theme is to create an empty folder and give it a name.

Within the new folder, create two files:

  • index.php
  • style.css

The index.php file will be the main template of our WordPress theme, and will be displayed when nothing more specific matches a query.

The style.css file contains the main styles for the theme, and also includes the theme description.

To add the theme description to the style.css file, create a CSS comment block and include the Theme Name and Author.

/*
Theme Name: Domingo
Author: Forth Dev
*/

After creating these two files in the root folder, move the entire folder to the themes folder of your WordPress installation.

You will then be able to activate the theme in the Appearance > Themes page of your site.

Leave a Comment