18 June 2015

Creating a responsive wordpress theme from scratch

Project code on GitHub

To create a WordPress theme, two basic files are needed: index.php and style.css. The stylesheet has to contain some basic information about the theme:

To make the theme suitable for viewing on different screen sizes , e.g. responsive, the theme uses media queries to modify the layout depending on the screen width: