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: Something new 'bout widgetized areas http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Sat, 23 May 2015 01:11:21 +0000 candregg on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/3#post-26883 Tue, 08 May 2012 20:22:54 +0000 candregg 26883@http://forums.themeshaper.com/ <p>Thanks Helga. I will move this to a new thread, since I remain confused about how the several widget areas will generate in the admin area. Will try some things and see how they go and then continue the discussion later if the problems persist. </p> helgatheviking on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/3#post-26880 Tue, 08 May 2012 20:12:10 +0000 helgatheviking 26880@http://forums.themeshaper.com/ <p>please make a new thread for this sort of thing. it'll be easier for other people to find in the future should they be doing the same thing. but nothing is really different except for the condition:</p> <p>create a sidebar with id = "bacon-category" per the instructions/samples in this thread and adjust the callback function's conditionals to check for category<br /> <pre><code>if (is_active_sidebar(&#39;bacon-category&#39;) &#38;&#38; is_category(&#39;bacon&#39;)) {</code></pre> candregg on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/3#post-26879 Tue, 08 May 2012 19:43:17 +0000 candregg 26879@http://forums.themeshaper.com/ <p>Greetings. I have a client who wants the Primary widget area to be able to display completely different content based on different categories (and children). Hence the admin area is going to have to include at least six DIFFERENT new widget areas to handle the content, and also six different conditionals to handle the sidebar display.</p> <p>I've been trying to figure out the conditional syntax from this thread's previous posts, but I get stopped at the problem of different specific categories.</p> <p>I know this is vague, but I'm a little stumped. Any help or direction would be appreciated. </p> seedling on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/3#post-22179 Wed, 06 Jul 2011 18:49:57 +0000 seedling 22179@http://forums.themeshaper.com/ <p>Thank you so much for the easy copy and paste to add a widget to the header. I'm VERY new to php but I tried to manipulate the code so that I can put a widget on to the right side of the LEADER as well.</p> <p>I'm using the FEATURE SITE child theme and looking for a widget to place onto the leader of all the pages (and posts) except the home page.</p> <p>I've read countless posts about creating widgets but I can't seem to get it to work. Could someone explain (or point me to an explanation) of what code needs to change to create a new widget in a new section of the site.</p> <p>This is the site I'm working on - <a href="http://alexiavernon.dreamhosters.com/?page_id=6" rel="nofollow">http://alexiavernon.dreamhosters.com/?page_id=6</a> </p> boxcar on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/3#post-22063 Tue, 28 Jun 2011 21:18:53 +0000 boxcar 22063@http://forums.themeshaper.com/ <p>Thanks Helga. That worked! I used the second, compact version. The whole thing that now works follows:</p> <p>// This is to Display Secondary Sidebar only on pages<br /> // and Display Primary Sidebar only on blog pages</p> <p>// Display Secondary Sidebar only on pages</p> <p>function childtheme_secondary_aside() {<br /> if (is_page()) {<br /> if (is_sidebar_active('secondary-aside')) {<br /> echo thematic_before_widget_area('secondary-aside');<br /> dynamic_sidebar('secondary-aside');<br /> echo thematic_after_widget_area('secondary-aside');<br /> }<br /> }<br /> }</p> <p>function change_secondary_aside($content) {<br /> $content['Secondary Aside']['function'] = 'childtheme_secondary_aside';<br /> return $content;<br /> }<br /> add_filter('thematic_widgetized_areas','change_secondary_aside');</p> <p>// Display Primary Sidebar only on blog pages</p> <p>function childtheme_primary_aside() {<br /> if ( is_sidebar_active('primary-aside') &#38;&#38; (is_archive() || is_single() || is_home()) ) {<br /> echo thematic_before_widget_area('primary-aside');<br /> dynamic_sidebar('primary-aside');<br /> echo thematic_after_widget_area('primary-aside');</p> <p>}<br /> }</p> <p>function change_primary_aside($content) {<br /> $content['Primary Aside']['function'] = 'childtheme_primary_aside';<br /> return $content;<br /> }<br /> add_filter('thematic_widgetized_areas','change_primary_aside');</p> <p>// END</p> <p>Thank you so much! </p> <p>On to the next mountain. </p> helgatheviking on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/3#post-21985 Wed, 22 Jun 2011 04:09:29 +0000 helgatheviking 21985@http://forums.themeshaper.com/ <p>@boxcar - try changing</p> <pre><code>if (is_archive() || is_single()) {</code></pre> <p>to </p> <pre><code>if (is_archive() || is_single() || is_home()) {</code></pre> <p>is_home() is the conditional tag for the blog index</p> <p>btw- i'm fairly certain you don't need nested if statements. i think this should work too (i may have borked the num of parens.... no guarantees)</p> <pre><code>if ( is_sidebar_active(&#39;primary-aside&#39;) &#38;&#38; (is_archive() || is_single() || is_home()) ) {</code></pre> boxcar on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/3#post-21983 Wed, 22 Jun 2011 00:53:06 +0000 boxcar 21983@http://forums.themeshaper.com/ <p>I, too, am trying to have Primary sidebar appear only on blog pages and the Secondary sidebar appear only on pages. I tried @dk's code (above) with corrections suggested by @st3vi3. The secondary sidebar is now appearing on pages only but the primary sidebar is not showing on blog. Here is what I am using:</p> <p>// Display Secondary Sidebar only on pages</p> <p>function childtheme_secondary_aside() {<br /> if (is_page()) {<br /> if (is_sidebar_active('secondary-aside')) {<br /> echo thematic_before_widget_area('secondary-aside');<br /> dynamic_sidebar('secondary-aside');<br /> echo thematic_after_widget_area('secondary-aside');<br /> }<br /> }<br /> }</p> <p>function change_secondary_aside($content) {<br /> $content['Secondary Aside']['function'] = 'childtheme_secondary_aside';<br /> return $content;<br /> }<br /> add_filter('thematic_widgetized_areas','change_secondary_aside');</p> <p>// Display Primary Sidebar only on blog pages</p> <p>function childtheme_primary_aside() {<br /> if (is_archive() || is_single()) {<br /> if (is_sidebar_active('primary-aside')) {<br /> echo thematic_before_widget_area('primary-aside');<br /> dynamic_sidebar('primary-aside');<br /> echo thematic_after_widget_area('primary-aside');<br /> }<br /> }<br /> }</p> <p>function change_primary_aside($content) {<br /> $content['Primary Aside']['function'] = 'childtheme_primary_aside';<br /> return $content;<br /> }<br /> add_filter('thematic_widgetized_areas','change_primary_aside');</p> <p>//END</p> <p>Can anyone help?<br /> Thanks! </p> yitwail on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/3#post-21880 Thu, 16 Jun 2011 02:08:44 +0000 yitwail 21880@http://forums.themeshaper.com/ <p>Chris,</p> <p>In your example for conditional widget display</p> <blockquote><p> function childtheme_secondary_aside() {<br /> if (is_page()) {<br /> if (is_sidebar_active('secondary-aside')) {<br /> echo thematic_before_widget_area('secondary-aside');<br /> dynamic_sidebar('secondary-aside');<br /> echo thematic_after_widget_area('secondary-aside');<br /> }<br /> }<br /> } </p></blockquote> <p>can the 2 echos &#38; dynamic sidebar be replaced with this one line?</p> <blockquote><p>thematic_secondary_aside();</p></blockquote> ocube on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/3#post-21861 Tue, 14 Jun 2011 22:26:19 +0000 ocube 21861@http://forums.themeshaper.com/ <p>I am currently working on a site which needs a widget in the header, thanks for this post, saved me sleepless nights... </p> helgatheviking on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/3#post-19843 Fri, 18 Mar 2011 21:01:24 +0000 helgatheviking 19843@http://forums.themeshaper.com/ <p>@mary - maren's code looks mostly right. maybe the conditionals are off. i'd use her code and amend the bottom functions to</p> <pre><code>function child_1st_subsidiary_aside { if (is_active_sidebar(&#39;primary-aside&#39;) &#38;&#38; is_home()) { echo thematic_before_widget_area(&#39;primary-aside&#39;); dynamic_sidebar(&#39;primary-aside&#39;); echo thematic_after_widget_area(&#39;primary-aside&#39;); } } function child_2nd_subsidiary_aside { if (is_active_sidebar(&#39;secondary-aside&#39;) &#38;&#38; !is_home()) { echo thematic_before_widget_area(&#39;secondary-aside&#39;); dynamic_sidebar(&#39;secondary-aside&#39;); echo thematic_after_widget_area(&#39;secondary-aside&#39;); } }</code></pre> <p>check the codex for info on WP conditionals<br /> <a href="http://codex.wordpress.org/Conditional_Tags" rel="nofollow">http://codex.wordpress.org/Conditional_Tags</a> </p> maryfrancesczarsty on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-19841 Fri, 18 Mar 2011 19:24:51 +0000 maryfrancesczarsty 19841@http://forums.themeshaper.com/ <p>Maren, did you ever figure this out? I am trying to do the same thing (and I'm really new to PHP). I want the primary sidebar for the home page and the secondary on all the rest - I think I might just be calling the wrong things for the pages names? This thread was really helpful, I'm just not quite there :) </p> rhysbwaller on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-19346 Thu, 24 Feb 2011 06:14:02 +0000 rhysbwaller 19346@http://forums.themeshaper.com/ <p>I am trying to place my blog description into the very top of the Primary aside area. Im guessing there is a way I can filter widget_area_primary_aside() to do this, but would just like some advise. I'm essentially trying to reproduce a 'text' widget with this info hard coded.</p> <p>Thanks</p> <p>Rhys </p> st3vi3 on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-18787 Sat, 29 Jan 2011 01:07:43 +0000 st3vi3 18787@http://forums.themeshaper.com/ <p>hi dk</p> <p>with your code... there are two places you could amend...</p> <p>1. your declaration to call the blog:</p> <p>if (is_page() || is_home())</p> <p>is specific to your blog being the hompage i used</p> <p>if (is_archive() || is_single())</p> <p>instead... and it worked.</p> <p>2.<br /> in the following, the functions do not match the function is "change_secondary_aside" but you close as "childtheme_primary_aside"</p> <p>function change_secondary_aside($content) {<br /> $content['Primary Aside']['function'] = 'childtheme_primary_aside';<br /> return $content;<br /> }<br /> add_filter('thematic_widgetized_areas','change_primary_aside'); </p> maren.m on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-18476 Tue, 18 Jan 2011 23:35:39 +0000 maren.m 18476@http://forums.themeshaper.com/ <p>Thanks so much for your help--I was the one who posted that other thread! I thought it got deleted somehow so I reposted. </p> <p>I still cannot get it to work! Several of the pages appear with no sidebar, one of the pages doesn't appear at all (the white screen), and it renders my dashboard unavailable.<br /> Agh. I don't know what's wrong. Maybe it is minor mark-up related? Things in the wrong order? Again, I am a php beginner.<br /> If anyone could give me some advice that would be GREATLY appreciated.</p> <p>Here's my code:</p> <p>function change_widgetized_area($content) {</p> <p> $content['Primary Aside']['args']['function']='child_1st_subsidiary_aside';<br /> $content['Secondary Aside']['args']['function']='child_2nd_subsidiary_aside';</p> <p> return $content;<br /> }<br /> add_filter('thematic_widgetized_areas', 'change_widgetized_area');</p> <p>function child_1st_subsidiary_aside {<br /> if (is_active_sidebar('primary-aside') &#38;&#38; is_home()) {<br /> echo thematic_before_widget_area('primary-aside');<br /> dynamic_sidebar('primary-aside');<br /> echo thematic_after_widget_area('primary-aside');<br /> }<br /> }</p> <p>function child_2nd_subsidiary_aside {<br /> if (is_active_sidebar('secondary-aside') &#38;&#38; is_page()) {<br /> echo thematic_before_widget_area('secondary-aside');<br /> dynamic_sidebar('secondary-aside');<br /> echo thematic_after_widget_area('secondary-aside');<br /> }<br /> } </p> helgatheviking on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-18341 Thu, 13 Jan 2011 16:24:48 +0000 helgatheviking 18341@http://forums.themeshaper.com/ <p>@maren- someone else just asked this the other day. i answered here. i didn't test it but it ought to put you on the right path. </p> <p><a href="http://forums.themeshaper.com/topic/alternating-sidebars-depending-on-homepages" rel="nofollow">http://forums.themeshaper.com/topic/alternating-sidebars-depending-on-homepages</a> </p> maren.m on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-18340 Thu, 13 Jan 2011 16:13:32 +0000 maren.m 18340@http://forums.themeshaper.com/ <p>Hi everybody on this wonderful forum- </p> <p>Did anyone ever address DK's problem above, from about 7 months ago? </p> <p>I am having the same problem with displaying sidebars conditionally (Primary on blog, Secondary on pages). </p> <p>My code is almost identical but I'm not sure what's wrong with it.</p> <p>Thanks! </p> rekopacz on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-18305 Wed, 12 Jan 2011 23:36:37 +0000 rekopacz 18305@http://forums.themeshaper.com/ <p>Hi Chris, first I am glad I stumbled on this, the short tutorial on creating the header aside, it was just what I was looking for! Have a related question. I am trying to create a theme for a client that will use Widget Context and Improved Include Page plugins, together with custom widget areas, to create a more WYSIWYG-friendly environment for the widget areas. First, If I want to create a widget region, but not insert it anywhere, I can just take out the 'action hook' instruction from that filter for the header aside, and then just call it anywhere I want to in the template with the get_sidebar function, correct? Also, I would like some widget regions to use divs instead of unordered lists. I assume I would need to create custom functions that correspond to thematic_before_widget, etc. and call them into the function that creates the new widget area. Is that correct?</p> <p>Thanks again for building that header aside function, it was like a breath of fresh air. </p> mithers on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-12725 Tue, 01 Jun 2010 12:52:52 +0000 mithers 12725@http://forums.themeshaper.com/ <p>I was browsing around the forum and got to this thread , its feels great when People are sharing information with eachother so that others can learn. Keep this going ever. </p> alexL on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-12690 Sun, 30 May 2010 11:50:23 +0000 alexL 12690@http://forums.themeshaper.com/ <p>Hi guys,</p> <p>Great forum and Wordpress theme! I'm a novice coder and working my way through the discussions on this forum to customise my thematic site.</p> <p>I've seen the code Chris posted on adding a widgetized area to the header. But I'd actually like to add a couple more beneath the Secondary aside in the sidebar. </p> <p>Is anyone able to post up the code for this?</p> <p>Many Thanks</p> <p>Alexei </p> dk on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-12684 Sun, 30 May 2010 02:40:24 +0000 dk 12684@http://forums.themeshaper.com/ <p>Hey everyone,</p> <p>Great theme and a great forum. I've learned a ton by just hanging out here.</p> <p>I'm trying to make the Primary sidebar appear only on blog pages and the Secondary sidebar appear only on pages.</p> <p>I am using the code that Chris posted above, but having some trouble after I tried to conditionally alter the Primary area. I keep getting the white screen of death and can't figure out where I'm going wrong.</p> <p>Any help would be greatly appreciated.</p> <p>Here's what I have:</p> <p><code><br /> // Display Secondary Sidebar only on pages</p> <p>function childtheme_secondary_aside() {<br /> if (is_page()) {<br /> if (is_sidebar_active('secondary-aside')) {<br /> echo thematic_before_widget_area('secondary-aside');<br /> dynamic_sidebar('secondary-aside');<br /> echo thematic_after_widget_area('secondary-aside');<br /> }<br /> }<br /> }</p> <p>function change_secondary_aside($content) {<br /> $content['Secondary Aside']['function'] = 'childtheme_secondary_aside';<br /> return $content;<br /> }<br /> add_filter('thematic_widgetized_areas','change_secondary_aside');</p> <p>// Display Primary Sidebar only on blog pages</p> <p>function childtheme_primary_aside() {<br /> if (is_page() || is_home()) {<br /> if (is_sidebar_active('primary-aside')) {<br /> echo thematic_before_widget_area('primary-aside');<br /> dynamic_sidebar('primary-aside');<br /> echo thematic_after_widget_area('primary-aside');<br /> }<br /> }<br /> }</p> <p>function change_secondary_aside($content) {<br /> $content['Primary Aside']['function'] = 'childtheme_primary_aside';<br /> return $content;<br /> }<br /> add_filter('thematic_widgetized_areas','change_primary_aside');<br /> </code> </p> bluejpro on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-12281 Tue, 11 May 2010 04:46:29 +0000 bluejpro 12281@http://forums.themeshaper.com/ <p>Oh, I found how to do it.</p> <p>The post is right here on themeshaper forums --</p> <p><a href="http://forums.themeshaper.com/topic/widgets-in-the-header" rel="nofollow">http://forums.themeshaper.com/topic/widgets-in-the-header</a></p> <p>Thanks everyone. Great resources here. </p> bluejpro on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-12280 Tue, 11 May 2010 03:43:26 +0000 bluejpro 12280@http://forums.themeshaper.com/ <p>Oh, I would love to have a header aside!</p> <p>I have added the code to the bottom functions.php and header.php in my child theme but I don't see a new header-aside widget in the widgets admin area. Isn't that the intended result?</p> <p>I'm going to try to put the code here (I'm no coder, so I'll just paste the whole thing if I may...):</p> <p>Here is my whole functions.php -- the header-aside widget is after the logo-image function added too.</p> <pre><code>&lt;?php // comments left out ?&gt; &lt;?php // ---------- Adding the logo image to the header STARTS HERE if(get_option(&#39;child_theme_logo_enabled&#39;)){ function remove_thematic_blogtitle() { remove_action(&#39;thematic_header&#39;,&#39;thematic_blogtitle&#39;,3); } add_action(&#39;init&#39;,&#39;remove_thematic_blogtitle&#39;); function remove_thematic_blogdescription() { remove_action(&#39;thematic_header&#39;,&#39;thematic_blogdescription&#39;,5); } add_action(&#39;init&#39;,&#39;remove_thematic_blogdescription&#39;); function thematic_logo_image() { echo &#39;&lt;div id=&quot;logo-image&quot;&gt;&lt;a href=&quot;&#39;.get_option(&#39;home&#39;).&#39;&quot;&gt;&lt;img src=&quot;&#39;.get_option(&#39;child_theme_image&#39;).&#39;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&#39;; } add_action(&#39;thematic_header&#39;,&#39;thematic_logo_image&#39;,4); } // ---------- Adding the logo image to the header ENDS HERE // ----------------- Custom header aside starts here function add_header_aside($content) { $content[&#39;Header Aside&#39;] = array( &#39;args&#39; =&gt; array ( &#39;name&#39; =&gt; &#39;Header Aside&#39;, &#39;id&#39; =&gt; &#39;header-aside&#39;, &#39;before_widget&#39; =&gt; thematic_before_widget(), &#39;after_widget&#39; =&gt; thematic_after_widget(), &#39;before_title&#39; =&gt; thematic_before_title(), &#39;after_title&#39; =&gt; thematic_after_title(), ), &#39;action_hook&#39; =&gt; &#39;thematic_header&#39;, &#39;function&#39; =&gt; &#39;thematic_header_aside&#39;, &#39;priority&#39; =&gt; 8, ); return $content; } add_filter(&#39;thematic_widgetized_areas&#39;, &#39;add_header_aside&#39;); // And this is our new function that displays the widgetized area function thematic_header_aside() { if (is_sidebar_active(&#39;header-aside&#39;)) { echo thematic_before_widget_area(&#39;header-aside&#39;); dynamic_sidebar(&#39;header-aside&#39;); echo thematic_after_widget_area(&#39;header-aside&#39;); } } ?&gt;</code></pre> <p>Okay, now here is a snippet from header.php code:</p> <pre><code>&lt;?php thematic_aboveheader(); ?&gt; &lt;div id=&quot;header&quot;&gt; &lt;?php thematic_header() ?&gt; &lt;/div&gt;&lt;!-- #header--&gt; &lt;?php // First we remove the thematic_brandingopen() .. we&#39;re going to make one addition for this one. // And we remove thematic_access() .. will be added later unchanged with a priority of 10. function remove_branding() { remove_action(&#39;thematic_header&#39;,&#39;thematic_brandingopen&#39;,1); remove_action(&#39;thematic_header&#39;,&#39;thematic_access&#39;,9); } add_action(&#39;init&#39;, &#39;remove_branding&#39;); // We wrap #branding and #header-aside with #header-box function childtheme_brandingopen() { ?&gt; &lt;div id=&quot;header_box&quot;&gt; &lt;div id=&quot;branding&quot;&gt; &lt;?php } add_action(&#39;thematic_header&#39;,&#39;childtheme_brandingopen&#39;,1); // Now we need to close #header-box function header_box_close() { ?&gt; &lt;/div&gt; &lt;?php } add_action(&#39;thematic_header&#39;, &#39;header_box_close&#39;, 9); // And we add the unchanged thematic_access() with the new priority 10 add_action(&#39;thematic_header&#39;,&#39;thematic_access&#39;, 10); ?&gt; &lt;?php thematic_belowheader(); ?&gt; &lt;div id=&quot;main&quot;&gt;</code></pre> <p>I hope somebody can tell me what to do to get this mouthwatering header widget working.... </p> Devin on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-12240 Sat, 08 May 2010 23:35:26 +0000 Devin 12240@http://forums.themeshaper.com/ <p>I was hoping it was something simple like that. Thanks for the heads up Gene.</p> <p>Additionally, because my page template had the following in it:</p> <p><code>&lt;?php $paged = (get_query_var(&#39;paged&#39;)) ? get_query_var(&#39;paged&#39;) : 1; query_posts(&quot;paged=$paged&quot;); ?&gt;</code></p> <p>I don't think it was properly recognizing what it needed to do in the sidebar.</p> <p>I added wp_reset_query(); to my page template after the query loop was done, and that fixed the other problem. </p> em hr on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-12239 Sat, 08 May 2010 22:05:05 +0000 em hr 12239@http://forums.themeshaper.com/ <p>Hi Devin,</p> <p>The problem with the code you've posted is with the logical order of the conditional cascade.<br /> <code>elseif (is_page_template(&#39;template-helpcenter.php&#39;)</code> will never been true because the preceding<br /> <code>if (is_page())</code> ends the conditional statement. </p> <p>Move the <code>is_page</code> closer to the end... behind the other template specific and page specific conditions and this will work as you intended.</p> <p>-Gene </p> Devin on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-12234 Sat, 08 May 2010 19:29:45 +0000 Devin 12234@http://forums.themeshaper.com/ <p>@sareiodata +1 This should be added to the guide. This thread is bookmarked for me as well.</p> <p>Also, wondering if I could get some support with the conditional loading of widget areas. The following code seems to work for everything except for the is_page_template('template.php') &#38;&#38; is_page('page-name') calls.</p> <p>Anyone have a suggestion?</p> <pre><code>// Change Secondary Output to Display Widget Areas Conditionally function childtheme_secondary_aside() { if (is_sidebar_active(&#39;secondary-aside&#39;) &#38;&#38; is_sidebar_active(&#39;blog-sidebar&#39;)) { echo thematic_before_widget_area(&#39;secondary-aside&#39;); if (is_page()) { dynamic_sidebar(&#39;secondary-aside&#39;); } elseif (is_page_template(&#39;template-helpcenter.php&#39;) || is_page(&#39;help-center&#39;) || is_category(&#39;help-center&#39;) || in_category(&#39;help-center&#39;)) { dynamic_sidebar(&#39;helpcenter-sidebar&#39;); } elseif (is_page_template(&#39;template-blog.php&#39;)) { dynamic_sidebar(&#39;blog-sidebar&#39;); } else { dynamic_sidebar(&#39;blog-sidebar&#39;); } echo thematic_after_widget_area(&#39;secondary-aside&#39;); } }</code></pre> sareiodata on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-11942 Tue, 27 Apr 2010 20:05:10 +0000 sareiodata 11942@http://forums.themeshaper.com/ <p>Chris / Ian - I want to make this a sticky topic. Can I? </p> <p>I know I technically can ... but should I? I find my self coming back to this page again and again and every time it takes me ages to find it (Will try and find the time to add this into the Guide ... I think there is an article about this also???) </p> markd on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-10490 Fri, 05 Mar 2010 21:15:17 +0000 markd 10490@http://forums.themeshaper.com/ <p>Good, I got the sorting to work on 0.9.6.1. </p> kemilie on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-10287 Sat, 27 Feb 2010 21:28:03 +0000 kemilie 10287@http://forums.themeshaper.com/ <p>Hmmm... asking for help gave me the magical insight to suddenly fix it. Thank you! :-) </p> em hr on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-10253 Sat, 27 Feb 2010 05:18:15 +0000 em hr 10253@http://forums.themeshaper.com/ <p>kemilie-</p> <p>Given that this post has grown long enough for me to get a bit confused. Go ahead and post the code you added to your functions.php for the header aside bit and maybe that'll shed a little light on the matter.</p> <p>-Gene </p> kemilie on "Something new 'bout widgetized areas" http://forums.themeshaper.com/topic/something-new-bout-widgetized-areas/page/2#post-10238 Sat, 27 Feb 2010 00:09:05 +0000 kemilie 10238@http://forums.themeshaper.com/ <p>Gene - good suggestion. I upgraded to the newest but am still just not seeing anything in the widgets area? </p>