{"id":1253,"date":"2015-07-07T06:11:31","date_gmt":"2015-07-07T06:11:31","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=1253"},"modified":"2015-07-07T06:21:40","modified_gmt":"2015-07-07T06:21:40","slug":"just-another-wordpress-child-theme-instruction-white-page-of-death-cure","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=1253","title":{"rendered":"Just another wordpress child theme instruction \/ white page of death cure"},"content":{"rendered":"<p>Carelessly following <a href=\"https:\/\/codex.wordpress.org\/Child_Themes\">these instructions<\/a>, I got a WPOD.<br \/>\nTurns out the reason was I was copying two sections where I really only needed the second.<br \/>\nFor the not-so-faint-of-heart;<br \/>\nmake your child folder, such as &#8216;twentyten-child&#8217; (2010, old-school, I know!)<br \/>\nThen you need two files to get started; style.css and functions.php as follows:<\/p>\n<p><strong>style.css<\/strong><br \/>\n<code>\/*<br \/>\n Theme Name:    TwentyTen Child<br \/>\n Theme URI:     http:\/\/example.com\/twenty-ten-child\/<br \/>\n Description:   TwentyTen Child Theme<br \/>\n Author:        Joe T<br \/>\n Author URI:    http:\/\/www.omniweb.com\/wordpress<br \/>\n Template:      twentyten<br \/>\n Version:       1.0.0<br \/>\n License:       GNU General Public License v2 or later<br \/>\n License URI:   http:\/\/www.gnu.org\/licenses\/gpl-2.0.html<br \/>\n Tags:  Blargh, light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready<br \/>\n Text Domain:   twenty-ten-child<br \/>\n*\/<\/code><\/p>\n<p>and <strong>functions.php<\/strong><\/p>\n<p><code><?php\n\nfunction theme_enqueue_styles() {\n\n    $parent_style = 'parent-style';\n\n    wp_enqueue_style( $parent_style, get_template_directory_uri() . '\/style.css' );\n    wp_enqueue_style( 'child-style',\n        get_stylesheet_directory_uri() . '\/style.css',\n        array( $parent_style )\n    );\n}\nadd_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );\n\n?><\/code><\/p>\n<p>Then add any other files you need to customize and you&#8217;re safe from the upgrade destruction monster.  Just good idea to keep an eye on when the parent theme is updated, what files are updated and make concurrent changes in any customized files (scary! but do it anyway you lazy lug [to myself]) -bye<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Carelessly following these instructions, I got a WPOD. Turns out the reason was I was copying two sections where I really only needed the second. For the not-so-faint-of-heart; make your child folder, such as &#8216;twentyten-child&#8217; (2010, old-school, I know!) Then &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=1253\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1253"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1253"}],"version-history":[{"count":5,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1253\/revisions"}],"predecessor-version":[{"id":1258,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1253\/revisions\/1258"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}