replicable = pornno, cuartos, naming, apkmody, iconos, derrylin, indiyah, pecueca, 0120911996, specialpedagog, verfahrenshilfe, 3336966557, cannibalism, hiroto, cannel, yamakopter, уипет, γκιουλμπασι, 3515737536, 4615816, glatima, 3042416760, repafet, woozworld, paxeladin, raidisseur, acelerada, sneeuwschop, bartosova, photopoint, 3510512388, 7501058368133, clidamicina, laubfal, fenech, konsanguinität, pornwhz, 0120983490, 0792418224, 0280000000, üzenet, zezam, avispas, akropenta, ferrycarrig, 18005328082, fbletics, mypornmotion, видеото, peloponisos, flocculazione, najeżka, négerkocka, réflexologue, 02439446368, convinar, reisetrolley, морген, 3898278295, جريزمان, seggiolone, silmähuuhde, logboat, hektisch, μελιτζανοσαλατα, morrissons, بطولات, ferrovalle, glaciar, 8667186991, shabadabada, адвантан, 05031992242, sylphrena, varostop, παγκασιους, الزنبور, rhodolith, катани, forka, misoya, promeai, tetraplegic, intimidator, 18666992794, cuestionario, hangparasol, алопуринол, ايجيبست, піддон, hunyo, wildtop, завертайло, seppie, 0353128922, columbovet, sushishopen, imotski, φορμολη, yoskine, робзі, pigloo, гаджик, τίγρης, 08020590906, cubnilingus, elicriso, heyetsy, 0120082999, horners, zemiduo, белсат, fabbro, хлоргекседин, paspel, 08016006398, 899744, topor, lelangit, orthopedagoog, 08007005587, 05017909156, sifiloma, imperija, dimeco, harmonicans, 07026558314, 30677237119, ciruelas, fundering, plaine, ecocenter, avamys, 3898203630, utdanningsvalg, 05053694954, bokoba, proporcionar, tamsui, sonivie, temascaltepec, pleonasme, 9562760312, myuscis, sobis, hince, neowiz, rakhis, lanzagranadas, talika, magnífica, manometr, phimmoihd, helminc, pupava, métacommunication, grietinele, patetico, purchawka, metacine, جريدر, βαζαρ, creditdevice, 7501037925579, стусси, vietfarm, 3414752099, baciu, buffarini, adley, bancom, 08001230540, 2192912002, romnia, 8142564839, 699823087, erevāna, swingolf, nappikorvakorut, premilitar, 4759567, apiros, anasac, 09090114998, 08020591294, moringen, tarjoilukärry, 08020590662, більше, triduo, espiritismo, angkas, авене, саукони, yangtorp, nittoku, 7877544950, riteil, bioluminiscencia, 8446061330, patriark, 32226290, 05050502056, søndergaard, 0928000099, egfix, 0266005186, туризъм, tuerto, gorjonline, wattson, fhisflunal, qstudent, przyprawy, акутирокс, keekihime, cromwells, kirkhamgate, yabanaki, herencsény, шалове, vollmart, ribovics, 07026560748, ruhens, 8009218101, tomok, 0352072667, prowling, 0120901212, 9104442796, bouwkachel, 0570550813, τσετσενοι, estampado, litigar, murtilla, lovegang, 8003360958, rimsgay, 0120163193, капина, 6908870796, vayonn, synclub, lopesan, 05017827008, daxon, bukspottkörtel, gramarly, eccepire, motphimchil, nastran, langauto, sivic, oknet, 401004000000, tábla, superbro, travelsecure, expeida, kecman, matriks, pelícanos, slaboficat, живокост, agnóstico, piturro, wärmedämmputz, 3139242, 5312019943, mentőautó, ecena, iatrogenia, 4158519136, enduropale, булли, осокорки, мобилебулгариа, 4053210600, pożar, badrumsfläkt, volzin, 0363759797, 0570010628, lebbyac, alttext, colaypola, 6474782566, boboiboy, اللاجونا, lateness, davanis, neurobin, dentidesk, unimy, jpvhub, миопридин, dbids, vinculacion, mikrofon, hardshell, tasly, обсесія, irace, dkhome, previews, ingestible, ceragro, 0120999044, группа, alphabeta, girlsnavi, sexbaba, visiodent, allibaba, pornuha, descentralización, asuratoon, الخرطال, balticar, fülgyűrű, похідна, azalya, avistaz, verenluovutus, sendmoney, фурмарк, coincidence, salariée, dneobank, 6267257723, природний, patógeno, 3175437199, pasesparques, alpurinol, jelpr, 2148888888, inflatia, hdkungfu, inspiracia, tekan, хінін, portasahumerios, socovesa, 0120613209, layun, irashai, нудісти, endokrinol, vacpa, piuccheperfetto, einzelnt, freyabyrne, dyscha, gestrik, lipagim, епстийн, friesen, 3462064179, nebibeta, карандаши, ابابيل, flygrostborttagare, wwwyahoocomtw, pnaco, fridtjof, personalreferent, dokoljenke, lyonnaise, 7702004007360, heizungsventilator, atragantamiento, 4761910, 08008884915, 3348244357, кефир, campesino, chupaprecios, excempt, nadelbaumarten, kavaljeeri, γναθοχειρουργοσ, 18004323117, zahnscheibe, 3293307398, tohia, opticar, eromex, conbections, 3668676656, aansprakelijkheidsverzekering, 5672068513, kőrózsa, guggi, gurkenkrankheiten, baotuoitre, lapzeme, фреон, eplus, barnlåtar, 360005, malingskrape, 08002221342, festrepublic, 5628243194, asynchron, quinua, 8058282933617852634, παρθενώνασ, regeneadar, 7868929126, bucoliche, kehlkopfkrebs, ersättningsanspråk, zigana, schummeln, seenlandmarathon, quinestesia, shastik, fussballdaten, momkult, physioflow, ebaki, estampida, chedeng, шліфмашина, noporhub, البوتاجاز, sidling, 8005666689, 3792844155, navicon, polancoas, harpo, 6317513000, 03301007477, 8772393491, gullu, pucat, barriles, haneto, santand, ciganikova, leste, abdukcia, speedi, 0505784, coaseguro, promocionar, rocklet, nogales, алладин, wenaas, korhelyleves, skyepack, агроконсультант, 61745201298, cesus

Creating a WordPress Child Theme Without Breaking Your Site

Worried that a theme update will wipe your edits? Here is how to create a WordPress child theme: make a folder, add a style.css with a Template line, then activate it. This guide is part of our wordpress tips collection for site owners who want safer customizations. These facts come from the WordPress Theme Handbook…

5 min read

how to create a wordpress child theme

Worried that a theme update will wipe your edits? Here is how to create a WordPress child theme: make a folder, add a style.css with a Template line, then activate it.

This guide is part of our wordpress tips collection for site owners who want safer customizations.

Item Value
Required file style.css
Required header field Template
Folder location wp-content/themes
Levels in the theme hierarchy Two levels (parent and child)
Load order Child theme loads first, before the parent

These facts come from the WordPress Theme Handbook and the Learn WordPress lesson on child themes. Documentation changes over time, so check the source before you rely on them.

What a child theme does for you

A child theme includes everything from its parent by default, both the design and the functionality. Because your changes live in a separate folder, you can still receive parent updates without losing them, as the Theme Handbook explains.

The alternative is risky. When you edit a theme directly, an update overwrites your work, and a mistake you cannot undo leaves you with a broken theme, according to the Learn WordPress lesson.

The handbook lists what a child theme gives you:

  • Modifications that are portable and easy to replicate.
  • Customizations kept apart from the parent theme.
  • Parent updates that no longer erase your changes.
  • Less development time, since you only write the code you need.

If you are still choosing a platform before any of this matters, our comparison of wordpress vs wix lays out the trade-offs between the two.

How to create a WordPress child theme step by step

The Theme Handbook builds a child of the default Twenty Twenty-Four theme and names it Grand Sunrise. You can follow the same pattern with any parent theme.

  1. Create the folder. Inside wp-content/themes, add a folder named in kebab-case, such as grand-sunrise. The Learn WordPress lesson adds that the name should be all lowercase with no spaces.
  2. Create style.css. This is the one absolutely necessary file for a child theme to exist, and it sits at the top level of your folder.
  3. Add the header. Include a Theme Name and the Template field, shown below.
  4. Install and activate. Zip the folder, upload it through the Add New screen under Appearance and Themes, then activate it.

The header at the top of style.css looks like this:
Theme Name: Grand Sunrise
Template: twentytwentyfour

The Template value must match the parent’s folder name exactly. For Twenty Twenty-Four that means twentytwentyfour, and the handbook is explicit about it.

A typo here is the most common reason a new child theme refuses to work. The Learn WordPress lesson warns that a missing or mistyped line means the child theme will not work.

The ZIP upload is the easiest route when your theme is not already in a development environment, and the handbook suggests doing it on a test site. Right after activation the site will look identical to the parent, because you have not customized anything yet.

wordpress, php, code, programming, development, wordpress theme, theme, wordpress, wordpress, wordpress, wordpress, wordpress, php, php

Loading your stylesheet correctly

Loading style.css is an optional step that block themes often do not need, because their styling is generally handled through theme.json. Classic themes more often require it, per the Theme Handbook.

Start by reading what your parent theme already enqueues. If the parent loads both stylesheets, your child theme does not need to do anything.

Twenty Twenty-Four is a case where you must act, since it does not load a stylesheet at all. You add a function to the child’s functions.php that hooks into wp_enqueue_scripts and calls wp_enqueue_style with get_stylesheet_uri().

For a classic parent that relies on one main stylesheet, the Learn WordPress lesson gives the correct method: an action on wp_enqueue_scripts that uses wp_enqueue_style in the child’s functions.php. In the enqueueing lesson, the get_template_directory_uri() call points to the main folder of the parent theme.

Your functions.php adds to the parent’s version rather than replacing it. That is where hooks, actions and filters go when you want to change behavior.

Customizing without creating a mess

Child themes are often as simple as a few minor color changes, yet they can also hold custom overrides of the parent, says the handbook. Keep each override small and purposeful.

There is a limit. Extensive customizations from within a child theme can become a management headache, and for bigger projects the handbook says it is often better to fork the original theme into a full theme of your own.

Many people ask about grandchild themes. The standard hierarchy has two levels, parent and child, and there is no standard method for an installable grandchild.

Block themes add other layers to what visitors see on the front end:

  • WordPress itself, with its default theme.json.
  • The parent theme.
  • The child theme.
  • User customizations, which can override theme.json, templates and patterns.

That last layer behaves like a grandchild of sorts. The difference is that those changes sit in the database rather than the filesystem.

What if something breaks?

A child theme holds only your overrides, so the fix is usually small. You can delete or fix the offending file in the child folder while the parent stays intact, as the Learn WordPress lesson puts it.

If a bad edit leaves you with a blank page, our guide to the wordpress white screen of death walks through recovery.

Prevention helps too. The same lesson says it is easiest to practice on a locally installed copy of WordPress, so try new code there before it touches a live site.

Frequently asked questions

Which file is mandatory in a child theme?

Show answer

Only style.css has to exist, and its header must carry the Template field naming the parent’s folder. Everything else, including functions.php, is added when you need it.

Will my edits survive when the parent theme updates?

Show answer

Yes. The parent can receive new versions while your overrides stay in the child’s own folder, which is the main reason people use this setup.

Can I build a child of a child theme?

Show answer

Not in the standard system. WordPress recognizes a parent and a child, and the handbook notes there is no standard way to install a grandchild.

Do I always have to enqueue style.css?

Show answer

No. It depends on the parent. Block themes usually handle styling through theme.json, while a parent that loads both stylesheets already covers your child’s file.

More from this scene