Author: Dawid Adach
So here we are, ready to develop our first WordPress theme. In this tutorial, we will create the most common theme - a blog template.
1. Placeholder folder
Let's create a folder to store our template. Navigate to the folder where your WordPress is installed (if you haven't done that yet follow this tutorial). Navigate to
wp-content/themes, you should see three default themes (twentyfifteen, twentyfourteen, twentysixteen). Create a new subfolder and call it mdbblog.
2. Creating a style.css file
style.css file (you can use any text editor, I use Sublime 3) and paste the following code into it:
/* Theme Name: MDB Theme Theme URI: https://mdbootstrap.com Description: This is outstanding WP theme developed on Material Design for Bootstrap 4 Version: 4.5.5 Author: MDBootstrap.com Author URI: https://mdbootstrap.com */
3. Creating index.php
index.php file and paste the following code into it:
<h1>One day I will be a writer!</h1>
Congratulations! You've just created your first theme. Perhaps it isn't the most beautiful nor useful theme you have ever seen, but we will take care of it soon. Let's activate it. Open your admin dashboard, go to
Appearance in the left menu, and then click
You should see your new Theme (MDB Blog) on the list.
Click on the
Activate button, and navigate to the home page.
If you see the text "One day, I will be a writer!", it means that you have succeeded in creating your first theme.
In order to create WordPress theme you have to create at least 2 files:
Previous lesson Download Next lesson
Spread the word:
Install MDB CLI
It's the fastest way to create and host MDB projects