O'Reilly logo

Building E-Commerce Solutions with WooCommerce - Second Edition by Robbert Ravensbergen

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

WordPress theme basics

WordPress theme development in a short version:

  • Every WordPress theme has its own folder, which you may find in the wp-content/themes folder of your WordPress installation.
  • The bare minimum that every WordPress theme needs is an index.php and style.css file. The index.php file determines the way the home page looks like, by the so-called WordPress loop. There are also other possibilities for the home page, which we'll see in a minute. The style.css file contains all the styling or calls for other CSS files. It also contains the name and author of the theme.
  • From index.php, lots of different PHP files can be called. Here are a couple of the most common ones, including their meaning:
    • header.php: This contains the logic for the ...

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