{"id":3256,"date":"2014-06-23T21:51:26","date_gmt":"2014-06-23T21:51:26","guid":{"rendered":"http:\/\/webninjataylor.com\/library\/?p=3256"},"modified":"2014-06-24T20:47:48","modified_gmt":"2014-06-24T20:47:48","slug":"wordpress-child-themes","status":"publish","type":"post","link":"https:\/\/webninjataylor.com\/library\/wordpress-child-themes\/","title":{"rendered":"WordPress Child Themes"},"content":{"rendered":"<p>Use <a href=\"http:\/\/codex.wordpress.org\/Child_Themes\" target=\"_blank\">child themes<\/a> to avoid losing changes when themes are updated by their vendors.<\/p>\n<ol>\n<li>Create a new theme folder with the same name as its parent, plus &#8220;-child&#8221; appended to it<\/li>\n<li>Create a style.css file with at least the following three required lines\u2026\n<ol>\n<li><strong>Theme Name<\/strong> (ex.Theme Name: Twenty Fourteen Child) \u2026 NOTE: No spaces allowed before colon, but after is fine for code alignment<\/li>\n<li><strong>Template<\/strong> (ex.Template: twentyfourteen)\u00a0\u2026 NOTE: No spaces allowed before colon, but after is fine for code alignment<\/li>\n<li>The &#8216;<strong>@import url<\/strong>&#8216;\u00a0line (ex.@import url(&#8220;..\/twentyfourteen\/style.css&#8221;);)<\/li>\n<\/ol>\n<\/li>\n<li>(Optional) Create any template files for which you desire to\u00a0override its\u00a0equivalent file in the parent theme directory\n<ol>\n<li><strong>Exception:<\/strong> If you create a <strong>functions.php<\/strong> file it will be loaded right BEFORE the parent theme\u2019s functions.php<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Use child themes to avoid losing changes when themes are updated by their vendors. Create a new theme folder with the same name as its parent, plus &#8220;-child&#8221; appended to it Create a style.css file with at least the following three required lines\u2026 Theme Name (ex.Theme Name: Twenty Fourteen Child) \u2026 NOTE: No spaces allowed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[144],"tags":[5],"class_list":["post-3256","post","type-post","status-publish","format-standard","hentry","category-web-shots","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/comments?post=3256"}],"version-history":[{"count":3,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3256\/revisions"}],"predecessor-version":[{"id":3318,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/posts\/3256\/revisions\/3318"}],"wp:attachment":[{"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/media?parent=3256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/categories?post=3256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webninjataylor.com\/library\/wp-json\/wp\/v2\/tags?post=3256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}