How to Install and Activate a WordPress Theme

Installing a WordPress theme is quite simple. WordPress themes available for download from a variety of areas on the World-wide-web are ordinarily packaged files (i.e. Installing a WordPress theme requires nothing more than unzipping file into the appropriate directory of your WordPress installation, and activating the theme from your WordPress administration console.

Structure of a WordPress Theme

In order for you to install your new WordPress theme appropriately, you have to have to recognize the basics of how the WordPress system interacts with themes. A WordPress theme needs 3 crucial files in order to perform correctly with the WordPress administration:

o An index.php file: This file is the controller of a WordPress weblog. Most WordPress themes also have other PHP files that represent various sections of a WordPress page, but index.php is the only genuinely necessary PHP file.

o A style.css file: This file controls the appear and layout of the WordPress-based internet site working with style definitions. It also includes the details that is applied in the Handle Themes section of WordPress to show the theme name, version, author, and description

o A “screenshot” image: This image is utilised to develop preview of the corresponding theme in the Manage Themes section of the WordPress administration. It can be any of the popular net graphics files (png, jpg, gif), but it desires to be named screenshot. For instance, screenshot.png, screenshot.jpg, or screenshot.gif.

If you’ve gotten your theme from a designer who knows what he’s undertaking, you do not seriously need to have to be concerned about generating positive the theme is set up correctly. If you are not certain, you may just want to double-check that you have got the fundamental files required to set up your theme.

WordPress Directory Structure

The WordPress directory structure includes 3 folders in the root directory:

o wp-admin
o wp-content material
o wp-incorporates

Beneath the wp-content folder there is a folder known as themes. Inside this folder is where you need to have to deposit the folder that includes your theme. Here’s Gutenberg . Say I am installing a theme for a recipe blog. The theme is called Recipe, and its folder structure looks like this:


This theme would ordinarily be packaged in file. To use the theme, I would want to unpackage the file, then upload it (almost certainly utilizing FTP) into my WordPress themes folder. If I have WordPress installed on my net server under a directory referred to as weblog, my directory structure would look like this:





Activating a WordPress Theme

Soon after I upload the theme to the right directory, I can now go to my WordPress administration to activate it. Right after logging in to the WordPress admin section, I go to Appearances->Themes. I can see that my new theme is installed appropriately and prepared to be activated, because I can see it in below Accessible Themes on the Manage Themes page.