Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Warning: Cannot modify header information - headers already sent by (output started at /home/themes/public_html/forums/bb-includes/db-mysql.php:12) in /home/themes/public_html/forums/my-templates/kakumei-variant/rss2.php on line 1
ThemeShaper Forums Topic: child overide Help In Shaping WordPress Themes en Mon, 25 May 2015 07:24:33 +0000 teamA on "child overide" Tue, 21 Dec 2010 05:41:55 +0000 teamA 17868@ <p>I would recommend that the solution from Helga and this topic in general become an article in the documentation. I spent quite a while making incorrect code before coming across this simple, lean solution. It's something I knew must exist - but laying it out in a nice tutorial / example would really help folks who are just getting up to speed (like me).</p> <p>Who do we suggest that to? </p> Jonny Janiero on "child overide" Fri, 17 Dec 2010 08:25:57 +0000 Jonny Janiero 17813@ <p>worked a charm miss viking!<br /> thanks </p> helgatheviking on "child overide" Sat, 04 Dec 2010 12:59:54 +0000 helgatheviking 17492@ <p>this seems to work for me:</p> <pre><code>function default_loop(){ //loopy stuff } function childtheme_override_archive_loop(){ default_loop(); } function childtheme_override_author_loop(){ default_loop(); } function childtheme_override_category_loop(){ default_loop(); } function childtheme_override_index_loop(){ default_loop(); } function childtheme_override_search_loop(){ default_loop(); } function childtheme_override_tag_loop(){ default_loop(); }</code></pre> helgatheviking on "child overide" Sat, 04 Dec 2010 07:44:09 +0000 helgatheviking 17485@ <p>i suppose you could do</p> <pre><code>childtheme_override_archive_loop(){ default_loop(); }</code></pre> <p>if you don't want to add and remove actions. i am going to try this tomorrow (errrr later today when i wake up) as i just modded my index loop. </p> Jonny Janiero on "child overide" Thu, 25 Nov 2010 10:39:05 +0000 Jonny Janiero 17284@ <p>@vasudeva<br /> although, in theory that should have worked for me (but does go back to removing/adding functions, when overides seemed like forward progress). it didn't in this particular case. maybe if i was using it in a standard set-up. for some reason, it messed with my archive() tags() statements.<br /> i'm pulling archive and tag display via an options panel conditional. i was getting a lot of duplicate posts. tried resets to no avail.<br /> its a little difficult to explain.<br /> reverted back to my overides and all was good. i'll keep the bloat knowing all is working correctly.<br /> thanks for you help.</p> <p>@chris, had any luck? </p> Jonny Janiero on "child overide" Wed, 24 Nov 2010 02:31:33 +0000 Jonny Janiero 17244@ <p>@Vasudeva Adiga<br /> i'll give that a whirl. </p> Vasudeva Adiga on "child overide" Sat, 20 Nov 2010 06:01:22 +0000 Vasudeva Adiga 17142@ <p>You will have to remove the default actions hooks before replacing them with new ones:</p> <p>remove_action('thematic_categoryloop', 'thematic_category_loop');<br /> remove_action('thematic_tagloop', 'thematic_tag_loop');<br /> remove_action('thematic_archiveloop', 'thematic_archive_loop');<br /> remove_action('thematic_indexloop', 'thematic_index_loop'); </p> Chris on "child overide" Fri, 19 Nov 2010 22:06:02 +0000 Chris 17133@ <p>Ok .. will take a look at this one :)</p> <p>Chris </p> helgatheviking on "child overide" Fri, 19 Nov 2010 20:34:47 +0000 helgatheviking 17132@ <p>neat idea. i think you'd also have to remove the current loops from those hooks OR define each override as xyz_loop, but i think it could work </p> Vasudeva Adiga on "child overide" Fri, 19 Nov 2010 08:06:52 +0000 Vasudeva Adiga 17120@ <p>I guess you could do this if you want all of them to use the same loop:</p> <p>add_action('thematic_categoryloop', 'xyz_loop');<br /> add_action('thematic_tagloop', 'xyz_loop');<br /> add_action('thematic_archiveloop', 'xyz_loop');<br /> add_action('thematic_indexloop', 'xyz_loop'); </p> Jonny Janiero on "child overide" Thu, 18 Nov 2010 20:13:11 +0000 Jonny Janiero 17111@ <p>glad you understand the situation.<br /> it is a code bloat. in basic themes, you could style the main loop and if category, tag loops dont exist, the index loops run through.<br /> is there a way to bypass loops? </p> helgatheviking on "child overide" Thu, 18 Nov 2010 18:45:27 +0000 helgatheviking 17106@ <p>have wondered this myself. it is sort of a pain (and code bloat) to have to override ALL the loops if you'd like them to all be the same. </p> Jonny Janiero on "child overide" Thu, 18 Nov 2010 09:01:58 +0000 Jonny Janiero 17100@ <p>i use the child overides a lot.</p> <p>lets say i use overide category_loop to change the layout of my category loop.</p> <p>have i got to overide index, archive, tag, search individually or can i change the lot by combining the overides?</p> <p>hope this makes any sense </p>