{"id":65,"date":"2008-09-07T23:09:04","date_gmt":"2008-09-08T04:09:04","guid":{"rendered":"https:\/\/www.6waghs.net\/poojanblog\/?p=42"},"modified":"2008-09-07T23:09:04","modified_gmt":"2008-09-08T04:09:04","slug":"my-first-wordpress-child-theme-or-quirks-in-wordpress-stylecss-parent-references","status":"publish","type":"post","link":"https:\/\/poojanblog.com\/blog\/2008\/09\/my-first-wordpress-child-theme-or-quirks-in-wordpress-stylecss-parent-references\/","title":{"rendered":"My first WordPress child theme -OR- quirks in WordPress style.css parent references"},"content":{"rendered":"<p>Part of the reason I used <a title=\"WordPress Theme called &quot;Thematic&quot;\" href=\"http:\/\/themeshaper.com\/thematic-for-wordpress\/\" target=\"_blank\">Thematic<\/a> at <a title=\"My other blog\" href=\"http:\/\/www.circuitdesign.info\" target=\"_blank\">CircuitDesign.info<\/a> was because of its ability to do a child theme (<a href=\"http:\/\/themeshaper.com\/functions-php-wordpress-child-themes\/\">See: How I used a WordPress Child Theme To Redesign My Blog The Smart\u00c2\u00a0Way).<\/a><\/p>\n<p>Recently, I upgraded Thematic, and some of my custom RSS feeds disappeared. (I have 3 different RSS feeds at circuitdesign.info depending on the clientele.) Unfortunately, I didn&#8217;t take advantage of this function, so I lost the two custom feeds.<\/p>\n<p>This time, I finally made a custom child theme to support these RSS feeds. The important thing I needed to do was add a couple RSS link to the <code>wp_head<\/code> function.<!--more--><\/p>\n<p>I created a new theme directory (thematic-wagh), and added two files to it: <code>style.css<\/code> and <code>functions.php<\/code>. The <code>style.css<\/code> file contains:<\/p>\n<pre style=\"padding-left: 30px;\">\/*\nTheme Name: Thematic-Wagh\nTheme URI: http:\/\/circuitdesign.info\/\nDescription: Child Theme for Thematic\nAuthor: PoojanWagh\nAuthor URI: http:\/\/www.6waghs.net\/poojanblog\/\nTemplate: thematic\nVersion: 0.1\n.\nThis work is released under the GNU General Public License (GPL), version 2:\nhttp:\/\/www.gnu.org\/licenses\/old-licenses\/gpl-2.0.html\n.\n*\/\n\nimport url(\"..\/thematic\/style.css\");<\/pre>\n<p>Basically, it&#8217;s empty and just has the magic incantation to tell WordPress that everything is defined by Thematic. The functions.php file has:<\/p>\n<pre style=\"padding-left: 30px;\">&lt;?php\n\nfunction childtheme_rss() { ?&gt;\n    &lt;link rel=\"alternate\" type=\"application\/rss+xml\" href=\"http:\/\/feeds.feedburner.com\/AnalogAnalogProfessional\" title=\"Posts for Analog Professionals\" \/&gt;\n    &lt;link rel=\"alternate\" type=\"application\/rss+xml\" href=\"http:\/\/feeds.feedburner.com\/AnalogLayperson\" title=\"Tutorial and General Interest Posts\" \/&gt;\n\n&lt;?php }\n\nadd_action('wp_head', 'childtheme_rss');\n\n?&gt;<\/pre>\n<p>So, as promised, it just adds to RSS links to the <code>wp_head<\/code> definition. That was real cool, and it took only 15 minutes to figure out. It would have taken less time, except I got stuck on a quirk in the <code>style.css<\/code> definition. When I tried:<\/p>\n<pre>Template: Thematic<\/pre>\n<p>It didn&#8217;t work. WordPress said that template didn&#8217;t exist.\u00c2\u00a0 Note that the Thematic directory has the following definition:<\/p>\n<pre>THEME NAME: Thematic\nTHEME URI: http:\/\/themeshaper.com\/thematic-for-wordpress\/\nDESCRIPTION: A &lt;a href=\"http:\/\/themeshaper.com\/\"&gt;ThemeShaper&lt;\/a&gt; theme framework based on work in &lt;a href=\"http:\/\/code.google.com\/p\/blueprintcss\/\"&gt; The Blueprint CSS Framework&lt;\/a&gt;, and by &lt;a href=\"http:\/\/www.pearsonified.com\/\"&gt;Chris Pearson&lt;\/a&gt;, &lt;a href=\"http:\/\/andy.wordpress.com\/\"&gt;Andy Skelton&lt;\/a&gt;, &lt;a href=\"http:\/\/www.plaintxt.org\/\"&gt;Scott Allan Wallick&lt;\/a&gt; and many, many others. Please visit the&lt;a href=\"http:\/\/themeshaper.com\/forums\/\"&gt;ThemeShaper Forums&lt;\/a&gt; if you have any questions about Thematic.\nVERSION: 0.6.3\nAUTHOR: Ian Stewart\nAUTHOR URI: http:\/\/themeshaper.com\/\nTAGS:three columns,two columns,fixed width,simple,seo,microformats,widgets,framework,options page,hooks,filters,valid XHTML,valid CSS\n.\nThis work, like WordPress, is released under GNU General Public License, version\n\u00c2\u00a02 (GPL).\nhttp:\/\/www.gnu.org\/licenses\/old-licenses\/gpl-2.0.html\n.\n*\/<\/pre>\n<p>So, I thought refering to <strong>Thematic<\/strong> with a capital <strong>T<\/strong> would work. However, for some reason, you have to make it all lowercase:<\/p>\n<pre>Template: thematic<\/pre>\n<p>Go figure. Nonetheless, I&#8217;m really happy to have stood on the shoulders of <a title=\"ThemeShaper: really good blog about wordpress themes\" href=\"http:\/\/themeshaper.com\/\" target=\"_blank\">giants<\/a> and to inherit their future advances,<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Part of the reason I used Thematic at CircuitDesign.info was because of its ability to do a child theme (See: How I used a WordPress Child Theme To Redesign My Blog The Smart\u00c2\u00a0Way). Recently, I upgraded Thematic, and some of my custom RSS feeds disappeared. (I have 3 different RSS feeds at circuitdesign.info depending on [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[14,16,44,70,71,72,81],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-web","tag-child-theme","tag-custom-rss","tag-multiple-rss","tag-thematic","tag-theme","tag-themeshaper","tag-wordpress"],"jetpack_featured_media_url":"","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":2,"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"predecessor-version":[{"id":67,"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/65\/revisions\/67"}],"wp:attachment":[{"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/poojanblog.com\/blog\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}