What is a Wordpress Theme?
A Wordpress theme is a collection of documents that enables us to control the layout of our site. The themes are made up html code along with PHP code and even Javascript and CSS files.
What are the basic files to create a theme?
To create a simple theme we need to files at least:1. style.css
2. index.php
Other important files to consider are header.php as well as footer.php. These two files are not mandatory but are always included in any theme.
What information must be placed within the CSS file?
As a comment, the following lines must be included at least:/*
Theme Name: The name of the theme
Author: Your Name
Author URI: URL of the site of the author
Version: The version of the theme, for instance 1.0, 2.5 and the like
*/
What is the loop in Wordpress?
The loop is the PHP code provided by Wordpress to iterate through the posts so that we can display the content of each one.What is the header.php?
It´s the document in which the PHP code for the header of the page is placed. It contains the DOCTYPE, the <html> tag, the HTML header <head></head> and the opening tag <body> which defines the beginning of the content that displays to the browser.
What is the footer.php?
It´s the file that holds the code for the footer of each page of the site. In this file the closing tags </body> and </html> are found.
Check the video below on how to create a simple Wordpress theme: