{"id":205097,"date":"2016-03-06T01:07:44","date_gmt":"2016-03-06T00:07:44","guid":{"rendered":"http:\/\/www.elmastudio.de\/en\/?p=205097"},"modified":"2018-03-13T02:59:23","modified_gmt":"2018-03-13T01:59:23","slug":"wordpress-plugins-child-theme-check","status":"publish","type":"post","link":"https:\/\/www.elmastudio.de\/en\/wordpress-plugins-child-theme-check\/","title":{"rendered":"Useful WordPress Plugins: Child Theme Check"},"content":{"rendered":"<p>Child themes are a great way to customize a WordPress theme, without loosing your changes in a parent theme update. But since you are copying the original theme files into your own child theme, of course changes in the parent themes will not get transferred to your child theme files.<\/p>\n<p>This could result in you missing out on important code updates and even causing a <strong>security risk<\/strong> for you.<\/p>\n<p>To avoid this you can use a small, easy-to-manage WordPress plugin called <a href=\"https:\/\/wordpress.org\/plugins\/child-theme-check\/\"><strong>&#8220;Child Theme Check&#8221;<\/strong><\/a>. We first heard of the idea for this plugin from the plugin author <a href=\"https:\/\/twitter.com\/zodiac1978\">Torsten Landsiedel<\/a>, the  last summer while attending the WordCamp Cologne. Since then we prepared all our latest themes for the plugin. It&#8217;s important that the parent theme includes a version number, so that the plugin knows when a theme file got updated. <!--more--><\/p>\n<figure id=\"attachment_205007\" aria-describedby=\"caption-attachment-205007\" style=\"width: 1000px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/versions-nr.jpg\" alt=\"The version number in a  theme file of the parent theme.\" width=\"1000\" height=\"351\" class=\"size-full wp-image-205007\" srcset=\"https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/versions-nr.jpg 1000w, https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/versions-nr-600x211.jpg 600w, https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/versions-nr-720x253.jpg 720w, https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/versions-nr-768x270.jpg 768w, https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/versions-nr-150x53.jpg 150w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><figcaption id=\"caption-attachment-205007\" class=\"wp-caption-text\">The version number in a  theme file of the parent theme.<\/figcaption><\/figure>\n<p><em>(You can also use the plugin in themes without version numbers, but then you need to check each theme file manually to see, if new changes were made.)<\/em><\/p>\n<h4>1. How to recognize changes in theme files<\/h4>\n<p>After you have installed the plugin you can find a list of all theme files which got updated in the plugin settings under <em>Tools \/ Child Theme Check<\/em>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/theme-check-screenshot-en-01.jpg\" alt=\"theme-check-screenshot-en-01\" width=\"900\" height=\"607\" class=\"alignnone size-full wp-image-205155 img-border\" srcset=\"https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/theme-check-screenshot-en-01.jpg 900w, https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/theme-check-screenshot-en-01-600x405.jpg 600w, https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/theme-check-screenshot-en-01-720x486.jpg 720w, https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/theme-check-screenshot-en-01-768x518.jpg 768w, https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/theme-check-screenshot-en-01-150x101.jpg 150w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>In my example I updated the <em>content.php<\/em> file of the parent theme and changed the version number of this particular file. Now I will see this information in the Child Theme Check plugin list.<\/p>\n<h4>2. See details of all changes in a theme file<\/h4>\n<p>Via the tab menu &#8220;Diff&#8221;, I can now compare my child theme file with the parent theme file. All new changes are marked in red. <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/theme-check-screenshot-en-02.jpg\" alt=\"theme-check-screenshot-en-02\" width=\"900\" height=\"588\" class=\"alignnone size-full wp-image-205157 img-border\" srcset=\"https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/theme-check-screenshot-en-02.jpg 900w, https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/theme-check-screenshot-en-02-600x392.jpg 600w, https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/theme-check-screenshot-en-02-720x470.jpg 720w, https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/theme-check-screenshot-en-02-768x502.jpg 768w, https:\/\/www.elmastudio.de\/wp-content\/uploads\/2016\/03\/theme-check-screenshot-en-02-150x98.jpg 150w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<p>Now I can decide for myself, if I want to update my child theme file as well or ignore the changes that were made in the parent theme file. After I made any changes in my child theme, I should also update the version number in my child theme file.<\/p>\n<p>As you can see, the plugin is really easy to use. It offers a great possibility to control your child theme and keep your theme files <strong>up-to-date<\/strong> and most importantly <strong>save<\/strong>.<\/p>\n<h5>Your feedback<\/h5>\n<p>How do you like the plugin? Do you think it will help you to improve working and managing child themes in WordPress? Please just write a comment, I would love to hear your feedback and ideas!<\/p>\n<p>List of all <strong>Elmastudio themes<\/strong> already supporting version numbers:<br \/>\n&#8211; Weta, Zeitreise, Werkstatt, Neubau and Hawea<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Child themes are a great way to customize a WordPress theme, without loosing your changes in a parent theme update. But since you are copying the original theme files into your own child theme, of course changes in the parent themes will not get transferred to your child theme files. This could result in you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":205031,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1156,910],"tags":[635,1401,1045,1157,1009,1075],"class_list":["post-205097","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plugins-wordpress-en","category-wordpress-en","tag-child-theme","tag-featured-en","tag-plugins-en","tag-useful","tag-wordpress-theme-en-2","tag-wordpress-themes-en-3"],"_links":{"self":[{"href":"https:\/\/www.elmastudio.de\/en\/wp-json\/wp\/v2\/posts\/205097","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elmastudio.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elmastudio.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elmastudio.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elmastudio.de\/en\/wp-json\/wp\/v2\/comments?post=205097"}],"version-history":[{"count":0,"href":"https:\/\/www.elmastudio.de\/en\/wp-json\/wp\/v2\/posts\/205097\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.elmastudio.de\/en\/wp-json\/wp\/v2\/media\/205031"}],"wp:attachment":[{"href":"https:\/\/www.elmastudio.de\/en\/wp-json\/wp\/v2\/media?parent=205097"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elmastudio.de\/en\/wp-json\/wp\/v2\/categories?post=205097"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elmastudio.de\/en\/wp-json\/wp\/v2\/tags?post=205097"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}