O'Reilly logo

WordPress Responsive Theme Design by Dejan Markovic

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Working with Template Files

Template files are very important files for WordPress themes. We have mentioned this previously, but let's repeat it again. In order to have a theme in WordPress, we need to have at least the following files:

  • style.css
  • functions.php
  • index.php

In style.css, we define the theme name, a description, and the core CSS for the theme. In the functions.php file, we define our own custom functions and calling our styles and JavaScript, and also wireing our theme code to the WordPress core. In the index.php file, we display the list of our posts, pages, or any other objects that are listed in that index page. There can be a lot of index pages in our template.

Without further ado, in this chapter we will:

  • Learn the template ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required