How To Make a Child Theme

First of all, make sure that you have FTP access to your site and a FTP client.

Open a text editor, create a file named style.css and paste:

/*
Theme Name: My Child Theme
Theme URI: http://www.lubith.com/
Description: Child Theme for my-lubith-theme. Here I make all
Author: Me
Author URI: http://www.lubith.com/
Template: my-lubith-theme
Version: 1.0
*/


@import url("../my-lubith-theme/style.css");

 

Important:

  1. The stylesheet must be named style.css in order to be recognized by WordPress.
  2. Replace the Theme, Author URI and the Author name. Replace the Template with the name of the parent theme’s folder, not of the parent theme.
  3. The “/* [...] */ “mark is used by WordPress in order to identify a theme.
  4. The @import must precede all styling rules that you further apply in order for the parent stylesheet to be imported.
  5. Make sure that the parent theme is uploaded in the themes directory. Make a new folder with the name of your child theme in the same directory. Upload the style.css file into that folder.

How do I make changes to my child theme?

Example:

Assuming that you want to set a static background image, not one that scrolls along with the rest of the page (at this point, this property can’t be changed from the Lubith editor), you can add the following property to the body element like this:

body {

background-attachment:fixed;

}

Simply paste the code in your stylesheet (style.css) in order to apply the changes to your child theme.