<?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: aside</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Sat, 04 Feb 2012 03:58:52 +0000</pubDate>

<item>
<title>bigdanprice on "Adding non-widget content to sidebars (asides)"</title>
<link>http://themeshaper.com/forums/topic/adding-non-widget-content-to-sidebars-asides#post-25161</link>
<pubDate>Fri, 03 Feb 2012 12:33:25 +0000</pubDate>
<dc:creator>bigdanprice</dc:creator>
<guid isPermaLink="false">25161@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Great stuff, its the beauty of hooks and thematic!
&#60;/p&#62;</description>
</item>
<item>
<title>bluejpro on "Adding non-widget content to sidebars (asides)"</title>
<link>http://themeshaper.com/forums/topic/adding-non-widget-content-to-sidebars-asides#post-25151</link>
<pubDate>Thu, 02 Feb 2012 20:09:40 +0000</pubDate>
<dc:creator>bluejpro</dc:creator>
<guid isPermaLink="false">25151@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Wow, Chris&#60;/p&#62;
&#60;p&#62;Thanks for giving this back!  You have provided a really cool possible solution to my own situation.  I have a bit of code via functions.php that shows above the content.  It  now needs to go into the sidebar, but there's no widget for this thing.&#60;/p&#62;
&#60;p&#62;This is a very appealing solution, Thematic-friendly, and an interesting story too!&#60;/p&#62;
&#60;p&#62;I will have to see if you keep a blog somewhere.&#60;/p&#62;
&#60;p&#62;Thank you for the technique -- now to try it...
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Sidebar widgets not changing on static home or blog pages"</title>
<link>http://themeshaper.com/forums/topic/sidebar-widgets-not-changing-on-static-home-or-blog-pages#post-23800</link>
<pubDate>Mon, 14 Nov 2011 03:41:55 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">23800@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;are you having the same problem as the OP w/ widgets not updating?&#60;/p&#62;
&#60;p&#62;first, make sure that you are using the latest stable version of thematic:&#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;second, make sure you disable any form of caching (either plugins or something like cloudflare)
&#60;/p&#62;</description>
</item>
<item>
<title>Dominor Novus on "Sidebar widgets not changing on static home or blog pages"</title>
<link>http://themeshaper.com/forums/topic/sidebar-widgets-not-changing-on-static-home-or-blog-pages#post-23798</link>
<pubDate>Mon, 14 Nov 2011 02:09:18 +0000</pubDate>
<dc:creator>Dominor Novus</dc:creator>
<guid isPermaLink="false">23798@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I've tried this but no luck. I also tried creating a post (this worked before).&#60;/p&#62;
&#60;p&#62;This problem is replete if you search for it.&#60;/p&#62;
&#60;p&#62;I've yet to find an answer.&#60;/p&#62;
&#60;p&#62;I can't begin to describe the delay this has already caused me.
&#60;/p&#62;</description>
</item>
<item>
<title>ScottNix on "Cannot reorder my widgets after adding a new one"</title>
<link>http://themeshaper.com/forums/topic/cannot-reorder-my-widgets-after-adding-a-new-one#post-23480</link>
<pubDate>Fri, 14 Oct 2011 20:39:15 +0000</pubDate>
<dc:creator>ScottNix</dc:creator>
<guid isPermaLink="false">23480@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Just tested in the older 9.7.7 version in the WP Theme repository and it works too. If worse comes to worst, send me your child theme files scott [at] scottnix.com. No clue at this point why you would get different results.&#60;/p&#62;
&#60;p&#62;On the plus side I finally set up one of my test locations to have both versions of Thematic for easy testing. :)
&#60;/p&#62;</description>
</item>
<item>
<title>ScottNix on "Cannot reorder my widgets after adding a new one"</title>
<link>http://themeshaper.com/forums/topic/cannot-reorder-my-widgets-after-adding-a-new-one#post-23479</link>
<pubDate>Fri, 14 Oct 2011 20:09:50 +0000</pubDate>
<dc:creator>ScottNix</dc:creator>
<guid isPermaLink="false">23479@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Whoops, the error was only caused because I started working on adding a &#34;Favicon using Gravatar&#34; and turned off the code. I just put it back up and the admin order is in the correct spot. Maybe Kathy will come along and know what the issue is.&#60;/p&#62;
&#60;p&#62;What version of Thematic are you using, and have you tried turning off plugins, or commenting out all other functions as a start?
&#60;/p&#62;</description>
</item>
<item>
<title>retrobou on "Cannot reorder my widgets after adding a new one"</title>
<link>http://themeshaper.com/forums/topic/cannot-reorder-my-widgets-after-adding-a-new-one#post-23478</link>
<pubDate>Fri, 14 Oct 2011 19:25:20 +0000</pubDate>
<dc:creator>retrobou</dc:creator>
<guid isPermaLink="false">23478@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Scott.  While seeing what you came up with, I nosed around your actual site.  Great stuff, bookmarking.  Thank you!&#60;br /&#62;
Arlene
&#60;/p&#62;</description>
</item>
<item>
<title>retrobou on "Cannot reorder my widgets after adding a new one"</title>
<link>http://themeshaper.com/forums/topic/cannot-reorder-my-widgets-after-adding-a-new-one#post-23477</link>
<pubDate>Fri, 14 Oct 2011 19:22:27 +0000</pubDate>
<dc:creator>retrobou</dc:creator>
<guid isPermaLink="false">23477@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Yes, that works in admin, but if you look at your dev link, the error is on the page.&#60;br /&#62;
Right now, I do have the sidebar in my child theme.  It the only way I can get it to show on the actual page without altering the thematic files.  But if it shows on the page, it doesn't sort in admin.  If I use the sidebar.php in my childtheme, it shows on the page correctly, but in admin isn't sorted correctly.  I'm dizzy :0
&#60;/p&#62;</description>
</item>
<item>
<title>ScottNix on "Cannot reorder my widgets after adding a new one"</title>
<link>http://themeshaper.com/forums/topic/cannot-reorder-my-widgets-after-adding-a-new-one#post-23475</link>
<pubDate>Fri, 14 Oct 2011 16:07:30 +0000</pubDate>
<dc:creator>ScottNix</dc:creator>
<guid isPermaLink="false">23475@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hmm... using your sidebar and&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// register third sidebar aside
function my_widgets_init($content) {
	$content[&#38;#39;Third Aside&#38;#39;] = array(
	&#38;#39;admin_menu_order&#38;#39; =&#38;gt; 201,
		&#38;#39;args&#38;#39; =&#38;gt; array (
		&#38;#39;name&#38;#39; =&#38;gt; &#38;#39;Narrow Right Column 135px&#38;#39;,
		&#38;#39;id&#38;#39; =&#38;gt; &#38;#39;widget_area_third_aside&#38;#39;,
		&#38;#39;before_widget&#38;#39; =&#38;gt; &#38;#39;&#38;lt;li id=&#38;quot;%1$s&#38;quot; class=&#38;quot;widgetcontainer %2$s&#38;quot;&#38;gt;&#38;#39;,
		&#38;#39;after_widget&#38;#39; =&#38;gt; &#38;quot;\n&#38;quot;,
		&#38;#39;before_title&#38;#39; =&#38;gt; &#38;quot;&#38;lt;h3 class=\&#38;quot;widgettitle\&#38;quot;&#38;gt;&#38;quot;,
		&#38;#39;after_title&#38;#39; =&#38;gt; &#38;quot;&#38;lt;/h3&#38;gt;\n&#38;quot;,
		),
	&#38;#39;action_hook&#38;#39;	=&#38;gt; &#38;#39;widget_area_third_aside&#38;#39;,
	&#38;#39;function&#38;#39;		=&#38;gt; &#38;#39;thematic_third_aside&#38;#39;,
	&#38;#39;priority&#38;#39;		=&#38;gt; 10,
	);

	return $content;
}
add_filter(&#38;#39;thematic_widgetized_areas&#38;#39;, &#38;#39;my_widgets_init&#38;#39;);

// adding the widget area to your child theme
function widget_area_third_aside() {
	if ( function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#38;#38;&#38;#38; is_sidebar_active(&#38;#39;widget_area_third_aside&#38;#39;) ) {
		echo &#38;#39;&#38;lt;div id=&#38;quot;third&#38;quot; class=&#38;quot;aside main-aside&#38;quot;&#38;gt;&#38;#39;. &#38;quot;\n&#38;quot; . &#38;#39;&#38;lt;ul class=&#38;quot;xoxo&#38;quot;&#38;gt;&#38;#39; . &#38;quot;\n&#38;quot;;
		dynamic_sidebar(&#38;#39;widget_area_third_aside&#38;#39;);
		echo &#38;#39;&#38;#39; . &#38;quot;\n&#38;quot; . &#38;#39;&#38;#39;. &#38;quot;\n&#38;quot;;
		echo &#38;#39;&#38;#39; . &#38;quot;\n&#38;quot; . &#38;#39;&#38;lt;/div&#38;gt;&#38;lt;!-- #belowmainasides .aside --&#38;gt;&#38;#39;. &#38;quot;\n&#38;quot;;
	}
}
add_action(&#38;#39;thematic_widget_area_third_aside&#38;#39;, &#38;#39;my_sidebar_widgets&#38;#39;, 0);

// rename widgets in admin
function rename_widgetized_area($content) {
	$content[&#38;#39;Primary Aside&#38;#39;][&#38;#39;args&#38;#39;][&#38;#39;name&#38;#39;] = &#38;#39;Wide Sidebar 300px&#38;#39;;
	$content[&#38;#39;Secondary Aside&#38;#39;][&#38;#39;args&#38;#39;][&#38;#39;name&#38;#39;] = &#38;#39;Narrow Left Column 135px&#38;#39;;

	return $content;
}
add_filter(&#38;#39;thematic_widgetized_areas&#38;#39;, &#38;#39;rename_widgetized_area&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Works fine for me, scottnix.com/dev&#60;/p&#62;
&#60;p&#62;Not sure what the deal could be, it sounds like your sidebar.php is in your child theme, I am also using the latest development release of Thematic, but am pretty sure I have used this on the older 9.7.7 version.
&#60;/p&#62;</description>
</item>
<item>
<title>retrobou on "Cannot reorder my widgets after adding a new one"</title>
<link>http://themeshaper.com/forums/topic/cannot-reorder-my-widgets-after-adding-a-new-one#post-23470</link>
<pubDate>Fri, 14 Oct 2011 05:37:14 +0000</pubDate>
<dc:creator>retrobou</dc:creator>
<guid isPermaLink="false">23470@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks for the quick reply....&#60;/p&#62;
&#60;p&#62;That gives me this error...&#60;br /&#62;
Fatal error: Call to undefined function widget_area_third_aside() in /home/italians/public_html/wp-content/themes/italiansoulfood/sidebar.php on line 16&#60;/p&#62;
&#60;p&#62;Here is my sidebar.php&#60;/p&#62;
&#60;p&#62;    // action hook for placing content above the main asides&#60;br /&#62;
    thematic_abovemainasides();&#60;/p&#62;
&#60;p&#62;    // action hook creating the primary aside&#60;br /&#62;
    widget_area_primary_aside();	&#60;/p&#62;
&#60;p&#62;    // action hook for placing content between primary and secondary aside&#60;br /&#62;
    thematic_betweenmainasides();&#60;/p&#62;
&#60;p&#62;    // action hook creating the secondary aside&#60;br /&#62;
    widget_area_secondary_aside();	&#60;/p&#62;
&#60;p&#62;	// action hook for creating the third aside&#60;br /&#62;
	widget_area_third_aside();	&#60;/p&#62;
&#60;p&#62;    // action hook for placing content below the main asides&#60;br /&#62;
    thematic_belowmainasides(); &#60;/p&#62;
&#60;p&#62;....So, I took out the widget area third aside I had put in prior.  Now it moved the menu in the admin, but doesn't show on the page.  :(
&#60;/p&#62;</description>
</item>
<item>
<title>ScottNix on "Cannot reorder my widgets after adding a new one"</title>
<link>http://themeshaper.com/forums/topic/cannot-reorder-my-widgets-after-adding-a-new-one#post-23469</link>
<pubDate>Fri, 14 Oct 2011 05:12:56 +0000</pubDate>
<dc:creator>ScottNix</dc:creator>
<guid isPermaLink="false">23469@http://themeshaper.com/forums/</guid>
<description>&#60;pre&#62;&#60;code&#62;function my_widgets_init($content) {
        $content[&#38;#39;Third Aside&#38;#39;] = array(
			&#38;#39;admin_menu_order&#38;#39; =&#38;gt; 201,
			&#38;#39;args&#38;#39; =&#38;gt; array (
			&#38;#39;name&#38;#39; =&#38;gt; &#38;#39;Narrow Right Column 135px&#38;#39;,
			&#38;#39;id&#38;#39; =&#38;gt; &#38;#39;widget_area_third_aside&#38;#39;,
			&#38;#39;before_widget&#38;#39; =&#38;gt; &#38;#39;&#38;lt;li id=&#38;quot;%1$s&#38;quot; class=&#38;quot;widgetcontainer %2$s&#38;quot;&#38;gt;&#38;#39;,
			&#38;#39;after_widget&#38;#39; =&#38;gt; &#38;quot;\n&#38;quot;,
			&#38;#39;before_title&#38;#39; =&#38;gt; &#38;quot;&#38;lt;h3 class=\&#38;quot;widgettitle\&#38;quot;&#38;gt;&#38;quot;,
			&#38;#39;after_title&#38;#39; =&#38;gt; &#38;quot;&#38;lt;/h3&#38;gt;\n&#38;quot;,
				),
			&#38;#39;action_hook&#38;#39;	=&#38;gt; &#38;#39;widget_area_third_aside&#38;#39;,
			&#38;#39;function&#38;#39;		=&#38;gt; &#38;#39;thematic_third_aside&#38;#39;,
			&#38;#39;priority&#38;#39;		=&#38;gt; 10,
			);

              return $content;
}
add_filter(&#38;#39;thematic_widgetized_areas&#38;#39;, &#38;#39;my_widgets_init&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;a href=&#34;http://themeshaper.com/forums/topic/make-new-widget-area-appear-at-top-of-admin-page-list&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/make-new-widget-area-appear-at-top-of-admin-page-list&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Like 90% of other examples around the forums are the one you had. ;P
&#60;/p&#62;</description>
</item>
<item>
<title>retrobou on "Cannot reorder my widgets after adding a new one"</title>
<link>http://themeshaper.com/forums/topic/cannot-reorder-my-widgets-after-adding-a-new-one#post-23462</link>
<pubDate>Fri, 14 Oct 2011 00:22:26 +0000</pubDate>
<dc:creator>retrobou</dc:creator>
<guid isPermaLink="false">23462@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I've created a third sidebar widget.  I am sure I did it incorrectly, however, it is working as it should....except I cannot seem to reorder it in the admin.  Its important to reorder as my client has a habit of messing up layouts badly, so I created these so she will put the correct content in the right place, &#38;#38; I need it to be as easy as possible :).&#60;br /&#62;
Here is my functions.php&#60;br /&#62;
	// This will create your widget area&#60;br /&#62;
function my_widgets_init() {&#60;br /&#62;
    register_sidebar(array(&#60;br /&#62;
		'admin_menu_order' =&#38;gt; 201,&#60;br /&#62;
       	'name' =&#38;gt; 'Narrow Right Column 135px',&#60;br /&#62;
       	'id' =&#38;gt; 'widget_area_third_aside',&#60;br /&#62;
       	'before_widget' =&#38;gt; '&#38;lt;li id=&#34;%1$s&#34; class=&#34;widgetcontainer %2$s&#34;&#38;gt;',&#60;br /&#62;
       	'after_widget' =&#38;gt; &#34;\n&#34;,&#60;br /&#62;
		'before_title' =&#38;gt; &#34;&#38;lt;h3 class=\&#34;widgettitle\&#34;&#38;gt;&#34;,&#60;br /&#62;
		'after_title' =&#38;gt; &#34;&#38;lt;/h3&#38;gt;\n&#34;,&#60;br /&#62;
    ));&#60;/p&#62;
&#60;p&#62;}&#60;br /&#62;
add_action( 'init', 'my_widgets_init');&#60;/p&#62;
&#60;p&#62;// adding the widget area to your child theme&#60;br /&#62;
function widget_area_third_aside() {&#60;br /&#62;
if ( function_exists('dynamic_sidebar') &#38;#38;&#38;#38; is_sidebar_active('widget_area_third_aside') ) {&#60;br /&#62;
    echo '&#38;lt;div id=&#34;third&#34; class=&#34;aside main-aside&#34;&#38;gt;'. &#34;\n&#34; . '&#38;lt;ul class=&#34;xoxo&#34;&#38;gt;' . &#34;\n&#34;;&#60;br /&#62;
    dynamic_sidebar('widget_area_third_aside');&#60;br /&#62;
    echo '' . &#34;\n&#34; . ''. &#34;\n&#34;;&#60;br /&#62;
    echo '' . &#34;\n&#34; . '&#38;lt;/div&#38;gt;&#38;lt;!-- #belowmainasides .aside --&#38;gt;'. &#34;\n&#34;;&#60;br /&#62;
}&#60;br /&#62;
}&#60;br /&#62;
add_action('thematic_widget_area_third_aside', 'my_sidebar_widgets', 0);&#60;/p&#62;
&#60;p&#62; function rename_widgetized_area($content) {&#60;br /&#62;
	$content['Primary Aside']['args']['name'] = 'Wide Sidebar 300px';&#60;br /&#62;
	$content['Secondary Aside']['args']['name'] = 'Narrow Left Column 135px';&#60;br /&#62;
	return $content;&#60;br /&#62;
}&#60;br /&#62;
add_filter('thematic_widgetized_areas', 'rename_widgetized_area');&#60;/p&#62;
&#60;p&#62;Here is my sidebar.php in my childtheme.&#60;/p&#62;
&#60;p&#62; // action hook for placing content above the main asides&#60;br /&#62;
    thematic_abovemainasides();&#60;/p&#62;
&#60;p&#62;    // action hook creating the primary aside&#60;br /&#62;
    widget_area_primary_aside();	&#60;/p&#62;
&#60;p&#62;    // action hook for placing content between primary and secondary aside&#60;br /&#62;
    thematic_betweenmainasides();&#60;/p&#62;
&#60;p&#62;    // action hook creating the secondary aside&#60;br /&#62;
    widget_area_secondary_aside();	&#60;/p&#62;
&#60;p&#62;	 // action hook creating the secondary aside&#60;br /&#62;
    widget_area_third_aside();	&#60;/p&#62;
&#60;p&#62;	    // action hook for placing content below the main asides&#60;br /&#62;
    thematic_belowmainasides();&#60;/p&#62;
&#60;p&#62;And here is a link to the temp url I have applied this to.&#60;br /&#62;
&#60;a href=&#34;http://174.121.151.252/~italians/&#34; rel=&#34;nofollow&#34;&#62;http://174.121.151.252/~italians/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;All is well on the actual site.  In the admin, the new widget shows below the Page Bottom widget.  I need it directly below the secondary.&#60;/p&#62;
&#60;p&#62;I've copied and pasted so many different things that I am sure I have screwed something up, but like I said, widgets work great, just can't reorder them in the admin.&#60;br /&#62;
Tried to redo it filtering using this thread...&#60;br /&#62;
&#60;a href=&#34;http://themeshaper.com/forums/topic/something-new-bout-widgetized-areas&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/something-new-bout-widgetized-areas&#60;/a&#62;&#60;br /&#62;
but then its giving me errors, I think the sidebar.php is conflicting that I used....I have a headache and really could use someone elses eyes please?
&#60;/p&#62;</description>
</item>
<item>
<title>joshwd on "Sidebar widgets not changing on static home or blog pages"</title>
<link>http://themeshaper.com/forums/topic/sidebar-widgets-not-changing-on-static-home-or-blog-pages#post-21415</link>
<pubDate>Sat, 21 May 2011 20:47:52 +0000</pubDate>
<dc:creator>joshwd</dc:creator>
<guid isPermaLink="false">21415@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hmm. I made a change to the Menu, and now suddenly it reflected a change. Seems that it only reflects sidebar changes when I make some other edit to the page.
&#60;/p&#62;</description>
</item>
<item>
<title>joshwd on "Sidebar widgets not changing on static home or blog pages"</title>
<link>http://themeshaper.com/forums/topic/sidebar-widgets-not-changing-on-static-home-or-blog-pages#post-21414</link>
<pubDate>Sat, 21 May 2011 20:03:55 +0000</pubDate>
<dc:creator>joshwd</dc:creator>
<guid isPermaLink="false">21414@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'm using a child theme of Thematic 0.9.7.7. For what it's worth, I've only made a few cosmetic changes to the theme.&#60;/p&#62;
&#60;p&#62;Anyway, I want to change the content of the sidebar - everywhere on the site, really, but in particular the Home page and the Blog page. But no matter where I add or remove widgets, these two pages refuse to change from the default side content (Search, Pages, Categories, Archives). I've tried deleting every widget from every possible sidebar, as well as moving, editing, and adding widgets to Primary Aside, Index Top, Single Top, and Page Top. None of these has any impact on the contents of the sidebar.&#60;/p&#62;
&#60;p&#62;Am I missing something? Or do I need to dive into the php just to edit the sidebar on the home page?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>joshuaiz on "Div order broken in Firefox 4 and Chrome"</title>
<link>http://themeshaper.com/forums/topic/div-order-broken-in-firefox-4-and-chrome#post-21206</link>
<pubDate>Tue, 10 May 2011 16:45:12 +0000</pubDate>
<dc:creator>joshuaiz</dc:creator>
<guid isPermaLink="false">21206@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;That was it - thank you @middlesister!
&#60;/p&#62;</description>
</item>
<item>
<title>joshuaiz on "Div order broken in Firefox 4 and Chrome"</title>
<link>http://themeshaper.com/forums/topic/div-order-broken-in-firefox-4-and-chrome#post-21204</link>
<pubDate>Tue, 10 May 2011 14:45:09 +0000</pubDate>
<dc:creator>joshuaiz</dc:creator>
<guid isPermaLink="false">21204@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;@middlesister: you are right...let me fix that and see if it works - thanks I never noticed that :)
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Div order broken in Firefox 4 and Chrome"</title>
<link>http://themeshaper.com/forums/topic/div-order-broken-in-firefox-4-and-chrome#post-21180</link>
<pubDate>Mon, 09 May 2011 18:11:08 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">21180@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hmm..&#60;br /&#62;
I wonder if it hasn't got to do with element nesting anyway.&#60;br /&#62;
You have a resulting html structure of&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;aside1-tweet&#38;quot;&#38;gt;
	&#38;lt;ul class=&#38;quot;sub1-tweet&#38;quot;&#38;gt;
		&#38;lt;li id=&#38;quot;viztweet&#38;quot;&#38;gt;&#38;lt;/li&#38;gt;
		&#38;lt;li&#38;gt;&#38;lt;/li&#38;gt;
	&#38;lt;/ul&#38;gt;

	 &#38;lt;div id=&#38;quot;tweet&#38;quot;&#38;gt;
	   &#38;lt;li id=&#38;quot;tweetlist&#38;quot;&#38;gt;&#38;lt;/li&#38;gt;
	&#38;lt;/div&#38;gt;

	&#38;lt;div id=&#38;quot;tweet2&#38;quot;&#38;gt;
	   &#38;lt;li id=&#38;quot;tweetlist2&#38;quot;&#38;gt;&#38;lt;/li&#38;gt;
	&#38;lt;/div&#38;gt;
&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Where the tweetlists &#60;code&#62;&#38;lt;li&#38;gt;&#60;/code&#62; items are not enclosed in &#60;code&#62;&#38;lt;ul&#38;gt;&#60;/code&#62;'s. This is not valid markup. What Chrome seems to be doing is trying to 'fix' this by moving the li#tweetlist as sibling to the li.widgetcontainer (which is the nearest un-closed &#60;code&#62;&#38;lt;ul&#38;gt;&#60;/code&#62; element). And then the confusion goes on.
&#60;/p&#62;</description>
</item>
<item>
<title>joshuaiz on "Div order broken in Firefox 4 and Chrome"</title>
<link>http://themeshaper.com/forums/topic/div-order-broken-in-firefox-4-and-chrome#post-21179</link>
<pubDate>Mon, 09 May 2011 16:56:29 +0000</pubDate>
<dc:creator>joshuaiz</dc:creator>
<guid isPermaLink="false">21179@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Helga,&#60;/p&#62;
&#60;p&#62;At first I thought it was an umatched div but they are all closed properly (or at least I think they are). There's no errors or warnings in any web inspectors...&#60;/p&#62;
&#60;p&#62;The code I have works in Safari, FF3 but not in FF4 or Chrome. When I take out the php code, the footer displays properly.&#60;/p&#62;
&#60;p&#62;You can see here: &#60;a href=&#34;http://www.vizualrecords.com/catalog/eps/viz001&#34; rel=&#34;nofollow&#34;&#62;http://www.vizualrecords.com/catalog/eps/viz001&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;(or any page really - it is in the first subsidiary widget)&#60;/p&#62;
&#60;p&#62;Here is the full code for this particular widget:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;aside1-top&#38;quot;&#38;gt;
&#38;lt;div id=&#38;quot;aside1-image&#38;quot;&#38;gt;&#38;lt;img id=&#38;quot;footlogo&#38;quot; src=&#38;quot;http://www.vizualrecords.com/images/vizual_logo_side_text.png&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
&#38;lt;ul class=&#38;quot;sub-text&#38;quot;&#38;gt;

&#38;lt;li&#38;gt;1200 W Monroe #613 Chicago, IL 60607 USA&#38;lt;/li&#38;gt;
&#38;lt;li&#38;gt;Tel: +1 312 476 9716&#38;lt;/li&#38;gt;
&#38;lt;li&#38;gt;Fax: +1 267 565 3327&#38;lt;/li&#38;gt;
&#38;lt;/div&#38;gt;
&#38;lt;div id=&#38;quot;aside1-tweet&#38;quot;&#38;gt;
&#38;lt;p class=&#38;quot;sub-head&#38;quot;&#38;gt;Follow Vizual Records and Joshua Iz on &#38;lt;i&#38;gt;Twitter&#38;lt;/i&#38;gt;:

&#38;lt;ul class=&#38;quot;sub1-tweet&#38;quot;&#38;gt;
&#38;lt;li id=&#38;quot;viztweet&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;http://twitter.com/vizualrecords&#38;quot; title=&#38;quot;Follow Vizual Records on Twitter&#38;quot;&#38;gt;@vizualrecords&#38;lt;/a&#38;gt;
&#38;lt;li&#38;gt;&#38;lt;a href=&#38;quot;http://twitter.com/joshuaiz&#38;quot; title=&#38;quot;Follow Joshua Iz on Twitter&#38;quot;&#38;gt;@joshuaiz&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;
 &#38;lt;div id=&#38;quot;tweet&#38;quot;&#38;gt;
   &#38;lt;?php
  $feedURL = &#38;quot;http://twitter.com/statuses/user_timeline/116496056.rss&#38;quot;;
  $headers = @get_headers($feedURL);
if (preg_match(&#38;quot;/200/&#38;quot;, $headers[0])){
$doc = new DOMDocument();
$doc-&#38;gt;load($feedURL);
$arrFeeds = array();
foreach ($doc-&#38;gt;getElementsByTagName(&#38;#39;item&#38;#39;) as $node) {
    $itemRSS = array (
        &#38;#39;title&#38;#39; =&#38;gt; $node-&#38;gt;getElementsByTagName(&#38;#39;title&#38;#39;)-&#38;gt;item(0)-&#38;gt;nodeValue,
        );
    array_push($arrFeeds, $itemRSS);
}
$limit = 1;
for($x=0;$x&#38;lt;$limit;$x++) {
    $title = str_replace(&#38;#39;vizualrecords: &#38;#39;, &#38;#39;&#38;#39;, $arrFeeds[$x][&#38;#39;title&#38;#39;]);
    $str = ereg_replace(&#38;quot;[[:alpha:]]+://[^&#38;lt;&#38;gt;[:space:]]+[[:alnum:]/]&#38;quot;,&#38;quot;&#38;lt;a&#38;gt;\&#38;lt;/a&#38;gt;&#38;quot;, $title);
    $pattern = &#38;#39;/[#&#124;@][^\s]*/&#38;#39;;
    preg_match_all($pattern, $str, $matches);

    foreach($matches[0] as $keyword) {
        $keyword = str_replace(&#38;quot;)&#38;quot;,&#38;quot;&#38;quot;,$keyword);
        $link = str_replace(&#38;quot;#&#38;quot;,&#38;quot;%23&#38;quot;,$keyword);
        $link = str_replace(&#38;quot;@&#38;quot;,&#38;quot;&#38;quot;,$keyword);
        if(strstr($keyword,&#38;quot;@&#38;quot;)) {
            $search = &#38;quot;&#38;lt;a&#38;gt;$keyword&#38;lt;/a&#38;gt;&#38;quot;;
        } else {
            $link = urlencode($link);
            $search = &#38;quot;&#38;lt;a&#38;gt;$keyword&#38;lt;/a&#38;gt;&#38;quot;;
        }
        $str = str_replace($keyword, $search, $str);
    }
    echo &#38;#39;&#38;lt;li id=&#38;quot;tweetlist&#38;quot;&#38;gt;&#38;#39;.$str.&#38;#39;&#38;#39;;
}
}
else echo &#38;#39;&#38;lt;li id=&#38;quot;tweetlist&#38;quot;&#38;gt; Follow &#38;lt;a href=&#38;quot;http://twitter.com/joshuaiz&#38;quot;&#38;gt;@joshuaiz&#38;lt;/a&#38;gt; and &#38;lt;a href=&#38;quot;http://twitter.com/izanddiz&#38;quot;&#38;gt;@izanddiz!&#38;lt;/a&#38;gt; Go Bears. Love yourself and help those less fortunate than you. Eat good food. Smile.&#38;#39;;

?&#38;gt;
&#38;lt;/div&#38;gt;

&#38;lt;div id=&#38;quot;tweet2&#38;quot;&#38;gt;
   &#38;lt;?php
  $feedURL = &#38;quot;http://twitter.com/statuses/user_timeline/17103844.rss&#38;quot;;
  $headers = @get_headers($feedURL);
if (preg_match(&#38;quot;/200/&#38;quot;, $headers[0])){
$doc = new DOMDocument();
$doc-&#38;gt;load($feedURL);
$arrFeeds = array();
foreach ($doc-&#38;gt;getElementsByTagName(&#38;#39;item&#38;#39;) as $node) {
    $itemRSS = array (
        &#38;#39;title&#38;#39; =&#38;gt; $node-&#38;gt;getElementsByTagName(&#38;#39;title&#38;#39;)-&#38;gt;item(0)-&#38;gt;nodeValue,
        );
    array_push($arrFeeds, $itemRSS);
}
$limit = 1;
for($x=0;$x&#38;lt;$limit;$x++) {
    $title = str_replace(&#38;#39;joshuaiz: &#38;#39;, &#38;#39;&#38;#39;, $arrFeeds[$x][&#38;#39;title&#38;#39;]);
    $str = ereg_replace(&#38;quot;[[:alpha:]]+://[^&#38;lt;&#38;gt;[:space:]]+[[:alnum:]/]&#38;quot;,&#38;quot;&#38;lt;a&#38;gt;\&#38;lt;/a&#38;gt;&#38;quot;, $title);
    $pattern = &#38;#39;/[#&#124;@][^\s]*/&#38;#39;;
    preg_match_all($pattern, $str, $matches);

    foreach($matches[0] as $keyword) {
        $keyword = str_replace(&#38;quot;)&#38;quot;,&#38;quot;&#38;quot;,$keyword);
        $link = str_replace(&#38;quot;#&#38;quot;,&#38;quot;%23&#38;quot;,$keyword);
        $link = str_replace(&#38;quot;@&#38;quot;,&#38;quot;&#38;quot;,$keyword);
        if(strstr($keyword,&#38;quot;@&#38;quot;)) {
            $search = &#38;quot;&#38;lt;a&#38;gt;$keyword&#38;lt;/a&#38;gt;&#38;quot;;
        } else {
            $link = urlencode($link);
            $search = &#38;quot;&#38;lt;a&#38;gt;$keyword&#38;lt;/a&#38;gt;&#38;quot;;
        }
        $str = str_replace($keyword, $search, $str);
    }
    echo &#38;#39;&#38;lt;li id=&#38;quot;tweetlist2&#38;quot;&#38;gt;&#38;#39;.$str.&#38;#39;&#38;#39;;
}
}
else echo &#38;#39;&#38;lt;li id=&#38;quot;tweetlist2&#38;quot;&#38;gt; Big hearts in a small world. It Iz What It Iz.&#38;#39;;

?&#38;gt;
&#38;lt;/div&#38;gt;
&#38;lt;/div&#38;gt;
&#38;lt;div id=&#38;quot;social_icons&#38;quot;&#38;gt;&#38;lt;a href=&#38;quot;http://www.facebook.com/vizualrecords&#38;quot; title=&#38;quot;Vizual Records on Facebook&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;a href=&#38;quot;http://www.twitter.com/vizualrecords&#38;quot; title=&#38;quot;Follow Vizual Records on Twitter&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;a href=&#38;quot;http://soundcloud.com/vizual&#38;quot; title=&#38;quot;Vizual Records on SoundCloud&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;a href=&#38;quot;http://www.joshuaiz.com/&#38;quot; title=&#38;quot;Joshua Iz&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;a href=&#38;quot;http://www.vizualrecords.com/feed/&#38;quot; title=&#38;quot;Vizual Records posts RSS feed&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I've tried all different php scripts and functions and either they don't work at all (in any browser) or they break the layout in FF4/Chrome. There must be something that FF4 and Chrome don't like.&#60;/p&#62;
&#60;p&#62;In addition, I've tried different PHP widget plugins to no avail.&#60;/p&#62;
&#60;p&#62;J
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Div order broken in Firefox 4 and Chrome"</title>
<link>http://themeshaper.com/forums/topic/div-order-broken-in-firefox-4-and-chrome#post-21158</link>
<pubDate>Mon, 09 May 2011 02:45:51 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">21158@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;some browsers try to auto-correct improperly closed divs and others don't.  what are you putting in the widgets and can you get around that?
&#60;/p&#62;</description>
</item>
<item>
<title>joshuaiz on "Div order broken in Firefox 4 and Chrome"</title>
<link>http://themeshaper.com/forums/topic/div-order-broken-in-firefox-4-and-chrome#post-21154</link>
<pubDate>Sun, 08 May 2011 23:15:08 +0000</pubDate>
<dc:creator>joshuaiz</dc:creator>
<guid isPermaLink="false">21154@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Well, I'm closer - looks like FF4 and Chrome don't like PHP code in widgets so this is the culprit...how to get around it is the question now.
&#60;/p&#62;</description>
</item>
<item>
<title>joshuaiz on "Div order broken in Firefox 4 and Chrome"</title>
<link>http://themeshaper.com/forums/topic/div-order-broken-in-firefox-4-and-chrome#post-21131</link>
<pubDate>Sun, 08 May 2011 14:56:39 +0000</pubDate>
<dc:creator>joshuaiz</dc:creator>
<guid isPermaLink="false">21131@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;After testing my site on Firefox 4 and Chrome, the div order is broken - specifically for the second and third subsidiary asides which are now outside the #footer (and #wrapper for that matter). This is causing all kinds of trouble with my layout in those browsers and I'm not exactly sure how to fix it.&#60;/p&#62;
&#60;p&#62;Here is how the divs are structured in Safari, Firefox 3.x:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;footer&#38;quot;&#38;gt;
	&#38;lt;div id=&#38;quot;subsidiary&#38;quot;&#38;gt;
		&#38;lt;div id=&#38;quot;first&#38;quot; class=&#38;quot;aside sub-aside&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
		&#38;lt;div id=&#38;quot;second&#38;quot; class=&#38;quot;aside sub-aside&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
		&#38;lt;div id=&#38;quot;third&#38;quot; class=&#38;quot;aside sub-aside&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
	&#38;lt;/div&#38;gt;
&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Now, here is the structure in Firefox 4 and Google Chrome:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;wrapper&#38;quot; class=&#38;quot;hfeed&#38;quot;&#38;gt;
&#38;lt;div id=&#38;quot;header&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
&#38;lt;div id=&#38;quot;main&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
&#38;lt;div id=&#38;quot;footer&#38;quot;&#38;gt;
	&#38;lt;div id=&#38;quot;subsidiary&#38;quot;&#38;gt;
		&#38;lt;div id=&#38;quot;first&#38;quot; class=&#38;quot;aside sub-aside&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;
	&#38;lt;/div&#38;gt;
	&#38;lt;div id=&#38;quot;social_icons&#38;quot;&#38;gt;&#38;lt;/div&#38;gt; //should be inside &#38;quot;first&#38;quot;
&#38;lt;/div&#38;gt;
&#38;lt;/div&#38;gt;
&#38;lt;div id=&#38;quot;second&#38;quot; class=&#38;quot;aside sub-aside&#38;quot;&#38;gt; //outside &#38;quot;wrapper&#38;quot; - should be inside &#38;quot;subsidiary&#38;quot; after &#38;quot;first&#38;quot;
&#38;lt;div id=&#38;quot;third&#38;quot; class=&#38;quot;aside sub-aside&#38;quot;&#38;gt; //outside &#38;quot;wrapper&#38;quot; - should be inside &#38;quot;subsidiary&#38;quot; after &#38;quot;second&#38;quot;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;[I guess the tabs aren't showing here but in the first example, all of the asides are within the &#34;subsidiary&#34; div inside the &#34;footer&#34; div; in the second example, the 2nd and 3rd subsidiary asides are outside of the &#34;wrapper&#34; div - not within &#34;subsidiary&#34; and &#34;footer&#34; at all]&#60;/p&#62;
&#60;p&#62;Any idea on how to fix this? &#60;/p&#62;
&#60;p&#62;I'm using the latest version of Thematic/WP 3.1.2/Latest versions of FF and Chrome.
&#60;/p&#62;</description>
</item>
<item>
<title>beanfair on "Remove header widget on blog pages"</title>
<link>http://themeshaper.com/forums/topic/remove-header-widget-on-blog-pages#post-19896</link>
<pubDate>Tue, 22 Mar 2011 06:55:04 +0000</pubDate>
<dc:creator>beanfair</dc:creator>
<guid isPermaLink="false">19896@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Please post your code, thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>Sabra on "Remove header widget on blog pages"</title>
<link>http://themeshaper.com/forums/topic/remove-header-widget-on-blog-pages#post-19832</link>
<pubDate>Fri, 18 Mar 2011 13:53:33 +0000</pubDate>
<dc:creator>Sabra</dc:creator>
<guid isPermaLink="false">19832@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi folks, I need some help again, sorry!&#60;/p&#62;
&#60;p&#62;I've succesfully added a widget area to my header, follow &#60;a href=&#34;http://themeshaper.com/forums/topic/widgets-in-the-header&#34;&#62;these&#60;/a&#62; instructions. I've also succesfully made the primary aside appear on my pages only, and the secondary aside appear on my blog only, following &#60;a href=&#34;http://themeshaper.com/forums/topic/alternating-sidebars-depending-on-homepages#post-18300&#34;&#62;these&#60;/a&#62; instructions, with some modifications.&#60;/p&#62;
&#60;p&#62;Now I want my newly created header-aside to appear only on my pages. I've adjusted the code I used before, but I'm having no luck. &#60;/p&#62;
&#60;p&#62;Can anyone help me with this? (should I post my code here too? Let me know if I should)&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;Sabra
&#60;/p&#62;</description>
</item>
<item>
<title>Direct Sponsor on "Thematic sidebar problem (above, below and between main asides)"</title>
<link>http://themeshaper.com/forums/topic/thematic-sidebar-problem-above-below-and-between-main-asides#post-17751</link>
<pubDate>Tue, 14 Dec 2010 06:30:43 +0000</pubDate>
<dc:creator>Direct Sponsor</dc:creator>
<guid isPermaLink="false">17751@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Yep; the above was the root of the issue.&#60;/p&#62;
&#60;p&#62;The action:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
// Add graphic with rounded corners below main aside...&#60;br /&#62;
function add_below_main_aside() {&#60;br /&#62;
    ?&#38;gt;&#60;br /&#62;
    &#38;lt;div class=&#34;aside main-aside below-main-aside&#34;&#38;gt;&#38;lt;/div&#38;gt;&#60;br /&#62;
   &#38;lt;?php&#60;br /&#62;
}&#60;br /&#62;
add_action('thematic_belowmainasides','add_below_main_aside');
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;The CSS:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
.below-main-aside{&#60;br /&#62;
clear:right; width:250px; /*Fix: These are essential for prompting the div to behave like primary and secondary.&#60;br /&#62;
This class need to be used with aside and main-aside to achieve the behaviour of the primary and secondary aside.*/&#60;br /&#62;
height:70px;&#60;br /&#62;
background-image:url(images/some-image.png);&#60;br /&#62;
background-repeat:no-repeat;&#60;br /&#62;
background-color:transparent;&#60;br /&#62;
}
&#60;/p&#62;&#60;/blockquote&#62;</description>
</item>
<item>
<title>Direct Sponsor on "Thematic sidebar problem (above, below and between main asides)"</title>
<link>http://themeshaper.com/forums/topic/thematic-sidebar-problem-above-below-and-between-main-asides#post-17750</link>
<pubDate>Tue, 14 Dec 2010 05:18:43 +0000</pubDate>
<dc:creator>Direct Sponsor</dc:creator>
<guid isPermaLink="false">17750@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;After a few hours of playing with the CSS I've discovered the following:&#60;/p&#62;
&#60;p&#62;If placing a div inside thematic_belowmainaside() it needs to be cleared (clear:right).&#60;/p&#62;
&#60;p&#62;I'll post back later.
&#60;/p&#62;</description>
</item>
<item>
<title>Direct Sponsor on "Thematic sidebar problem (above, below and between main asides)"</title>
<link>http://themeshaper.com/forums/topic/thematic-sidebar-problem-above-below-and-between-main-asides#post-17748</link>
<pubDate>Tue, 14 Dec 2010 04:10:43 +0000</pubDate>
<dc:creator>Direct Sponsor</dc:creator>
<guid isPermaLink="false">17748@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Can anybody conceptually explain to me how the following hooks are supposed to work in terms of CSS:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
thematic_abovemainaside()&#60;br /&#62;
thematic_betweenmainaside()&#60;br /&#62;
thematic_belowmainaside()
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;I'm basically adding adding a graphic with rounded corners above and below the primary and secondary asides.&#60;/p&#62;
&#60;p&#62;For above and between the left margin needs to include the width of #container but not for below. Any ideas why?&#60;/p&#62;
&#60;p&#62;Other inconsistencies exist. Why do these three hooks behave differently and not as simply as one might expect?&#60;/p&#62;
&#60;p&#62;How do they even work in the first place?&#60;/p&#62;
&#60;p&#62;&#60;em&#62;I'm just looking for an explanation of the logic but can paste code if necessary.&#60;/em&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>krowchuk on "Adding non-widget content to sidebars (asides)"</title>
<link>http://themeshaper.com/forums/topic/adding-non-widget-content-to-sidebars-asides#post-17312</link>
<pubDate>Sat, 27 Nov 2010 21:49:58 +0000</pubDate>
<dc:creator>krowchuk</dc:creator>
<guid isPermaLink="false">17312@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;In the spirit of giving back to the community as a way of saying thanks, I am posting a solution that I have used to an issue that had me stumped for a long time. I hope that somebody will find this useful!&#60;/p&#62;
&#60;p&#62;While switching my old theme over to Thematic I wanted to be able to place non-widgetized functions into the main and secondary asides (sidebars) above and below any widgets that I might use in those sidebars.  While I am using a 3 column (primary aside to left, content in middle, secondary aside to the right) layout, the information below could prove to be useful for other layouts as well.&#60;/p&#62;
&#60;p&#62;Like most things in Wordpress and Thematic, there are several ways to accomplish this. I am not very well versed in php and barely competent in css, (but wish to learn and get better at both!) so my method that I finally settled on may not be the best for you. Likewise, if anyone can share a method that would accomplish this in a better way, I would love to learn about it.&#60;/p&#62;
&#60;p&#62;So, to begin;&#60;/p&#62;
&#60;p&#62;I wanted to be able to place the thumbnail at the top of the primary aside (in 3col layout this is the left sidebar) and my current theme uses a custom field for the caption below the thumbnail image. &#60;/p&#62;
&#60;p&#62;Below these items I wished to be able to add any widget I might need in the future.&#60;/p&#62;
&#60;p&#62;The code I use in my old theme to display this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;sidebar widesidebar&#38;quot;&#38;gt;
  &#38;lt;?php echo get_the_post_thumbnail($wp_query-&#38;gt;post-&#38;gt;ID); ?&#38;gt;
    &#38;lt;div id=&#38;quot;thumb-caption&#38;quot;&#38;gt;
      &#38;lt;h2&#38;gt;
        &#38;lt;?php echo get_post_meta($post-&#38;gt;ID, &#38;#39;thumb_caption&#38;#39;, true); ?&#38;gt;
      &#38;lt;/h2&#38;gt;
    &#38;lt;/div&#38;gt;&#38;lt;!-- end thumb-caption --&#38;gt;

&#38;lt;?php if (!function_exists(&#38;#39;dynamic_sidebar&#38;#39;) &#124;&#124;
         !dynamic_sidebar(&#38;#39;wide&#38;#39;)) : ?&#38;gt;
&#38;lt;?php endif; ?&#38;gt;

&#38;lt;/div&#38;gt;&#38;lt;!--end sidebar--&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This presented a challenge to my Thematic &#34;remodeling&#34; adventure, since I was still stuck in my old way of thinking, that is, to simply customize the code inside the sidebar.  There was not an (apparently) easy way to do this in Thematic without either;&#60;/p&#62;
&#60;p&#62;a-) over riding the entire aside with a child aside&#60;/p&#62;
&#60;p&#62;or...&#60;/p&#62;
&#60;p&#62;b-) using a plugin that allows you to place and execute custom php into a widget and then place that widget into the sidebar.&#60;/p&#62;
&#60;p&#62;I actually decided to try &#34;option b&#34; but quickly abandoned that when it didn't quite work so well with multiple copies of the widget in the same sidebar.&#60;/p&#62;
&#60;p&#62;I really wanted to do this the &#34;Thematic&#34; way!  Without even really knowing yet what that is...&#60;/p&#62;
&#60;p&#62;My first attempt was to create a function using an action hook into thematic_abovemainasides(). &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Thumbs and custom field
function thumbnail() {
?&#38;gt;
&#38;lt;div id=&#38;quot;above-aside&#38;quot;&#38;gt;
  &#38;lt;ul&#38;gt;
    &#38;lt;?php $postid = get_the_ID(); ?&#38;gt;
    &#38;lt;?php the_post_thumbnail(); ?&#38;gt;
      &#38;lt;div class=&#38;quot;thumb-caption&#38;quot;&#38;gt;
       &#38;lt;h3&#38;gt;&#38;quot;&#38;lt;?php echo get_post_meta($postid, &#38;#39;thumb_caption&#38;#39;, true); ?&#38;gt;&#38;quot;&#38;lt;/h3&#38;gt;
      &#38;lt;/div&#38;gt;&#38;lt;!-- end thumb-caption --&#38;gt;
  &#38;lt;/ul&#38;gt;
&#38;lt;/div&#38;gt;&#38;lt;!-- end above-aside --&#38;gt;
&#38;lt;?php
}
add_action(&#38;#39;thematic_abovemainasides&#38;#39;, &#38;#39;thumbnail&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I was on the right path as it turns out, however, I created a css styling nightmare! The first thing it did was break my lovely 3 column layout!  I managed to fix that when it was suggested that I needed to give my div the same classes as the primary aside. &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Thumbs and custom field
function thumbnail() {
?&#38;gt;
&#38;lt;div id=&#38;quot;primary&#38;quot; class=&#38;quot;aside main-aside&#38;quot;&#38;gt;
  &#38;lt;ul&#38;gt;
    &#38;lt;?php $postid = get_the_ID(); ?&#38;gt;
    &#38;lt;?php echo get_the_post_thumbnail(); ?&#38;gt;
      &#38;lt;div class=&#38;quot;callout-caption&#38;quot;&#38;gt;
       &#38;lt;h3&#38;gt;&#38;quot;&#38;lt;?php echo get_post_meta($postid, &#38;#39;callout_caption&#38;#39;, true); ?&#38;gt;&#38;quot;&#38;lt;/h3&#38;gt;
      &#38;lt;/div&#38;gt;&#38;lt;!-- end callout-caption --&#38;gt;
  &#38;lt;/ul&#38;gt;
&#38;lt;/div&#38;gt;&#38;lt;!-- end primary main aside --&#38;gt;
&#38;lt;?php
}
add_action(&#38;#39;thematic_abovemainasides&#38;#39;, &#38;#39;thumbnail&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Beautiful! I thought the problem was solved, and it would have been if I didn't need to place a widget into the primary aside. The lesson to be learned here was that any content that you action hook into the thematic_abovemainasides() appears above the main asides, completely outside of the div containing the aside. In this case;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;primary&#38;quot; class=&#38;quot;aside main-aside&#38;quot;&#38;gt;
  &#38;lt;!-- Thumb and custom field display in here --&#38;gt;
&#38;lt;/div&#38;gt;&#38;lt;!-- end primary, aside, main-aside --&#38;gt;

&#38;lt;div id=&#38;quot;primary&#38;quot; class=&#38;quot;aside main-aside&#38;quot;&#38;gt;
  &#38;lt;!-- widgets display in here --&#38;gt;
&#38;lt;/div&#38;gt;&#38;lt;!-- end primary, aside, main-aside --&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Aside from producing invalid html code (#primary -&#38;gt; twice) this created a css styling nightmare where the second primary div overlapped the first and I could not figure out how to place it correctly below the first one.  Besides, what I really wanted was the thumb and custom field &#34;inside&#34; the primary aside, not above it!&#60;/p&#62;
&#60;p&#62;Like this;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;primary&#38;quot; class=&#38;quot;aside main-aside&#38;quot;&#38;gt;
  &#38;lt;!-- Thumb and custom field display in here --&#38;gt;
  &#38;lt;!-- widgets display in here --&#38;gt;
&#38;lt;/div&#38;gt;&#38;lt;!-- end primary, aside, main-aside --&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You could simply take option b- and install a plugin to execute your php inside a widget and drag that into the primary aside from the widgets area of dashboard, but what if you want to display a custom field or function below any widgets in that aside?&#60;/p&#62;
&#60;p&#62;The solution is to think outside of the box, or div as it may be in this case!&#60;/p&#62;
&#60;p&#62;Thematic has numerous action hook areas, indeed there is one called thematic_betweenmainasides() and another called thematic_belowmainasides()&#60;/p&#62;
&#60;p&#62;What this allowed me to do was to create a &#34;primary wrapper&#34; container so to speak, by opening the wrapping div in thematic_abovemainasides and closing it in the thematic_betweenmainasides like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Add wrap div into the primary aside using abovemainasides and belowmainasides
function wrap_aboveprimary() {
?&#38;gt;
  &#38;lt;div id=&#38;quot;primary-wrap&#38;quot; class=&#38;quot;aside main-aside&#38;quot;&#38;gt;
    &#38;lt;ul&#38;gt;
      &#38;lt;?php $postid = get_the_ID(); ?&#38;gt;
      &#38;lt;?php echo get_the_post_thumbnail(); ?&#38;gt;
        &#38;lt;div class=&#38;quot;thumb-caption&#38;quot;&#38;gt;
       	  &#38;lt;h3&#38;gt;&#38;quot;&#38;lt;?php echo get_post_meta($postid, &#38;#39;thumb_caption&#38;#39;, true); ?&#38;gt;&#38;quot;&#38;lt;/h3&#38;gt;
      	&#38;lt;/div&#38;gt;&#38;lt;!-- end thumb-caption --&#38;gt;
      	&#38;lt;/ul&#38;gt;
&#38;lt;?php
}
add_action(&#38;#39;thematic_abovemainasides&#38;#39;,&#38;#39;wrap_aboveprimary&#38;#39;);

function wrap_belowprimary() {
?&#38;gt;
  &#38;lt;/div&#38;gt;&#38;lt;!-- end primary-wrap --&#38;gt;
&#38;lt;?php
}
add_action(&#38;#39;thematic_betweenmainasides&#38;#39;,&#38;#39;wrap_belowprimary&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;now all you need to do is to style it, copy the #primary css selectors and paste them into #primary-wrap, then change the #primary margin to 0, like this (your widths, margins and paddings may differ);&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#primary {
	border:none; /* remove default border */
	float: left;
	margin: 0;
	width: 340px;
	padding: 7px 0 0;
	}

#primary-wrap {
	float: left;
	margin: 0 0 0 -940px;
	width: 340px;
	padding: 7px 0 0;
	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;There it is, a thing of Thematic beauty! My &#34;Aha - Thematica!&#34; moment!&#60;/p&#62;
&#60;p&#62;The thumb and custom field appears above the primary asides widgets in exactly the same place as I wished, top of the left aside. They &#34;appear&#34; to be inside the aside, but in reality they are inside a div that wraps the complete aside.&#60;/p&#62;
&#60;p&#62;We could take this a few steps further now, adding more custom fields or functions below the widgetized area of the primary aside, such as;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Add wrap div into the primary aside using abovemainasides and belowmainasides
function wrap_aboveprimary() {
?&#38;gt;
  &#38;lt;div id=&#38;quot;primary-wrap&#38;quot; class=&#38;quot;aside main-aside&#38;quot;&#38;gt;
    &#38;lt;ul&#38;gt;
      &#38;lt;?php $postid = get_the_ID(); ?&#38;gt;
      &#38;lt;?php echo get_the_post_thumbnail(); ?&#38;gt;
        &#38;lt;div class=&#38;quot;thumb-caption&#38;quot;&#38;gt;
       	  &#38;lt;h3&#38;gt;&#38;quot;&#38;lt;?php echo get_post_meta($postid, &#38;#39;thumb_caption&#38;#39;, true); ?&#38;gt;&#38;quot;&#38;lt;/h3&#38;gt;
      	&#38;lt;/div&#38;gt;&#38;lt;!-- end thumb-caption --&#38;gt;
      	&#38;lt;/ul&#38;gt;
&#38;lt;?php
}
add_action(&#38;#39;thematic_abovemainasides&#38;#39;,&#38;#39;wrap_aboveprimary&#38;#39;);

function wrap_belowprimary() {
?&#38;gt;
  &#38;lt;ul&#38;gt;
    &#38;lt;li&#38;gt;&#38;lt;?php if(function_exists(&#38;#39;echo_ald_crp&#38;#39;)) echo_ald_crp(); ?&#38;gt;&#38;lt;/li&#38;gt;
    &#38;lt;li&#38;gt;&#38;lt;?php if(function_exists(&#38;#39;echo_ald_wherego&#38;#39;)) echo_ald_wherego(); ?&#38;gt;&#38;lt;/li&#38;gt;
  &#38;lt;/ul&#38;gt;
  &#38;lt;/div&#38;gt;&#38;lt;!-- end primary-wrap --&#38;gt;
&#38;lt;?php
}
add_action(&#38;#39;thematic_betweenmainasides&#38;#39;,&#38;#39;wrap_belowprimary&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Where I have added some calls to 2 of my favourite related post plugins that don't have widgets.&#60;/p&#62;
&#60;p&#62;And of course you could take this one step further to include some custom content at the top and bottom of Secondary aside as well. Open your div in thematic_betweenmainasides and close it in thematic_belowmainasides.  I haven't tested this yet, but it seems to me that the same magic could occur!&#60;/p&#62;
&#60;p&#62;Have fun!&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>krowchuk on "Custom hook -&#62; INTO main aside?"</title>
<link>http://themeshaper.com/forums/topic/custom-hook-gt-into-main-aside#post-16923</link>
<pubDate>Fri, 12 Nov 2010 01:11:02 +0000</pubDate>
<dc:creator>krowchuk</dc:creator>
<guid isPermaLink="false">16923@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Oops! I lied!&#60;/p&#62;
&#60;p&#62;;-)&#60;/p&#62;
&#60;p&#62;of course, had I deleted the &#34;echo get_&#34; then of course it would work just fine!&#60;/p&#62;
&#60;p&#62;I declare this thread... solved!&#60;/p&#62;
&#60;p&#62;Cheers!&#60;br /&#62;
Chris
&#60;/p&#62;</description>
</item>
<item>
<title>krowchuk on "Custom hook -&#62; INTO main aside?"</title>
<link>http://themeshaper.com/forums/topic/custom-hook-gt-into-main-aside#post-16922</link>
<pubDate>Fri, 12 Nov 2010 01:07:56 +0000</pubDate>
<dc:creator>krowchuk</dc:creator>
<guid isPermaLink="false">16922@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hiya!&#60;/p&#62;
&#60;p&#62;Now that is strange, I deleted the &#34;echo&#34; and the thumbnail disappeared!  Popped it back in and the thumbnail reappeared.&#60;/p&#62;
&#60;p&#62;scratch scratch!
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Custom hook -&#62; INTO main aside?"</title>
<link>http://themeshaper.com/forums/topic/custom-hook-gt-into-main-aside#post-16920</link>
<pubDate>Fri, 12 Nov 2010 00:05:22 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">16920@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;well imho, if it works then it is good code!  good enough anyway.  there are things you learn along the way that sometimes make things faster and/or cleaner, but if it works that is a good start.&#60;/p&#62;
&#60;p&#62;the only thing i see is &#60;/p&#62;
&#60;p&#62;&#38;lt;?php echo get_the_post_thumbnail(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;could be&#60;/p&#62;
&#60;p&#62;&#38;lt;?php the_post_thumbnail(); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;but i couldnt say if that actually would make a difference in terms of load time or anything (that is still beyond me).  it is just a touch cleaner since your way is a little redundant.
&#60;/p&#62;</description>
</item>

</channel>
</rss>

