How to Make a WordPress Child Theme

(Last Updated On: January 1, 2018)

The WordPress theme update problem

child themeFrom time to time a WordPress theme will be updated for reasons of security, etc. This can create a huge problem. You may have made changes such as colour, fonts, etc. When the theme is updated, all of these changes will be destroyed. You solve this by creating a child theme.

A child theme is a theme that inherits the functionality and styling of another theme, called the parent theme. When a theme is updated, only the parent is updated.

You will have made you styling changes to the child theme. You may want to add HTML code into your header. These will not be affected by the update. Your WordPress page will still have the same styling changes.

Making a child theme for the Twenty Fifteen WordPress theme

The instructions below are for the Twenty Fifteen theme. You will have to make slight adjustments for other themes.

      • Go to your LiquidNet control panel
      • Click Files > File Manager
      • Double click domain name with which you are working > wp-content
      • Right click on themes > new folder
      • Name the folder twentyfifteen-child

child theme

    • Select new folder & click New File
    • Name it style.css.
    • Right-click on style.css
    • Click on plain text editor
    • Add the code below into it.
/*
Theme Name: Twenty Fifteen Child
Theme URI: https://wordpress.org/themes/twentyfifteen
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
Version: 1.0
Template:     twentyfifteen
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, blue, gray, pink, purple, white, yellow, dark, light, two-columns, left-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: twentyfifteen-child

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

child themePress Save icon.

Your child theme as been created

Leave a Comment

Your email address will not be published. Required fields are marked *

0

Your Cart