{"id":4485,"date":"2025-10-21T14:46:17","date_gmt":"2025-10-21T14:46:17","guid":{"rendered":"https:\/\/thoth.dk\/?p=4485"},"modified":"2025-10-23T13:38:37","modified_gmt":"2025-10-23T13:38:37","slug":"noter-child-theme","status":"publish","type":"post","link":"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/","title":{"rendered":"Notat: Child theme og wp-now"},"content":{"rendered":"\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a3c8d45f03e0&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a3c8d45f03e0\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"124\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/thoth.dk\/wp-content\/uploads\/2025\/10\/Skaermbillede-2025-10-21-kl.-17.28.24.png\" alt=\"Mappestruktur under den mappe der fungerer som &quot;wp_content&quot;.\" class=\"wp-image-4494\" srcset=\"https:\/\/thoth.dk\/wp-content\/uploads\/2025\/10\/Skaermbillede-2025-10-21-kl.-17.28.24.png 400w, https:\/\/thoth.dk\/wp-content\/uploads\/2025\/10\/Skaermbillede-2025-10-21-kl.-17.28.24-300x93.png 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Lav en mappe, der fungerer som &#8220;wp_content&#8221;. Hvad den hedder er ligegyldigt. Naviger til denne mappe med &#8220;cd&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Lad der v\u00e6re to undermapper:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>En mappe med dit childtheme, fx petj_oktober<\/li>\n\n\n\n<li>En mappe med for\u00e6ldretemaets filer, fx twentytwentyfive<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Opret filerne i child theme efter denne opskrift:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-wordpress-developer-resources wp-block-embed-wordpress-developer-resources\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"yH7zjXvRq7\"><a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\">Child Themes<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Child Themes&#8221; &#8212; WordPress Developer Resources\" src=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/embed\/#?secret=qQzcKpjAaE#?secret=yH7zjXvRq7\" data-secret=\"yH7zjXvRq7\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Mappen med &#8220;parent theme&#8221; skal blot indeholde de dekomprimerede filer fra temaet.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mappen med childtheme skal minimum indeholde:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/#create-a-style-css\" target=\"_blank\" rel=\"noreferrer noopener\">style.css<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/thoth.dk\/index.php\/2025\/10\/23\/screenshot-png\/\" target=\"_blank\" rel=\"noreferrer noopener\">screenshot.png<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/#loading-style-css\" target=\"_blank\" rel=\"noreferrer noopener\">functions.php<\/a> med link til childtheme og for\u00e6ldretemaets stylesheet.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Herefter kan filer, som skal \u00e6ndres kopieres fra &#8220;parent theme&#8221; til &#8220;child theme&#8221; mappen. Husk, at filstrukturen skal v\u00e6re den samme som i parent theme. Filer, der er kopieret p\u00e5 denne m\u00e5de overskrives ikke ved opdateringer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Omvendt kan der v\u00e6re en fordel i at arbejde i et child theme &#8211; det kan jo ske at der kommer gode opdateringer til dit &#8220;parent theme&#8221;. I et childtheme vil du typisk kan du tilf\u00f8je kode til functions.php eller style.css &#8211; ved opdateringer overskrives disse filer ikke.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">wp-now<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Mht wp-now skal programmet k\u00f8res fra et directory, som ligger p\u00e5 samme m\u00e5de som wp-content. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nu kan temaet redigeres efter behov med fonte, farver og s\u00e5ske ekstra skabeloner. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hvis noget skal \u00e6ndres i fx theme.json (eller en anden original fil) kan den kopieres fra &#8220;parent theme&#8221; mappen og til &#8220;child theme&#8221; mappen. Nu kan den redigeres frit &#8211; og uden fare for at indholdet overskrives ved opdatering.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Resultat<\/h2>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a3c8d45f0d10&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a3c8d45f0d10\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"526\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/thoth.dk\/wp-content\/uploads\/2025\/10\/Skaermbillede-2025-10-21-kl.-17.31.57.png\" alt=\"\" class=\"wp-image-4496\" srcset=\"https:\/\/thoth.dk\/wp-content\/uploads\/2025\/10\/Skaermbillede-2025-10-21-kl.-17.31.57.png 930w, https:\/\/thoth.dk\/wp-content\/uploads\/2025\/10\/Skaermbillede-2025-10-21-kl.-17.31.57-300x170.png 300w, https:\/\/thoth.dk\/wp-content\/uploads\/2025\/10\/Skaermbillede-2025-10-21-kl.-17.31.57-768x434.png 768w\" sizes=\"auto, (max-width: 930px) 100vw, 930px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\tdata-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.thisImage.buttonRight\"\n\t\t\tdata-wp-style--top=\"state.thisImage.buttonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><figcaption class=\"wp-element-caption\">Efter at have k\u00f8rt wp-now i mn hammelev_wp_content\/ mappe opst\u00e5r disse mapper.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Wp-now opretter de mapper, som skal bruges af din prototype.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">N\u00e5r du lukker for wp-now gemmes indholdet ikke; men de filer, som du har oprettet i dit childtheme vil v\u00e6re der. Derfor er det en god ide at eksportere det indhold, som du vil gemme.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Eksporter dit tema<\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"1080\" style=\"aspect-ratio: 1920 \/ 1080;\" width=\"1920\" controls src=\"https:\/\/thoth.dk\/wp-content\/uploads\/2024\/09\/tema-export.webm\"><\/video><figcaption class=\"wp-element-caption\">S\u00e5dan eksporterer du dit chid-theme til en zip.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Efter at have udviklet temaet b\u00f8r du eksportere det fra Kontrolpanelet. Zip-filen vil indeholde et child-theme. Det kan du se i style.css og function.php. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lav en mappe, der fungerer som &#8220;wp_content&#8221;. Hvad den hedder er ligegyldigt. Naviger til denne mappe med &#8220;cd&#8221;. Lad der v\u00e6re to undermapper: Opret filerne i child theme efter denne opskrift: Mappen med &#8220;parent theme&#8221; skal blot indeholde de dekomprimerede filer fra temaet. Mappen med childtheme skal minimum indeholde: Herefter kan filer, som skal \u00e6ndres [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2915,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[31,24,23,21],"tags":[157,162,165,155,164,163],"class_list":["post-4485","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-multimediedesign","category-programming","category-tutorials","category-dk","tag-childtheme","tag-child-theme","tag-functions-php","tag-screenshot-png","tag-style-css","tag-wp-now"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Notat: Child theme og wp-now - Wordpress og WooCommerce<\/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:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/\" \/>\n<meta property=\"og:locale\" content=\"da_DK\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Notat: Child theme og wp-now - Wordpress og WooCommerce\" \/>\n<meta property=\"og:description\" content=\"Lav en mappe, der fungerer som &#8220;wp_content&#8221;. Hvad den hedder er ligegyldigt. Naviger til denne mappe med &#8220;cd&#8221;. Lad der v\u00e6re to undermapper: Opret filerne i child theme efter denne opskrift: Mappen med &#8220;parent theme&#8221; skal blot indeholde de dekomprimerede filer fra temaet. Mappen med childtheme skal minimum indeholde: Herefter kan filer, som skal \u00e6ndres [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/\" \/>\n<meta property=\"og:site_name\" content=\"Wordpress og WooCommerce\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-21T14:46:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-23T13:38:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thoth.dk\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2023-08-02-09.31.50-happy-multimedia-designer-creates-a-professional-onine-portfolio-in-wordpress.-Draw-this-as-a-anime-cartoon.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Per Thykj\u00e6r Jensen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Skrevet af\" \/>\n\t<meta name=\"twitter:data1\" content=\"Per Thykj\u00e6r Jensen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimeret l\u00e6setid\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutter\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2025\\\/10\\\/21\\\/noter-child-theme\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2025\\\/10\\\/21\\\/noter-child-theme\\\/\"},\"author\":{\"name\":\"Per Thykj\u00e6r Jensen\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/#\\\/schema\\\/person\\\/d94ae14e2a45089632b96d9f633fac06\"},\"headline\":\"Notat: Child theme og wp-now\",\"datePublished\":\"2025-10-21T14:46:17+00:00\",\"dateModified\":\"2025-10-23T13:38:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2025\\\/10\\\/21\\\/noter-child-theme\\\/\"},\"wordCount\":358,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2025\\\/10\\\/21\\\/noter-child-theme\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thoth.dk\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/DALL\u00b7E-2023-08-02-09.31.50-happy-multimedia-designer-creates-a-professional-onine-portfolio-in-wordpress.-Draw-this-as-a-anime-cartoon.png\",\"keywords\":[\"Childtheme\",\"Childtheme\",\"functions.php\",\"screenshot.png\",\"style.css\",\"wp-now\"],\"articleSection\":[\"Multimediedesign\",\"Programming\",\"Tutorials\",\"\ud83c\udde9\ud83c\uddf0 Danske Tutorials\"],\"inLanguage\":\"da-DK\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2025\\\/10\\\/21\\\/noter-child-theme\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2025\\\/10\\\/21\\\/noter-child-theme\\\/\",\"url\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2025\\\/10\\\/21\\\/noter-child-theme\\\/\",\"name\":\"Notat: Child theme og wp-now - Wordpress og WooCommerce\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2025\\\/10\\\/21\\\/noter-child-theme\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2025\\\/10\\\/21\\\/noter-child-theme\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thoth.dk\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/DALL\u00b7E-2023-08-02-09.31.50-happy-multimedia-designer-creates-a-professional-onine-portfolio-in-wordpress.-Draw-this-as-a-anime-cartoon.png\",\"datePublished\":\"2025-10-21T14:46:17+00:00\",\"dateModified\":\"2025-10-23T13:38:37+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/#\\\/schema\\\/person\\\/d94ae14e2a45089632b96d9f633fac06\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2025\\\/10\\\/21\\\/noter-child-theme\\\/#breadcrumb\"},\"inLanguage\":\"da-DK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2025\\\/10\\\/21\\\/noter-child-theme\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"da-DK\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2025\\\/10\\\/21\\\/noter-child-theme\\\/#primaryimage\",\"url\":\"https:\\\/\\\/thoth.dk\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/DALL\u00b7E-2023-08-02-09.31.50-happy-multimedia-designer-creates-a-professional-onine-portfolio-in-wordpress.-Draw-this-as-a-anime-cartoon.png\",\"contentUrl\":\"https:\\\/\\\/thoth.dk\\\/wp-content\\\/uploads\\\/2024\\\/09\\\/DALL\u00b7E-2023-08-02-09.31.50-happy-multimedia-designer-creates-a-professional-onine-portfolio-in-wordpress.-Draw-this-as-a-anime-cartoon.png\",\"width\":1024,\"height\":1024,\"caption\":\"Portfolio (Dall-e 2023)\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/2025\\\/10\\\/21\\\/noter-child-theme\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/thoth.dk\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Notat: Child theme og wp-now\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/#website\",\"url\":\"https:\\\/\\\/thoth.dk\\\/\",\"name\":\"Wordpress og WooCommerce\",\"description\":\"Syv kreative dage med WordPress og WooCommerce\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thoth.dk\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"da-DK\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/thoth.dk\\\/#\\\/schema\\\/person\\\/d94ae14e2a45089632b96d9f633fac06\",\"name\":\"Per Thykj\u00e6r Jensen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"da-DK\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0c742a8215d5628ce5ef34c45460dd1c5211c693c0613635306baeec5c28d7a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0c742a8215d5628ce5ef34c45460dd1c5211c693c0613635306baeec5c28d7a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0c742a8215d5628ce5ef34c45460dd1c5211c693c0613635306baeec5c28d7a9?s=96&d=mm&r=g\",\"caption\":\"Per Thykj\u00e6r Jensen\"},\"description\":\"P\u00e5 Thoth.dk kan du finde tutorials og artikler om udvikling af websites med WordPress og online shopping med WooCommerce. Der er fokus p\u00e5 de nyeste blokbaserede temaer og metoder. Materialer og tutorials er udviklet af Per Thykj\u00e6r Jensen, lektor p\u00e5 Multimediedesigneruddannelsen ved Erhvervsakademi Aarhus.\",\"sameAs\":[\"https:\\\/\\\/thoth.dk\"],\"url\":\"https:\\\/\\\/thoth.dk\\\/index.php\\\/author\\\/per\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Notat: Child theme og wp-now - Wordpress og WooCommerce","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:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/","og_locale":"da_DK","og_type":"article","og_title":"Notat: Child theme og wp-now - Wordpress og WooCommerce","og_description":"Lav en mappe, der fungerer som &#8220;wp_content&#8221;. Hvad den hedder er ligegyldigt. Naviger til denne mappe med &#8220;cd&#8221;. Lad der v\u00e6re to undermapper: Opret filerne i child theme efter denne opskrift: Mappen med &#8220;parent theme&#8221; skal blot indeholde de dekomprimerede filer fra temaet. Mappen med childtheme skal minimum indeholde: Herefter kan filer, som skal \u00e6ndres [&hellip;]","og_url":"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/","og_site_name":"Wordpress og WooCommerce","article_published_time":"2025-10-21T14:46:17+00:00","article_modified_time":"2025-10-23T13:38:37+00:00","og_image":[{"width":1024,"height":1024,"url":"https:\/\/thoth.dk\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2023-08-02-09.31.50-happy-multimedia-designer-creates-a-professional-onine-portfolio-in-wordpress.-Draw-this-as-a-anime-cartoon.png","type":"image\/png"}],"author":"Per Thykj\u00e6r Jensen","twitter_card":"summary_large_image","twitter_misc":{"Skrevet af":"Per Thykj\u00e6r Jensen","Estimeret l\u00e6setid":"2 minutter"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/#article","isPartOf":{"@id":"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/"},"author":{"name":"Per Thykj\u00e6r Jensen","@id":"https:\/\/thoth.dk\/#\/schema\/person\/d94ae14e2a45089632b96d9f633fac06"},"headline":"Notat: Child theme og wp-now","datePublished":"2025-10-21T14:46:17+00:00","dateModified":"2025-10-23T13:38:37+00:00","mainEntityOfPage":{"@id":"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/"},"wordCount":358,"commentCount":0,"image":{"@id":"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/#primaryimage"},"thumbnailUrl":"https:\/\/thoth.dk\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2023-08-02-09.31.50-happy-multimedia-designer-creates-a-professional-onine-portfolio-in-wordpress.-Draw-this-as-a-anime-cartoon.png","keywords":["Childtheme","Childtheme","functions.php","screenshot.png","style.css","wp-now"],"articleSection":["Multimediedesign","Programming","Tutorials","\ud83c\udde9\ud83c\uddf0 Danske Tutorials"],"inLanguage":"da-DK","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/","url":"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/","name":"Notat: Child theme og wp-now - Wordpress og WooCommerce","isPartOf":{"@id":"https:\/\/thoth.dk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/#primaryimage"},"image":{"@id":"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/#primaryimage"},"thumbnailUrl":"https:\/\/thoth.dk\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2023-08-02-09.31.50-happy-multimedia-designer-creates-a-professional-onine-portfolio-in-wordpress.-Draw-this-as-a-anime-cartoon.png","datePublished":"2025-10-21T14:46:17+00:00","dateModified":"2025-10-23T13:38:37+00:00","author":{"@id":"https:\/\/thoth.dk\/#\/schema\/person\/d94ae14e2a45089632b96d9f633fac06"},"breadcrumb":{"@id":"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/#breadcrumb"},"inLanguage":"da-DK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/"]}]},{"@type":"ImageObject","inLanguage":"da-DK","@id":"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/#primaryimage","url":"https:\/\/thoth.dk\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2023-08-02-09.31.50-happy-multimedia-designer-creates-a-professional-onine-portfolio-in-wordpress.-Draw-this-as-a-anime-cartoon.png","contentUrl":"https:\/\/thoth.dk\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2023-08-02-09.31.50-happy-multimedia-designer-creates-a-professional-onine-portfolio-in-wordpress.-Draw-this-as-a-anime-cartoon.png","width":1024,"height":1024,"caption":"Portfolio (Dall-e 2023)"},{"@type":"BreadcrumbList","@id":"https:\/\/thoth.dk\/index.php\/2025\/10\/21\/noter-child-theme\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thoth.dk\/"},{"@type":"ListItem","position":2,"name":"Notat: Child theme og wp-now"}]},{"@type":"WebSite","@id":"https:\/\/thoth.dk\/#website","url":"https:\/\/thoth.dk\/","name":"Wordpress og WooCommerce","description":"Syv kreative dage med WordPress og WooCommerce","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thoth.dk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"da-DK"},{"@type":"Person","@id":"https:\/\/thoth.dk\/#\/schema\/person\/d94ae14e2a45089632b96d9f633fac06","name":"Per Thykj\u00e6r Jensen","image":{"@type":"ImageObject","inLanguage":"da-DK","@id":"https:\/\/secure.gravatar.com\/avatar\/0c742a8215d5628ce5ef34c45460dd1c5211c693c0613635306baeec5c28d7a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0c742a8215d5628ce5ef34c45460dd1c5211c693c0613635306baeec5c28d7a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0c742a8215d5628ce5ef34c45460dd1c5211c693c0613635306baeec5c28d7a9?s=96&d=mm&r=g","caption":"Per Thykj\u00e6r Jensen"},"description":"P\u00e5 Thoth.dk kan du finde tutorials og artikler om udvikling af websites med WordPress og online shopping med WooCommerce. Der er fokus p\u00e5 de nyeste blokbaserede temaer og metoder. Materialer og tutorials er udviklet af Per Thykj\u00e6r Jensen, lektor p\u00e5 Multimediedesigneruddannelsen ved Erhvervsakademi Aarhus.","sameAs":["https:\/\/thoth.dk"],"url":"https:\/\/thoth.dk\/index.php\/author\/per\/"}]}},"_links":{"self":[{"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/posts\/4485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/comments?post=4485"}],"version-history":[{"count":14,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/posts\/4485\/revisions"}],"predecessor-version":[{"id":4524,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/posts\/4485\/revisions\/4524"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/media\/2915"}],"wp:attachment":[{"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/media?parent=4485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/categories?post=4485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thoth.dk\/index.php\/wp-json\/wp\/v2\/tags?post=4485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}