<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Tag: childtheme_override</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 23 May 2013 09:57:34 +0000</pubDate>

<item>
<title>thespareroomstudio on "childtheme_override bug?"</title>
<link>http://themeshaper.com/forums/topic/childtheme_override-bug#post-26144</link>
<pubDate>Tue, 03 Apr 2012 09:40:08 +0000</pubDate>
<dc:creator>thespareroomstudio</dc:creator>
<guid isPermaLink="false">26144@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks for the help and links.  Much appreciated.
&#60;/p&#62;</description>
</item>
<item>
<title>sowingseeds on "childtheme_override bug?"</title>
<link>http://themeshaper.com/forums/topic/childtheme_override-bug#post-26143</link>
<pubDate>Tue, 03 Apr 2012 09:26:08 +0000</pubDate>
<dc:creator>sowingseeds</dc:creator>
<guid isPermaLink="false">26143@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Can't answer for the design, but I would say 'yes'. Most action hooks have nothing attached to them: aboveheader etc. They are there to have some action attached to them if needed. The ones in the header have division openings (+ other aspects) and division closure (as per brandingclose. The numbers position where in the header they appear - hence by using no 6 we are placing a function b4 the close of branding. We could have made an adjustment to the override and placed a function in the brandingclose hook - placing our function b4 the final echo command.&#60;/p&#62;
&#60;p&#62;Here is a generic guide to hooks and filters:&#60;br /&#62;
&#60;a href=&#34;http://wpcandy.com/teaches/how-to-use-wordpress-hooks&#34;&#62;http://wpcandy.com/teaches/how-to-use-wordpress-hooks&#60;/a&#62;&#60;br /&#62;
And for Thematic:&#60;br /&#62;
&#60;a href=&#34;http://themeshaper.com/forums/topic/need-help-understanding-actions-vs-filters-and-changing-post-meta-and-utility#post-22638&#34;&#62;post-22638&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>thespareroomstudio on "childtheme_override bug?"</title>
<link>http://themeshaper.com/forums/topic/childtheme_override-bug#post-26142</link>
<pubDate>Tue, 03 Apr 2012 08:54:30 +0000</pubDate>
<dc:creator>thespareroomstudio</dc:creator>
<guid isPermaLink="false">26142@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;sowingseeds,&#60;/p&#62;
&#60;p&#62;Worked like a charm.  Thanks.  I feel better that I didn't have to edit Thematic's core. &#60;/p&#62;
&#60;p&#62;Do we know yet if this was intentional?  I'm trying to find the logic of doing it this way, verses the rest of the overrides.
&#60;/p&#62;</description>
</item>
<item>
<title>sowingseeds on "childtheme_override bug?"</title>
<link>http://themeshaper.com/forums/topic/childtheme_override-bug#post-26124</link>
<pubDate>Mon, 02 Apr 2012 08:27:06 +0000</pubDate>
<dc:creator>sowingseeds</dc:creator>
<guid isPermaLink="false">26124@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;OK I think I get what you are looking for. Don't go and edit the thematic files. The hook you are looking to add to is thematic_header,6. 'thematic_brandingclose' is basically the closing division of branding, so assuming you want to add a function into branding - after blog-title and blog-description... but still inside branding:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function before_branding_closes() {
	//place function here
        }
add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;before_branding_closes&#38;#39;, 6);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The '6' places it after 5 - site-description and before 7 - branding close.
&#60;/p&#62;</description>
</item>
<item>
<title>thespareroomstudio on "childtheme_override bug?"</title>
<link>http://themeshaper.com/forums/topic/childtheme_override-bug#post-26120</link>
<pubDate>Sun, 01 Apr 2012 21:40:59 +0000</pubDate>
<dc:creator>thespareroomstudio</dc:creator>
<guid isPermaLink="false">26120@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;sowingseeds, thanks for your reply.&#60;/p&#62;
&#60;p&#62;I actually have a different echo statement in my own function, I just chose to echo the closing div as an example to show add_action().  Sorry for the confusion.  Allow me to clarify.&#60;/p&#62;
&#60;p&#62;I originally DID NOT have add_action in my function, but noticed that childtheme_override_brandingclose() was not executing.  Upon inspecting the code in Thematic's core, I noticed that there is NO add_action if using childtheme_override_brandingclose() according to  the conditional statement I included above.  add_action is only implemented if there is NO childtheme_override_brandingclose().  Which brought me to my question... is that on purpose?  To me, it would make sense if add_action('thematic_header', 'thematic_brandingclose', 7)'; was after the conditional.  Such is the case in other childtheme_overrides that are NOT in the header.  So I am wondering if this was missed or intentional.  And if it is intentional, what would be the correct way for me to use the overrides?&#60;/p&#62;
&#60;p&#62;If I edit the Thematic Core file (gasp!) and move add_action after the conditional, my override function works.  Obviously, this is not what I want to do.&#60;/p&#62;
&#60;p&#62;Hopefully that clarifies things a bit.  Sorry about that.  Thanks for the help.
&#60;/p&#62;</description>
</item>
<item>
<title>sowingseeds on "childtheme_override bug?"</title>
<link>http://themeshaper.com/forums/topic/childtheme_override-bug#post-26119</link>
<pubDate>Sun, 01 Apr 2012 19:54:57 +0000</pubDate>
<dc:creator>sowingseeds</dc:creator>
<guid isPermaLink="false">26119@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Couple of things. If using childtheme_override_brandingclose you are overriding what is in thematic_brandingclose. Your code above 1) you are seeking to replace what is there with exactly the same code? 2) When you use an override you do not add it with an 'add_action' but simply:&#60;br /&#62;
function chidtheme_override_***(){&#60;br /&#62;
//my replacement code to what is in the original function;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;No add_action needed.
&#60;/p&#62;</description>
</item>
<item>
<title>thespareroomstudio on "childtheme_override bug?"</title>
<link>http://themeshaper.com/forums/topic/childtheme_override-bug#post-26118</link>
<pubDate>Sun, 01 Apr 2012 19:30:01 +0000</pubDate>
<dc:creator>thespareroomstudio</dc:creator>
<guid isPermaLink="false">26118@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;Just started using Thematic, great work.  I have a question though.  It seems like all the childtheme_overrides in the thematic_header hook have the add_action in the wrong place in the conditional statement.  For example, here is the code for childtheme_override_brandingclose():&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if (function_exists(&#38;#39;childtheme_override_brandingclose&#38;#39;))  {
	    function thematic_brandingclose() {
	    	childtheme_override_brandingclose();
	    }
	} else {
	    function thematic_brandingclose() {
	    	echo &#38;quot;\t\t&#38;lt;/div&#38;gt;&#38;lt;!--  #branding --&#38;gt;\n&#38;quot;;
	    }
	    add_action(&#38;#39;thematic_header&#38;#39;,&#38;#39;thematic_brandingclose&#38;#39;,7);
	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is this done on purpose?  If so, how do I add the hook correctly in my own function.  I have tried both &#60;code&#62;add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;thematic_brandingclose&#38;#39;, 7);&#60;/code&#62; and &#60;code&#62;add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;childtheme_override_brandingclose&#38;#39;, 7);&#60;/code&#62; in my child theme's functions.php file.  Both ways seem to not execute what I put in the function.  Thanks for the help.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_brandingclose() {
	echo &#38;quot;\t\t&#38;lt;/div&#38;gt;&#38;lt;!--  #branding --&#38;gt;\n&#38;quot;;
	add_action(&#38;#39;themeatic_header&#38;#39;, &#38;#39;thematic_brandingclose&#38;#39;, 7);
	}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>helgatheviking on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-21713</link>
<pubDate>Tue, 07 Jun 2011 22:12:17 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">21713@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;not sure what bug you are seeing?  &#60;/p&#62;
&#60;p&#62;0.9.7.7 might be official in the WP repo, but the latest version of Thematic is 0.9.8 which fixed a lot of bugs w/ the overrides&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://developing.thematic4you.com/thematic-development-release/&#34; rel=&#34;nofollow&#34;&#62;http://developing.thematic4you.com/thematic-development-release/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Teenage on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-21712</link>
<pubDate>Tue, 07 Jun 2011 22:06:50 +0000</pubDate>
<dc:creator>Teenage</dc:creator>
<guid isPermaLink="false">21712@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;The official code (0.9.7.7) still get this bug.&#60;/p&#62;
&#60;p&#62;I stumbled onto this page after looking for information about &#34;childtheme_override_**&#34; that still doesn't existe : &#60;a href=&#34;http://themeshaper.com/thematic/guide/?s=override&#38;#38;searchsubmit=Find&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/thematic/guide/?s=override&#38;#38;searchsubmit=Find&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Please add the missing  &#34;add_action('thematic_header','thematic_***',X);&#34; lines to the next release and update the documentation.
&#60;/p&#62;</description>
</item>
<item>
<title>kirkroberts on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-18905</link>
<pubDate>Wed, 02 Feb 2011 18:55:50 +0000</pubDate>
<dc:creator>kirkroberts</dc:creator>
<guid isPermaLink="false">18905@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Sweet, thanks! I'll check those out.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-18875</link>
<pubDate>Tue, 01 Feb 2011 16:22:44 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">18875@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;you can either get:&#60;br /&#62;
&#60;a href=&#34;http://developing.thematic4you.com/thematic-development-release/&#34; rel=&#34;nofollow&#34;&#62;http://developing.thematic4you.com/thematic-development-release/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;or learn to get SVN from this great tut:&#60;br /&#62;
&#60;a href=&#34;http://themeshaper.com/forums/topic/how-to-get-the-latest-svn-copy-of-thematic&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/how-to-get-the-latest-svn-copy-of-thematic&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>kirkroberts on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-18870</link>
<pubDate>Tue, 01 Feb 2011 14:03:37 +0000</pubDate>
<dc:creator>kirkroberts</dc:creator>
<guid isPermaLink="false">18870@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I just recently downloaded Thematic and it seems this issue is not resolved in the package downloaded from themeshaper.com?&#60;br /&#62;
I see how to fix it but don't want to overwrite core files.&#60;br /&#62;
Not on the SVN train yet... sigh.
&#60;/p&#62;</description>
</item>
<item>
<title>mirko77 on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-16938</link>
<pubDate>Fri, 12 Nov 2010 10:33:09 +0000</pubDate>
<dc:creator>mirko77</dc:creator>
<guid isPermaLink="false">16938@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Oh yes...I overlooked that if statement! Thank you very much!
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-16907</link>
<pubDate>Thu, 11 Nov 2010 13:07:41 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">16907@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;thanks chris!
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-16904</link>
<pubDate>Thu, 11 Nov 2010 10:27:27 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">16904@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Ok .. this one is fixed. Grab the latest SVN copy and remove the add_action call.&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-16903</link>
<pubDate>Thu, 11 Nov 2010 08:55:40 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">16903@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'll check this later today. Normally the override functions should work without add_action. Unfortunately I had the add_action call inside the if-clause. We fixed a couple of these bugs in the latest SVN copies, but I'm not sure if we fixed this one.&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-16876</link>
<pubDate>Wed, 10 Nov 2010 16:13:28 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">16876@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;actually if you take a look at the header-extensions.php file you will see exactly what happens w/ the override&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Open #branding
	// In the header div
	if (function_exists(&#38;#39;childtheme_override_brandingopen&#38;#39;))  {
	    function thematic_brandingopen() {
	    	childtheme_override_brandingopen();
	    }
	} else {
		function thematic_brandingopen() {
			echo &#38;quot;&#38;lt;div id=\&#38;quot;branding\&#38;quot;&#38;gt;\n&#38;quot;;
		}
	    add_action(&#38;#39;thematic_header&#38;#39;,&#38;#39;thematic_brandingopen&#38;#39;,1);
	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;look carefully, if childtheme_override_brandingopen exists then the action is NOT added to the thematic_header, hence you see nothing.&#60;/p&#62;
&#60;p&#62;i dont know that i agree w/ this behavior 100% but that's how it is.  you need to add childtheme_override_brandingopen to the desired hook.  try:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_brandingopen(){
echo &#38;quot;&#38;lt;div id=&#38;#39;branding&#38;#39;&#38;gt;&#38;lt;div id=&#38;#39;logo-container&#38;#39;&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;div id=&#38;#39;social-links&#38;#39;&#38;gt;      &#38;lt;/div&#38;gt;\n&#38;quot;;
}
add_action(&#38;#39;thematic_header&#38;#39;,&#38;#39;childtheme_override_brandingopen&#38;#39;,1);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>antesark on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-16872</link>
<pubDate>Wed, 10 Nov 2010 14:37:04 +0000</pubDate>
<dc:creator>antesark</dc:creator>
<guid isPermaLink="false">16872@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Try..&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
function childtheme_override_brandingopen() { ?&#38;gt;&#60;br /&#62;
&#38;lt;div id=&#34;branding&#34;&#38;gt;&#38;lt;div id=&#34;logo-container&#34;&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;div id=&#34;social-links&#34;&#38;gt;&#38;lt;/div&#38;gt;&#60;br /&#62;
&#38;lt;?php }&#60;/p&#62;
&#60;p&#62;function childtheme_override_brandingclose() { ?&#38;gt;&#60;br /&#62;
&#38;lt;/div&#38;gt;&#38;lt;!-- #branding --&#38;gt;&#60;br /&#62;
&#38;lt;?php }&#60;br /&#62;
&#60;/code&#62;&#60;br /&#62;
And remember not to use add_action.
&#60;/p&#62;</description>
</item>
<item>
<title>mirko77 on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-16871</link>
<pubDate>Wed, 10 Nov 2010 10:48:52 +0000</pubDate>
<dc:creator>mirko77</dc:creator>
<guid isPermaLink="false">16871@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;That is exactly what I did.&#60;br /&#62;
I created my child theme with its own function.php, but my override function does not work.&#60;/p&#62;
&#60;p&#62;I have other custom functions in my own function.php and they all work
&#60;/p&#62;</description>
</item>
<item>
<title>McSalty on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-16844</link>
<pubDate>Tue, 09 Nov 2010 16:16:04 +0000</pubDate>
<dc:creator>McSalty</dc:creator>
<guid isPermaLink="false">16844@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;The override functions are meant so you don't have to modify the original thematic source files.&#60;/p&#62;
&#60;p&#62;Create a new child theme (there are guides for how to do this online). In your child them folder, create &#34;functions.php&#34;. Within functions.php, paste your code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_brandingopen(){
   echo &#38;quot;&#38;lt;div id=\&#38;quot;branding\&#38;quot;&#38;gt;&#38;lt;div id=&#38;#39;logo-container&#38;#39;&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;div id=&#38;#39;social-links&#38;#39;&#38;gt;&#38;lt;/div&#38;gt;\n&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Now your child theme will automatically use this function instead of thematic's default.
&#60;/p&#62;</description>
</item>
<item>
<title>mirko77 on "Not clear how childtheme_override works"</title>
<link>http://themeshaper.com/forums/topic/not-clear-how-childtheme_override-works#post-16842</link>
<pubDate>Tue, 09 Nov 2010 14:51:42 +0000</pubDate>
<dc:creator>mirko77</dc:creator>
<guid isPermaLink="false">16842@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I want to add a couple of &#38;lt;div&#38;gt; containers in my  child theme header, inside #branding.&#60;/p&#62;
&#60;p&#62;If I modify the function thematic_brandingopen() directly in header-extension.php it works flawlessly:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function thematic_brandingopen() {
 echo &#38;quot;&#38;lt;div id=\&#38;quot;branding\&#38;quot;&#38;gt;&#38;lt;div id=&#38;#39;logo-container&#38;#39;&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;div id=&#38;#39;social-links&#38;#39;&#38;gt;&#38;lt;/div&#38;gt;\n&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but if I create a childtheme_override_brandingopen() my whole #branding div container disappears...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_brandingopen(){
echo &#38;quot;&#38;lt;div id=\&#38;quot;branding\&#38;quot;&#38;gt;&#38;lt;div id=&#38;#39;logo-container&#38;#39;&#38;gt;&#38;lt;/div&#38;gt;&#38;lt;div id=&#38;#39;social-links&#38;#39;&#38;gt;      &#38;lt;/div&#38;gt;\n&#38;quot;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I do not know why it does not work...
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "syntax question re: childtheme_override"</title>
<link>http://themeshaper.com/forums/topic/syntax-question-re-childtheme_override#post-15809</link>
<pubDate>Fri, 24 Sep 2010 18:28:37 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">15809@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Nice :)
&#60;/p&#62;</description>
</item>
<item>
<title>ridgely on "syntax question re: childtheme_override"</title>
<link>http://themeshaper.com/forums/topic/syntax-question-re-childtheme_override#post-15808</link>
<pubDate>Fri, 24 Sep 2010 17:39:13 +0000</pubDate>
<dc:creator>ridgely</dc:creator>
<guid isPermaLink="false">15808@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks Gene. I successfully overrode my very first postfooter, with my own subfunctions. :)&#60;br /&#62;
Will probably start a new tip thread for custom post postfooters.
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "syntax question re: childtheme_override"</title>
<link>http://themeshaper.com/forums/topic/syntax-question-re-childtheme_override#post-15798</link>
<pubDate>Fri, 24 Sep 2010 00:55:17 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">15798@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi ridgely,&#60;/p&#62;
&#60;p&#62;If the original function is return(ing) a variable, then the override needs to be return(ed) as well.&#60;/p&#62;
&#60;p&#62;When you're looking at the override functions this is a good determiner of whether you can echo or if you need end your override with a return.&#60;/p&#62;
&#60;p&#62;-Gene
&#60;/p&#62;</description>
</item>
<item>
<title>ridgely on "syntax question re: childtheme_override"</title>
<link>http://themeshaper.com/forums/topic/syntax-question-re-childtheme_override#post-15777</link>
<pubDate>Wed, 22 Sep 2010 20:49:50 +0000</pubDate>
<dc:creator>ridgely</dc:creator>
<guid isPermaLink="false">15777@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Using the latest stable dev with childtheme_override functions available - question about syntax.&#60;br /&#62;
Most of the time the childtheme_override looks like this:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;&#60;code&#62;if (function_exists('childtheme_override_something'))  {&#60;br /&#62;
    function thematic_something() {&#60;br /&#62;
        childtheme_override_something();&#60;br /&#62;
    }&#60;br /&#62;
} else {&#60;br /&#62;
    function thematic_something() {....;}}&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;...which simply requires the child theme to contain &#60;code&#62;function childtheme_override_something();&#60;/code&#62; somewhere in &#60;code&#62;functions.php&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;But a bunch of the postheader and postfooter subfunctions are like:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
&#60;code&#62;&#60;br /&#62;
if (function_exists('childtheme_override_something'))  {&#60;br /&#62;
    function thematic_something() {&#60;br /&#62;
        return childtheme_override_something();&#60;br /&#62;
    }&#60;br /&#62;
} else {&#60;br /&#62;
    function thematic_something() {....;}}&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Does this require any accommodating syntax change in the childtheme_override function?
&#60;/p&#62;</description>
</item>
<item>
<title>ridgely on "Conditional childtheme_override"</title>
<link>http://themeshaper.com/forums/topic/conditional-childtheme_override#post-15432</link>
<pubDate>Tue, 07 Sep 2010 17:24:45 +0000</pubDate>
<dc:creator>ridgely</dc:creator>
<guid isPermaLink="false">15432@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;This mysteriously caused my &#34;blog&#34; page to go blank. Wonder why?
&#60;/p&#62;</description>
</item>
<item>
<title>ridgely on "Conditional childtheme_override"</title>
<link>http://themeshaper.com/forums/topic/conditional-childtheme_override#post-15418</link>
<pubDate>Tue, 07 Sep 2010 03:02:06 +0000</pubDate>
<dc:creator>ridgely</dc:creator>
<guid isPermaLink="false">15418@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;&#60;strong&#62;TAKE 2&#60;/strong&#62;&#60;br /&#62;
This, however, worked:&#60;/p&#62;
&#60;blockquote&#62;&#60;pre&#62;&#60;code&#62;function my_conditional_category_loop() {
	if (is_category(&#38;#39;drawing&#38;#39;) &#124;&#124; is_category(&#38;#39;painting&#38;#39;)) {
	 	while ( have_posts()	)	:	the_post();

		thematic_abovepost(); ?&#38;gt;

		&#38;lt;div id=&#38;quot;post-&#38;lt;?php	the_ID() ?&#38;gt;&#38;quot; class=&#38;quot;&#38;lt;?php	thematic_post_class()	?&#38;gt;&#38;quot;&#38;gt;
				&#38;lt;?php	thematic_postheader(); ?&#38;gt;
				&#38;lt;?php	get_the_image( array(	&#38;#39;custom_key&#38;#39; =&#38;gt;	array( &#38;#39;Thumbnail&#38;#39;,	&#38;#39;thumbnail&#38;#39;	), &#38;#39;default_size&#38;#39;	=&#38;gt; &#38;#39;thumbnail&#38;#39; ) );	?&#38;gt;
				&#38;lt;div class=&#38;quot;entry-content&#38;quot;&#38;gt;
		&#38;lt;?php	thematic_content();	?&#38;gt;
				&#38;lt;/div&#38;gt;
				&#38;lt;?php	thematic_postfooter(); ?&#38;gt;
		&#38;lt;/div&#38;gt;&#38;lt;!-- .post --&#38;gt;
		&#38;lt;?php 

				thematic_belowpost();

		endwhile;
	} else {
		while (have_posts()) : the_post(); 

				thematic_abovepost(); ?&#38;gt;

				&#38;lt;div id=&#38;quot;post-&#38;lt;?php the_ID(); ?&#38;gt;&#38;quot; class=&#38;quot;&#38;lt;?php thematic_post_class(); ?&#38;gt;&#38;quot;&#38;gt;
	    			&#38;lt;?php thematic_postheader(); ?&#38;gt;
					&#38;lt;div class=&#38;quot;entry-content&#38;quot;&#38;gt;
				&#38;lt;?php thematic_content(); ?&#38;gt;
					&#38;lt;/div&#38;gt;&#38;lt;!-- .entry-content --&#38;gt;
					&#38;lt;?php thematic_postfooter(); ?&#38;gt;
				&#38;lt;/div&#38;gt;&#38;lt;!-- #post --&#38;gt;
			&#38;lt;?php 

				thematic_belowpost();

		endwhile;
	}
} // end category_loop

function childtheme_override_category_loop() {
		echo my_conditional_category_loop();
}&#60;/code&#62;&#60;/pre&#62;
&#60;/blockquote&#62;</description>
</item>
<item>
<title>ridgely on "Conditional childtheme_override"</title>
<link>http://themeshaper.com/forums/topic/conditional-childtheme_override#post-15417</link>
<pubDate>Tue, 07 Sep 2010 01:47:53 +0000</pubDate>
<dc:creator>ridgely</dc:creator>
<guid isPermaLink="false">15417@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;So I put this in my functions file:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function my_conditional_category_loop() {
	global $post;
	if (is_category(&#38;#39;drawing&#38;#39;) &#124;&#124; is_category(&#38;#39;painting&#38;#39;)) {
		function childtheme_override_category_loop() {
	 	while ( have_posts()) : the_post() // Start the loop:
		?&#38;gt;
		&#38;lt;div id=&#38;quot;post-&#38;lt;?php the_ID() ?&#38;gt;&#38;quot; class=&#38;quot;&#38;lt;?php thematic_post_class()?&#38;gt;&#38;quot;&#38;gt;
		&#38;lt;?php thematic_postheader(); ?&#38;gt;
		&#38;lt;?php get_the_image( array(&#38;#39;custom_key&#38;#39; =&#38;gt; array( &#38;#39;Thumbnail&#38;#39;,&#38;#39;thumbnail&#38;#39;	),&#38;#39;default_size&#38;#39; =&#38;gt; &#38;#39;thumbnail&#38;#39; ) ); ?&#38;gt;
		&#38;lt;div class=&#38;quot;entry-content&#38;quot;&#38;gt;
		&#38;lt;?php	thematic_content();?&#38;gt;
		&#38;lt;/div&#38;gt;
		&#38;lt;?php thematic_postfooter(); ?&#38;gt;
		&#38;lt;/div&#38;gt;&#38;lt;!-- .post --&#38;gt;
		&#38;lt;?php endwhile; // loop done, go back up
		}
	}
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;While the category pages that *aren't* drawing or painting came out ok, the &#60;code&#62;category-drawing&#60;/code&#62; and &#60;code&#62;category-painting&#60;/code&#62; pages came up with the &#60;code&#62;page-title&#60;/code&#62; and &#60;code&#62;archive-meta&#60;/code&#62;, period. These category posts are set with css to hide everything but the thumbnail, which should have been created per the function above. But no luck. What am I missing?
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Conditional childtheme_override"</title>
<link>http://themeshaper.com/forums/topic/conditional-childtheme_override#post-15416</link>
<pubDate>Tue, 07 Sep 2010 01:08:20 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">15416@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;The else is not necessary either.&#60;/p&#62;
&#60;p&#62;The override won't come into play if the condition is not met. So in that case we will fall back to the parent function regardless.&#60;/p&#62;
&#60;p&#62;Test it out :)
&#60;/p&#62;</description>
</item>
<item>
<title>ridgely on "Conditional childtheme_override"</title>
<link>http://themeshaper.com/forums/topic/conditional-childtheme_override#post-15414</link>
<pubDate>Tue, 07 Sep 2010 00:39:04 +0000</pubDate>
<dc:creator>ridgely</dc:creator>
<guid isPermaLink="false">15414@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;By out I was thinking more of&#60;br /&#62;
...`else {&#60;br /&#62;
 return thematic_categoryloop();&#60;br /&#62;
 }`&#60;/p&#62;
&#60;p&#62;If the &#60;code&#62;else&#60;/code&#62; statememt is necessary, then good to know. If the add_action is *not* necessary, then how/where does one insert &#60;code&#62;my_conditional_category_loop&#60;/code&#62;? Or does the &#60;code&#62;global $post;&#60;/code&#62; take care of that problem?&#60;/p&#62;
&#60;p&#62;You guys are great - so patient with the baby who learns by cut-and-paste. :)
&#60;/p&#62;</description>
</item>

</channel>
</rss>
