WordPress theme creation
Written by Dawid Adach ,
Final result previewLive preview
So here we are, ready to develop our first WordPress theme. In this tutorial, we will create the most common theme - blog template.
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 3 default themes (twentyfifteen, twentyfourteen, twentysixteen). Create a new folder and call it mdbblog.
2. Creating style.css
style.css file (you can use any text editor, I use Sublime 3) and paste the following code into it:
/* Theme Name: MDB Blog Theme URI: http://www.mdbootstrap.com Description: This is outstanding WP Blog theme developed on Material Design for Bootstrap 4 Version: 1 Author: MDBootstrap.com Author URI: http://www.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.
Activate button, and navigate to the home page.
If you see 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: