Select location & language
  • Österreich German
  • Australia English
  • België Dutch
  • Canada English
  • Schweiz German
  • Deutschland German
  • Eesti English
  • Ελλάδα English
  • España Spanish
  • France French
  • Hrvatska English
  • Italia English
  • Latvija English
  • Lietuva English
  • Nederland Dutch
  • Norge Norwegian
  • Polska Polish
  • Portugal Portuguese
  • Slovensko English
  • Suomi Finnish
  • Sverige Swedish
  • United Kingdom English
  • United States English
  • American Samoa English
  • Andorra English
  • Anguilla English
  • Antarctica English
  • Bermuda English
  • British Indian Ocean Territory English
  • British Virgin Islands English
  • Cayman Islands English
  • Christmas Island English
  • Città del Vaticano English
  • Cocos (Keeling) Islands English
  • Falkland Islands English
  • French Southern Territories English
  • Gibraltar English
  • Guadeloupe French
  • Guam English
  • Guernsey English
  • Guyane française French
  • Heard & McDonald Islands English
  • Ireland English
  • Isle of Man English
  • Jersey English
  • Liechtenstein German
  • Luxembourg French
  • Malta English
  • Martinique French
  • Mayotte English
  • Monaco French
  • Montserrat English
  • New Zealand English
  • Norfolk Island English
  • Northern Mariana Islands English
  • Pitcairn Islands English
  • Puerto Rico Spanish
  • Réunion English
  • San Marino English
  • Slovenija English
  • St. Barthélemy English
  • St. Helena English
  • St. Martin English
  • St. Pierre & Miquelon English
  • Svalbard & Jan Mayen English
  • Turks & Caicos Islands English
  • U.S. Outlying Islands English
  • U.S. Virgin Islands English
  • Åland Islands English
  • Κύπρος English
  • Црна Гора English

How to Create a Child Theme in WordPress

1 min read

If you want to customise your theme’s code safely, a child theme is the right way to do it. It lets you make changes that survive theme updates, so you never lose your work. This guide explains what a child theme is and how to create one.

Why use a child theme #

If you edit your theme’s files directly, the next theme update overwrites your changes. A child theme inherits everything from the parent theme but holds your customisations separately, so updates to the parent do not erase them.

What a child theme needs #

At minimum, a child theme is a folder containing two files:

  • A style.css file with a header that names the parent theme.
  • A functions.php file that loads the parent theme’s styles.

How to create one #

  1. In your site’s wp-content/themes folder, create a new folder (for example, yourtheme-child).
  2. Add a style.css with a header specifying the Template (the parent theme’s folder name).
  3. Add a functions.php that enqueues the parent stylesheet.
  4. Go to Appearance > Themes and activate the child theme.

If you prefer not to create the files by hand, a child theme generator plugin can do it for you.

Making customisations #

  • Add custom CSS to the child’s style.css.
  • Copy a parent template file into the child folder to override it.
  • Add custom functions to the child’s functions.php.

Troubleshooting #

  • Site looks unstyled after activating: the parent stylesheet is not loading; check functions.php.
  • Changes not appearing: confirm you edited the child theme and clear caches.

Need help? #

Child themes involve a little code. If you are unsure, our support team can point you to the right approach over live chat.

What are your feelings