{"id":3982,"date":"2026-07-23T09:38:20","date_gmt":"2026-07-23T09:38:20","guid":{"rendered":"https:\/\/disoh.com\/support\/how-to-create-a-child-theme-in-wordpress\/"},"modified":"2026-07-23T09:38:20","modified_gmt":"2026-07-23T09:38:20","password":"","slug":"comment-creer-un-theme-enfant-sous-wordpress","status":"publish","type":"docs","link":"https:\/\/disoh.com\/fr\/support\/how-to-create-a-child-theme-in-wordpress\/","title":{"rendered":"Comment cr\u00e9er un th\u00e8me enfant dans WordPress"},"content":{"rendered":"<p>Si vous souhaitez personnaliser le code de votre th\u00e8me en toute s\u00e9curit\u00e9, la meilleure solution consiste \u00e0 utiliser un th\u00e8me enfant. Il vous permet d'apporter des modifications qui seront conserv\u00e9es m\u00eame apr\u00e8s les mises \u00e0 jour du th\u00e8me, afin que vous ne perdiez jamais le fruit de votre travail. Ce guide explique ce qu'est un th\u00e8me enfant et comment en cr\u00e9er un.<\/p>\n<h2>Pourquoi utiliser un th\u00e8me enfant ?<\/h2>\n<p>Si vous modifiez directement les fichiers de votre th\u00e8me, la prochaine mise \u00e0 jour de celui-ci \u00e9crasera vos modifications. Un th\u00e8me enfant h\u00e9rite de toutes les propri\u00e9t\u00e9s du th\u00e8me parent, mais conserve vos personnalisations s\u00e9par\u00e9ment ; ainsi, les mises \u00e0 jour du th\u00e8me parent ne les effacent pas.<\/p>\n<h2>Ce dont un th\u00e8me enfant a besoin<\/h2>\n<p>Au minimum, un th\u00e8me enfant est un dossier contenant deux fichiers :<\/p>\n<ul>\n<li>A <strong>style.css<\/strong> fichier comportant un en-t\u00eate qui indique le nom du th\u00e8me parent.<\/li>\n<li>A <strong>functions.php<\/strong> fichier qui charge les styles du th\u00e8me parent.<\/li>\n<\/ul>\n<h2>Comment en cr\u00e9er un<\/h2>\n<ol>\n<li>Sur votre site, <em>wp-content\/themes<\/em> dossier, cr\u00e9ez un nouveau dossier (par exemple, <em>votre-th\u00e8me-enfant<\/em>).<\/li>\n<li>Ajouter un <strong>style.css<\/strong> avec un en-t\u00eate pr\u00e9cisant le \u00ab Template \u00bb (le nom du dossier du th\u00e8me parent).<\/li>\n<li>Ajouter un <strong>functions.php<\/strong> qui met en file d'attente la feuille de style parente.<\/li>\n<li>Aller \u00e0 <strong>Apparence &gt; Th\u00e8mes<\/strong> et activez le th\u00e8me enfant.<\/li>\n<\/ol>\n<p>Si vous pr\u00e9f\u00e9rez ne pas cr\u00e9er ces fichiers manuellement, un plugin g\u00e9n\u00e9rateur de th\u00e8me enfant peut s'en charger \u00e0 votre place.<\/p>\n<h2>Effectuer des personnalisations<\/h2>\n<ul>\n<li>Ajoutez du CSS personnalis\u00e9 au fichier style.css du th\u00e8me enfant.<\/li>\n<li>Pour le remplacer, copiez le fichier de mod\u00e8le parent dans le dossier enfant.<\/li>\n<li>Ajoutez des fonctions personnalis\u00e9es au fichier functions.php du th\u00e8me enfant.<\/li>\n<\/ul>\n<h2>D\u00e9pannage<\/h2>\n<ul>\n<li><strong>Le site semble ne pas \u00eatre mis en forme apr\u00e8s l'activation :<\/strong> La feuille de style parente ne se charge pas ; v\u00e9rifiez le fichier functions.php.<\/li>\n<li><strong>Les modifications n'apparaissent pas :<\/strong> V\u00e9rifiez que vous avez bien modifi\u00e9 le th\u00e8me enfant et videz les caches.<\/li>\n<\/ul>\n<h2>Besoin d'aide ?<\/h2>\n<p>Les th\u00e8mes enfants n\u00e9cessitent un peu de code. Si vous avez des doutes, notre \u00e9quipe d'assistance peut vous indiquer la marche \u00e0 suivre via le chat en direct.<\/p>","protected":false},"excerpt":{"rendered":"<p>If you want to customise your theme&#8217;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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[32],"doc_tag":[],"class_list":["post-3982","docs","type-docs","status-publish","hentry","doc_category-wordpress"],"year_month":"2026-10","word_count":280,"total_views":"161","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Jorn","author_nicename":"jorn","author_url":"https:\/\/disoh.com\/fr\/author\/jorn\/"},"doc_category_info":[{"term_name":"WordPress","term_url":"https:\/\/disoh.com\/fr\/docs-category\/wordpress\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create a Child Theme in WordPress &#8211; Disoh<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/disoh.com\/fr\/soutien\/comment-creer-un-theme-enfant-sous-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a Child Theme in WordPress &#8211; Disoh\" \/>\n<meta property=\"og:description\" content=\"If you want to customise your theme&#8217;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 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/disoh.com\/fr\/soutien\/comment-creer-un-theme-enfant-sous-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Disoh\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/disohhosting\" \/>\n<meta property=\"og:image\" content=\"https:\/\/disoh.com\/wp-content\/uploads\/2025\/07\/disoh_about.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Dur\u00e9e de lecture estim\u00e9e\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/disoh.com\\\/fr\\\/soutien\\\/comment-creer-un-theme-enfant-sous-wordpress\\\/\",\"url\":\"https:\\\/\\\/disoh.com\\\/fr\\\/soutien\\\/comment-creer-un-theme-enfant-sous-wordpress\\\/\",\"name\":\"How to Create a Child Theme in WordPress &#8211; Disoh\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/#website\"},\"datePublished\":\"2026-07-23T09:38:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/fr\\\/soutien\\\/comment-creer-un-theme-enfant-sous-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/disoh.com\\\/fr\\\/soutien\\\/comment-creer-un-theme-enfant-sous-wordpress\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/disoh.com\\\/fr\\\/soutien\\\/comment-creer-un-theme-enfant-sous-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/disoh.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create a Child Theme in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/#website\",\"url\":\"https:\\\/\\\/disoh.com\\\/sv\\\/\",\"name\":\"Disoh\",\"description\":\"Digital Solutions Hosting\",\"publisher\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/disoh.com\\\/sv\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/#organization\",\"name\":\"Disoh LLC\",\"url\":\"https:\\\/\\\/disoh.com\\\/sv\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/disoh.com\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/favicon_1.svg\",\"contentUrl\":\"https:\\\/\\\/disoh.com\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/favicon_1.svg\",\"width\":615,\"height\":615,\"caption\":\"Disoh LLC\"},\"image\":{\"@id\":\"https:\\\/\\\/disoh.com\\\/sv\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/disohhosting\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Comment cr\u00e9er un th\u00e8me enfant dans WordPress \u2013 Disoh","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/disoh.com\/fr\/soutien\/comment-creer-un-theme-enfant-sous-wordpress\/","og_locale":"fr_FR","og_type":"article","og_title":"How to Create a Child Theme in WordPress &#8211; Disoh","og_description":"If you want to customise your theme&#8217;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 [&hellip;]","og_url":"https:\/\/disoh.com\/fr\/soutien\/comment-creer-un-theme-enfant-sous-wordpress\/","og_site_name":"Disoh","article_publisher":"https:\/\/www.facebook.com\/disohhosting","og_image":[{"width":1536,"height":1024,"url":"https:\/\/disoh.com\/wp-content\/uploads\/2025\/07\/disoh_about.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Dur\u00e9e de lecture estim\u00e9e":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/disoh.com\/fr\/soutien\/comment-creer-un-theme-enfant-sous-wordpress\/","url":"https:\/\/disoh.com\/fr\/soutien\/comment-creer-un-theme-enfant-sous-wordpress\/","name":"Comment cr\u00e9er un th\u00e8me enfant dans WordPress \u2013 Disoh","isPartOf":{"@id":"https:\/\/disoh.com\/sv\/#website"},"datePublished":"2026-07-23T09:38:20+00:00","breadcrumb":{"@id":"https:\/\/disoh.com\/fr\/soutien\/comment-creer-un-theme-enfant-sous-wordpress\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/disoh.com\/fr\/soutien\/comment-creer-un-theme-enfant-sous-wordpress\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/disoh.com\/fr\/soutien\/comment-creer-un-theme-enfant-sous-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/disoh.com\/"},{"@type":"ListItem","position":2,"name":"How to Create a Child Theme in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/disoh.com\/sv\/#website","url":"https:\/\/disoh.com\/sv\/","name":"Disoh","description":"Solutions num\u00e9riques H\u00e9bergement","publisher":{"@id":"https:\/\/disoh.com\/sv\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/disoh.com\/sv\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"},{"@type":"Organization","@id":"https:\/\/disoh.com\/sv\/#organization","name":"Disoh LLC","url":"https:\/\/disoh.com\/sv\/","logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/disoh.com\/sv\/#\/schema\/logo\/image\/","url":"https:\/\/disoh.com\/wp-content\/uploads\/2025\/06\/favicon_1.svg","contentUrl":"https:\/\/disoh.com\/wp-content\/uploads\/2025\/06\/favicon_1.svg","width":615,"height":615,"caption":"Disoh LLC"},"image":{"@id":"https:\/\/disoh.com\/sv\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/disohhosting"]}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/docs\/3982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/comments?post=3982"}],"version-history":[{"count":0,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/docs\/3982\/revisions"}],"wp:attachment":[{"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/media?parent=3982"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/doc_category?post=3982"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/disoh.com\/fr\/wp-json\/wp\/v2\/doc_tag?post=3982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}