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 Tag: widget area http://forums.themeshaper.com/ Help In Shaping WordPress Themes en Mon, 25 May 2015 19:32:00 +0000 helgatheviking on "Add new widget area" http://forums.themeshaper.com/topic/add-new-widget-area#post-27522 Fri, 03 Aug 2012 23:20:00 +0000 helgatheviking 27522@http://forums.themeshaper.com/ <p>thematic has moved: <a href="http://thematictheme.com/" rel="nofollow">http://thematictheme.com/</a> </p> fosstux on "Add new widget area" http://forums.themeshaper.com/topic/add-new-widget-area#post-27510 Wed, 18 Jul 2012 12:17:21 +0000 fosstux 27510@http://forums.themeshaper.com/ <p>Hi!</p> <p>I'm really new to thematic, so bear with me:</p> <p>I'd like to add an extra widget area inside the mail div and before the container div. I'd like to add header images there.</p> <p>But how can I do this?</p> <p>Thanks.</p> <p>Christopher </p> fwunder on "Widget Area Placement....again" http://forums.themeshaper.com/topic/widget-area-placementagain#post-24639 Wed, 04 Jan 2012 21:44:03 +0000 fwunder 24639@http://forums.themeshaper.com/ <p>Talking to myself (I do that a lot)..</p> <p>OK, so I simply "did it the wordpress way" and rather than use the add_left_sidebar function above, I simple changed to:<br /> <code><br /> 'before_widget' =&gt; '&lt;div id="left_sidebar"&gt;' ,<br /> 'after_widget' =&gt; '&lt;/div&gt;' ,<br /> </code></p> <p>then used dynamic_sidebar('left-sidebar'); in my custom style hook function.</p> <p>Book it, Danno. </p> fwunder on "Widget Area Placement....again" http://forums.themeshaper.com/topic/widget-area-placementagain#post-24636 Wed, 04 Jan 2012 20:45:27 +0000 fwunder 24636@http://forums.themeshaper.com/ <p>OK, so I create a working widget area thusly:</p> <p><code><br /> //register sidebar widget<br /> function left_sidebar( ) {<br /> register_sidebar (array (<br /> 'name' =&gt; 'Left Sidebar',<br /> 'id' =&gt; 'left-sidebar',<br /> 'description' =&gt; __( 'A widget area in left sidebar', 'thematic'),<br /> 'before_widget' =&gt; thematic_before_widget( ) ,<br /> 'after_widget' =&gt; thematic_after_widget( ) ,<br /> 'before_title' =&gt; thematic_before_title( ) ,<br /> 'after_title' =&gt; thematic_after_title( ) )<br /> ) ;<br /> }<br /> add_action('init', 'left_sidebar') ;</p> <p>//add Left Sidebar area<br /> function add_left_sidebar( ) {<br /> if (is_sidebar_active('left-sidebar')) {<br /> echo thematic_before_widget_area('left-sidebar');<br /> dynamic_sidebar('left-sidebar');<br /> echo thematic_after_widget_area('left-sidebar');<br /> }<br /> }<br /> add_action('thematic_abovecontent', 'add_left_sidebar');<br /> </code><code></p> <p>That's fine and dandy and works like a charm, however, instead of Thematic placing it in a pre-determined widget area, I want to place it in a custom action hook - something like get_sidebar('add_left-sidebar'); </p> <p>Placing dynamic_sidebar('left-sidebar'); in the hook sorta works, but I don't think that's right.</p> <p>Thanks again and sorry to be such a pest.</code> </p> helgatheviking on "Wrap #primary in a new Div" http://forums.themeshaper.com/topic/wrap-primary-in-a-new-div#post-24313 Thu, 15 Dec 2011 02:25:00 +0000 helgatheviking 24313@http://forums.themeshaper.com/ <p>it's bloated b/c you don't need 2 functions to hook into thematic_abovemainasides. if you need 2 divs, just put them both in one function. </p> Gigi on "Wrap #primary in a new Div" http://forums.themeshaper.com/topic/wrap-primary-in-a-new-div#post-24312 Thu, 15 Dec 2011 02:22:01 +0000 Gigi 24312@http://forums.themeshaper.com/ <p>Well I found a way but I'm not sure if it's bloated or not. This is what I have:</p> <pre><code>// ADD DIV ABOVE AND BELOW PRIMARY ASIDE STARTS HERE // Begin div ABOVE primary aside function start_aside_top() { ?&gt; &lt;!-- aside wrap starts here --&gt; &lt;div id=&quot;aside-wrap-top&quot;&gt; &lt;?php } // end of our new function start_aside_top // Add starting div to above primary aside add_action(&#39;thematic_abovemainasides&#39;,&#39;start_aside_top&#39;); // Begin closing div to above primary aside function end_aside_top() { ?&gt; &lt;/div&gt; &lt;!-- aside wrap ends here --&gt; &lt;?php } // end of our new function end_aside_top add_action(&#39;thematic_abovemainasides&#39;,&#39;end_aside_top&#39;); // Begin div BELOW primary aside function start_aside_bottom() { ?&gt; &lt;!-- aside wrap starts here --&gt; &lt;div id=&quot;aside-wrap-bottom&quot;&gt; &lt;?php } // end of our new function start_aside_bottom // Add starting div add_action(&#39;thematic_betweenmainasides&#39;,&#39;start_aside_bottom&#39;); // Begin closing div function end_aside_bottom() { ?&gt; &lt;/div&gt; &lt;!-- aside wrap ends here --&gt; &lt;?php } // end of our new function end_aside_bottom // Add closing div add_action(&#39;thematic_betweenmainasides&#39;,&#39;end_aside_bottom&#39;); // ADD DIV ABOVE AND BELOW PRIMARY ASIDE ENDS HERE</code></pre> Gigi on "Wrap #primary in a new Div" http://forums.themeshaper.com/topic/wrap-primary-in-a-new-div#post-24310 Thu, 15 Dec 2011 00:16:28 +0000 Gigi 24310@http://forums.themeshaper.com/ <p>Is there any way to see the code for Helga's suggestion: "open the div on the thematic_abovemainasides hook and close the div on the thematic_betweenmainasides hook." I tried a couple of ways but came up empty handed... </p> amish1 on "Adding to thematic_after_widget_area content" http://forums.themeshaper.com/topic/adding-to-below_widget-_area-content#post-23924 Thu, 24 Nov 2011 03:44:32 +0000 amish1 23924@http://forums.themeshaper.com/ <p>As far as I can tell, yes. </p> helgatheviking on "Adding to thematic_after_widget_area content" http://forums.themeshaper.com/topic/adding-to-below_widget-_area-content#post-23923 Thu, 24 Nov 2011 02:17:05 +0000 helgatheviking 23923@http://forums.themeshaper.com/ <p>good point. you might not need to filter anything. does the overflow:hidden trick work on all browsers? </p> amish1 on "Adding to thematic_after_widget_area content" http://forums.themeshaper.com/topic/adding-to-below_widget-_area-content#post-23922 Thu, 24 Nov 2011 01:46:08 +0000 amish1 23922@http://forums.themeshaper.com/ <p>While researching the micro clear fix hack I found a comment on <a href="http://css-tricks.com/snippets/css/clear-fix/">css-tricks.com</a> that I also found useful. With the above method of filtering the widget area the div cleared the list items. With the use of overflow:hidden in the css for the ul of the widget this will fix it also. </p> amish1 on "Adding to thematic_after_widget_area content" http://forums.themeshaper.com/topic/adding-to-below_widget-_area-content#post-23921 Thu, 24 Nov 2011 00:51:06 +0000 amish1 23921@http://forums.themeshaper.com/ <p>That works splendidly! Thank you so much! =) </p> amish1 on "Adding to thematic_after_widget_area content" http://forums.themeshaper.com/topic/adding-to-below_widget-_area-content#post-23917 Wed, 23 Nov 2011 18:29:49 +0000 amish1 23917@http://forums.themeshaper.com/ <p>I am at work now,(procrastinating just like you!) So I will give this a go when I get home tonight and mark this resolved or pick your brain a little harder. Thanks a million for your time! </p> helgatheviking on "Adding to thematic_after_widget_area content" http://forums.themeshaper.com/topic/adding-to-below_widget-_area-content#post-23916 Wed, 23 Nov 2011 18:12:47 +0000 helgatheviking 23916@http://forums.themeshaper.com/ <p>you just happened to catch me when i am intentionally trying to procrastinate. ;)</p> <p>so i am going to guess that you are floating the widgets inside the widget area and need to clear those floats in which case i'd probably go w/ a clearfix versus adding markup since i find adding markup is inelegant. ;) </p> <p>in this thread you will see how to filter the class name of a widget area<br /> <a href="http://forums.themeshaper.com/topic/how-to-rename-widget-area-classes#post-11326" rel="nofollow">http://forums.themeshaper.com/topic/how-to-rename-widget-area-classes#post-11326</a></p> <p>so:</p> <pre><code>add_filter(&#39;thematic_before_widget_area&#39;, &#39;kia_pagetop_class&#39;); function kia_pagetop_class($content) { $kia_class = str_replace(&#39;page-top&quot; class=&quot;aside&#39;, &#39;page-top&quot; class=&quot;aside cf&#39;, $content); return $kia_class; }</code></pre> <p>and then in your stylesheet</p> <pre><code>/* <a href="http://nicolasgallagher.com/micro-clearfix-hack/" rel="nofollow">http://nicolasgallagher.com/micro-clearfix-hack/</a> */ /* For modern browsers */ .cf:before, .cf:after { content:&quot;&quot;; display:table; } .cf:after { clear:both; } /* For IE 6/7 (trigger hasLayout) */ .cf { zoom:1; }</code></pre> <p>i've also used the perishable press method w/ great success:<br /> <a href="http://perishablepress.com/press/2009/12/06/new-clearfix-hack/" rel="nofollow">http://perishablepress.com/press/2009/12/06/new-clearfix-hack/</a></p> <p>if that doesn't do what you want then i'll try to actually add the extra div </p> amish1 on "Adding to thematic_after_widget_area content" http://forums.themeshaper.com/topic/adding-to-below_widget-_area-content#post-23915 Wed, 23 Nov 2011 17:45:59 +0000 amish1 23915@http://forums.themeshaper.com/ <p>From what I could tell this is what I need to be looking for for closing the widget areas (widgets-extensions.php):<br /> <pre><code>function thematic_after_widget_area($hook) { $content = &quot;\n&quot; . &quot;\t&quot; . &#39;&lt;/ul&gt;&#39; .&quot;\n&quot;; if ($hook == &#39;primary-aside&#39;) { $content .= &#39;&lt;/div&gt;&lt;!-- #primary .aside --&gt;&#39; .&quot;\n&quot;; } elseif ($hook == &#39;secondary-aside&#39;) { $content .= &#39;&lt;/div&gt;&lt;!-- #secondary .aside --&gt;&#39; .&quot;\n&quot;; } elseif ($hook == &#39;1st-subsidiary-aside&#39;) { $content .= &#39;&lt;/div&gt;&lt;!-- #first .aside --&gt;&#39; .&quot;\n&quot;; } elseif ($hook == &#39;2nd-subsidiary-aside&#39;) { $content .= &#39;&lt;/div&gt;&lt;!-- #second .aside --&gt;&#39; .&quot;\n&quot;; } elseif ($hook == &#39;3rd-subsidiary-aside&#39;) { $content .= &#39;&lt;/div&gt;&lt;!-- #third .aside --&gt;&#39; .&quot;\n&quot;; } else { $content .= &#39;&lt;/div&gt;&lt;!-- #&#39; . $hook . &#39; .aside --&gt;&#39; .&quot;\n&quot;; } return apply_filters(&#39;thematic_after_widget_area&#39;, $content); }</code></pre> <p>I would like to add <code>&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;</code> right before the <code>&lt;/ul&gt;</code>, and like I said I would like to be able to only apply this to the page-top widget area. </p> amish1 on "Adding to thematic_after_widget_area content" http://forums.themeshaper.com/topic/adding-to-below_widget-_area-content#post-23914 Wed, 23 Nov 2011 17:31:50 +0000 amish1 23914@http://forums.themeshaper.com/ <p>Thank you for the quick response! After all the reading that I have done I figured if helgatheviking responded I would be on my way to figuring this out. I have read your primer and found it very helpful, just not connecting the dots of how to use it for any given condition.</p> <p>What I am doing is moving the page-top widget to above_container and to create a full width widget area to float 3 (or 4 etc.) list items in. I have been able to do all of that except add a clear inside the unordered list. I was hoping this would be an easier fix than creating a new widget area, but a few hours later and I am starting to second guess that.</p> <p>Should I not be trying to additional markup to things, even if my child theme? I have added a class of container to the wrapper with the thought of implementing the 960 system as that is what the HTML mock up that I am basing my child theme on. </p> helgatheviking on "Adding to thematic_after_widget_area content" http://forums.themeshaper.com/topic/adding-to-below_widget-_area-content#post-23912 Wed, 23 Nov 2011 17:20:28 +0000 helgatheviking 23912@http://forums.themeshaper.com/ <p>can i ask why? strikes me that there is probably another way to do whatever it is you are trying to do that doesn't involve adding additional markup</p> <p>also since thematic_after_widget_area "returns" something.... that's usually a tip off that you need to filter something. </p> <p>read up on filters w/ my "primer"<br /> <a href="http://forums.themeshaper.com/topic/need-help-understanding-actions-vs-filters-and-changing-post-meta-and-utility#post-22638" rel="nofollow">http://forums.themeshaper.com/topic/need-help-understanding-actions-vs-filters-and-changing-post-meta-and-utility#post-22638</a> </p> amish1 on "Adding to thematic_after_widget_area content" http://forums.themeshaper.com/topic/adding-to-below_widget-_area-content#post-23910 Wed, 23 Nov 2011 16:32:44 +0000 amish1 23910@http://forums.themeshaper.com/ <p>I have searched this forum high and low, and though I have learned TONS there are still a few things that I am not getting. I think if someone can answer my question it should tie together everything that I have done so far. I have been able to move things to other hooks, and I have also modified my #wrapper div to also contain a custom class. What I am trying to do now is add '&lt;div class="clear"&gt;&lt;/div&gt;' before closing the UL in the widget areas (thematic_after_widget_area). I have found the function but I am having trouble making it out what I need because the function uses return instead of echo (which differs from the tuts that I have found on here.) Also is there any way to add this to the after_widget_area of only one widget area (page-top). I apologize if my question has been answered or this is remedial, but I am seeing the benefits of thematic and I am hoping, like I said, that this ties it all together. Thanks in advance for any assistance. </p> optimus203 on "Wrap #primary in a new Div" http://forums.themeshaper.com/topic/wrap-primary-in-a-new-div#post-21556 Mon, 30 May 2011 19:07:42 +0000 optimus203 21556@http://forums.themeshaper.com/ <p>Perfect. Loving the ease of this framework. Thank you kindly. Take care... </p> helgatheviking on "Wrap #primary in a new Div" http://forums.themeshaper.com/topic/wrap-primary-in-a-new-div#post-21555 Mon, 30 May 2011 18:12:01 +0000 helgatheviking 21555@http://forums.themeshaper.com/ <p>open the div on the thematic_abovemainasides hook and close the div on the thematic_betweenmainasides hook. </p> optimus203 on "Wrap #primary in a new Div" http://forums.themeshaper.com/topic/wrap-primary-in-a-new-div#post-21554 Mon, 30 May 2011 17:58:00 +0000 optimus203 21554@http://forums.themeshaper.com/ <p>Hey everyone. I'm new to Thematic and PHP, and hoping to get some help on this small issue. I'm trying to wrap the #primary widget div in a new div. Can anyone provide the proper function to help make this happen? Any help would be greatly appreciated. </p> him on "Best method to add content above MAIN" http://forums.themeshaper.com/topic/best-method-to-add-content-above-main#post-15235 Tue, 31 Aug 2010 08:40:00 +0000 him 15235@http://forums.themeshaper.com/ <p>Got it done, thanks to 'Seijun' via his post -</p> <p><a href="http://forums.themeshaper.com/topic/widgets-in-below_header#post-9882" rel="nofollow">http://forums.themeshaper.com/topic/widgets-in-below_header#post-9882</a></p> <p>and TS Custom widgets plugin did the rest! </p> him on "Best method to add content above MAIN" http://forums.themeshaper.com/topic/best-method-to-add-content-above-main#post-15234 Tue, 31 Aug 2010 08:36:13 +0000 him 15234@http://forums.themeshaper.com/ <p>Got it done, thanks to 'Seijun' via his post -</p> <p><a href="http://forums.themeshaper.com/topic/widgets-in-below_header#post-9882" rel="nofollow">http://forums.themeshaper.com/topic/widgets-in-below_header#post-9882</a></p> <p>and TS Custom widgets plugin did the rest! </p> him on "Best method to add content above MAIN" http://forums.themeshaper.com/topic/best-method-to-add-content-above-main#post-15233 Tue, 31 Aug 2010 07:50:27 +0000 him 15233@http://forums.themeshaper.com/ <p>@tarpontech - custom page templates isn't working.</p> <p>Below header is one way that might work, but i don't know how to write a function for it. </p> tarpontech on "Best method to add content above MAIN" http://forums.themeshaper.com/topic/best-method-to-add-content-above-main#post-15213 Mon, 30 Aug 2010 16:06:15 +0000 tarpontech 15213@http://forums.themeshaper.com/ <p>option 2 via conditional tags seems to be the better choice imo. Its either that or custom page templates. </p> him on "Best method to add content above MAIN" http://forums.themeshaper.com/topic/best-method-to-add-content-above-main#post-15210 Mon, 30 Aug 2010 12:16:31 +0000 him 15210@http://forums.themeshaper.com/ <p>Hi,</p> <p>On a new project, Im using a custom template for a static home page. And I have 8 section pages using another custom template. And the rest of the pages are styled normally. </p> <p>I want to add a full-width content box above MAIN, or the first thing in MAIN. I know it can be done in several ways:</p> <p>- calling below_header<br /> - Page top</p> <p>But I want to use different content in all the 8 section pages, on this location. And it has to be shown above the YOAST breadcrumbs that im using. And yoast uses the below_header action.</p> <p>So is the best way to do it via </p> <p>- controlling it in the css?<br /> - calling below header and then controlling which content is called on each of 8 pages?<br /> - or is there another way? </p> Jonny Janiero on "Removing asides" http://forums.themeshaper.com/topic/removing-asides#post-15156 Fri, 27 Aug 2010 18:13:30 +0000 Jonny Janiero 15156@http://forums.themeshaper.com/ <p>silent ones i hope </p> rscamero92 on "Removing asides" http://forums.themeshaper.com/topic/removing-asides#post-15154 Fri, 27 Aug 2010 18:11:37 +0000 rscamero92 15154@http://forums.themeshaper.com/ <p>Yeah I seem to be having allot of brain farts lately lol ;) </p> Jonny Janiero on "Removing asides" http://forums.themeshaper.com/topic/removing-asides#post-15153 Fri, 27 Aug 2010 18:08:28 +0000 Jonny Janiero 15153@http://forums.themeshaper.com/ <p>brain fart lols </p> Jonny Janiero on "Removing asides" http://forums.themeshaper.com/topic/removing-asides#post-15152 Fri, 27 Aug 2010 18:08:17 +0000 Jonny Janiero 15152@http://forums.themeshaper.com/ <p>glad you found a solution. if you get time, mark this post as resolved </p> rscamero92 on "Removing asides" http://forums.themeshaper.com/topic/removing-asides#post-15145 Fri, 27 Aug 2010 16:12:51 +0000 rscamero92 15145@http://forums.themeshaper.com/ <p>Nevermind I found the code I needed. </p>