Creating a basic WordPress theme can be easier than you might think. Here’s how, in 60 seconds!
Quick Instructions
Take a basic CSS and HTML template like the one shown in the video.
Create a folder in “wp-content/themes”, for example “sixtysecondtheme”.
Copy in your HTML, CSS and images. To the top of your style CSS file add a comment specifying the theme’s name:
Rename “index.html” to “index.php” then open it for editing.
Replace the template’s static content with PHP snippets that will call dynamic content in from WordPress. You can search WordPress.org to find these snippets and you can download the source files to find snippets for this theme.
Create a file named “functions.php” and use the wp_enqueue_style()
function to load your theme’s style sheets.
Now you can activate your new simple blog theme!
Useful Resources
Learn more about WordPress themes on Tuts+.
- Creating a WordPress Theme From Static HTML tutorial series
- A Beginner’s Guide to Using WordPress free course
- WordPress Theme Creation With Underscores course
- Source files for this tutorial on GitHub
Comments