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 http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Fri, 22 May 2015 13:02:29 +0000 teamA on "child overide" http://forums.themeshaper.com/topic/child-overide#post-17868 Tue, 21 Dec 2010 05:41:55 +0000 teamA 17868@http://forums.themeshaper.com/ <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" http://forums.themeshaper.com/topic/child-overide#post-17813 Fri, 17 Dec 2010 08:25:57 +0000 Jonny Janiero 17813@http://forums.themeshaper.com/ <p>worked a charm miss viking!<br /> thanks </p> helgatheviking on "child overide" http://forums.themeshaper.com/topic/child-overide#post-17492 Sat, 04 Dec 2010 12:59:54 +0000 helgatheviking 17492@http://forums.themeshaper.com/ <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" http://forums.themeshaper.com/topic/child-overide#post-17485 Sat, 04 Dec 2010 07:44:09 +0000 helgatheviking 17485@http://forums.themeshaper.com/ <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" http://forums.themeshaper.com/topic/child-overide#post-17284 Thu, 25 Nov 2010 10:39:05 +0000 Jonny Janiero 17284@http://forums.themeshaper.com/ <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" http://forums.themeshaper.com/topic/child-overide#post-17244 Wed, 24 Nov 2010 02:31:33 +0000 Jonny Janiero 17244@http://forums.themeshaper.com/ <p>@Vasudeva Adiga<br /> i'll give that a whirl. </p> Vasudeva Adiga on "child overide" http://forums.themeshaper.com/topic/child-overide#post-17142 Sat, 20 Nov 2010 06:01:22 +0000 Vasudeva Adiga 17142@http://forums.themeshaper.com/ <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" http://forums.themeshaper.com/topic/child-overide#post-17133 Fri, 19 Nov 2010 22:06:02 +0000 Chris 17133@http://forums.themeshaper.com/ <p>Ok .. will take a look at this one :)</p> <p>Chris </p> helgatheviking on "child overide" http://forums.themeshaper.com/topic/child-overide#post-17132 Fri, 19 Nov 2010 20:34:47 +0000 helgatheviking 17132@http://forums.themeshaper.com/ <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" http://forums.themeshaper.com/topic/child-overide#post-17120 Fri, 19 Nov 2010 08:06:52 +0000 Vasudeva Adiga 17120@http://forums.themeshaper.com/ <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" http://forums.themeshaper.com/topic/child-overide#post-17111 Thu, 18 Nov 2010 20:13:11 +0000 Jonny Janiero 17111@http://forums.themeshaper.com/ <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" http://forums.themeshaper.com/topic/child-overide#post-17106 Thu, 18 Nov 2010 18:45:27 +0000 helgatheviking 17106@http://forums.themeshaper.com/ <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" http://forums.themeshaper.com/topic/child-overide#post-17100 Thu, 18 Nov 2010 09:01:58 +0000 Jonny Janiero 17100@http://forums.themeshaper.com/ <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>