<?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 Topic: 2nd widget in header</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Fri, 24 May 2013 06:30:59 +0000</pubDate>

<item>
<title>mrmikeman on "2nd widget in header"</title>
<link>http://themeshaper.com/forums/topic/2nd-widget-in-header#post-23218</link>
<pubDate>Sun, 25 Sep 2011 01:46:53 +0000</pubDate>
<dc:creator>mrmikeman</dc:creator>
<guid isPermaLink="false">23218@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;uhgg. im sooo pathetic lol.. thank you helga!
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "2nd widget in header"</title>
<link>http://themeshaper.com/forums/topic/2nd-widget-in-header#post-23216</link>
<pubDate>Sat, 24 Sep 2011 21:44:29 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">23216@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;you don't have a ; at the end of your last line.  &#60;/p&#62;
&#60;p&#62;syntax error means that you are missing a ; or a } or a ) or something&#60;/p&#62;
&#60;p&#62;also please put all your code blocks between 2 backtick marks `&#60;br /&#62;
on a US keyboard it is next to the 1 on the tilde ~ key
&#60;/p&#62;</description>
</item>
<item>
<title>mrmikeman on "2nd widget in header"</title>
<link>http://themeshaper.com/forums/topic/2nd-widget-in-header#post-23211</link>
<pubDate>Sat, 24 Sep 2011 06:55:15 +0000</pubDate>
<dc:creator>mrmikeman</dc:creator>
<guid isPermaLink="false">23211@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i did this same code and it dont work&#60;/p&#62;
&#60;p&#62;'&#38;lt;?php&#60;/p&#62;
&#60;p&#62;//&#60;/p&#62;
&#60;p&#62;//  Custom Child Theme Functions&#60;/p&#62;
&#60;p&#62;//&#60;/p&#62;
&#60;p&#62;// I've included a &#34;commented out&#34; sample function below that'll add a home link to your menu&#60;/p&#62;
&#60;p&#62;// More ideas can be found on &#34;A Guide To Customizing The Thematic Theme Framework&#34; &#60;/p&#62;
&#60;p&#62;// &#60;a href=&#34;http://themeshaper.com/thematic-for-wordpress/guide-customizing-thematic-theme-framework/&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/thematic-for-wordpress/guide-customizing-thematic-theme-framework/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;// Adds a home link to your menu&#60;/p&#62;
&#60;p&#62;// &#60;a href=&#34;http://codex.wordpress.org/Template_Tags/wp_page_menu&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Template_Tags/wp_page_menu&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;//function childtheme_menu_args($args) {&#60;/p&#62;
&#60;p&#62;//    $args = array(&#60;/p&#62;
&#60;p&#62;//        'show_home' =&#38;gt; 'Home',&#60;/p&#62;
&#60;p&#62;//        'sort_column' =&#38;gt; 'menu_order',&#60;/p&#62;
&#60;p&#62;//        'menu_class' =&#38;gt; 'menu',&#60;/p&#62;
&#60;p&#62;//        'echo' =&#38;gt; true&#60;/p&#62;
&#60;p&#62;//    );&#60;/p&#62;
&#60;p&#62;//	return $args;&#60;/p&#62;
&#60;p&#62;//}&#60;/p&#62;
&#60;p&#62;//add_filter('wp_page_menu_args','childtheme_menu_args');&#60;/p&#62;
&#60;p&#62;// Unleash the power of Thematic's dynamic classes&#60;/p&#62;
&#60;p&#62;// &#60;/p&#62;
&#60;p&#62;// define('THEMATIC_COMPATIBLE_BODY_CLASS', true);&#60;/p&#62;
&#60;p&#62;// define('THEMATIC_COMPATIBLE_POST_CLASS', true);&#60;/p&#62;
&#60;p&#62;// Unleash the power of Thematic's comment form&#60;/p&#62;
&#60;p&#62;//&#60;/p&#62;
&#60;p&#62;// define('THEMATIC_COMPATIBLE_COMMENT_FORM', true);&#60;/p&#62;
&#60;p&#62;// Unleash the power of Thematic's feed link functions&#60;/p&#62;
&#60;p&#62;//&#60;/p&#62;
&#60;p&#62;// define('THEMATIC_COMPATIBLE_FEEDLINKS', true);&#60;/p&#62;
&#60;p&#62;function child_remove_pagetitles() {&#60;/p&#62;
&#60;p&#62;   // Make changes to the original function&#60;/p&#62;
&#60;p&#62;   if (is_home() &#124;&#124; is_front_page()) {&#60;/p&#62;
&#60;p&#62;          $posttitle = '';&#60;/p&#62;
&#60;p&#62;       } elseif (is_single()) {&#60;/p&#62;
&#60;p&#62;          $posttitle = '&#38;lt;h1 class=&#34;entry-title&#34;&#38;gt;' . get_the_title() . &#34;&#38;lt;/h1&#38;gt;\n&#34;;&#60;/p&#62;
&#60;p&#62;   //continue with original function&#60;/p&#62;
&#60;p&#62;       } elseif (is_404()) {&#60;/p&#62;
&#60;p&#62;           $posttitle = '&#38;lt;h1 class=&#34;entry-title&#34;&#38;gt;' . __('Not Found', 'thematic') . &#34;&#38;lt;/h1&#38;gt;\n&#34;;&#60;/p&#62;
&#60;p&#62;       } else {&#60;/p&#62;
&#60;p&#62;           $posttitle = '&#38;lt;h2 class=&#34;entry-title&#34;&#38;gt;&#38;lt;a href=&#34;';&#60;/p&#62;
&#60;p&#62;           $posttitle .= get_permalink();&#60;/p&#62;
&#60;p&#62;           $posttitle .= '&#34; title=&#34;';&#60;/p&#62;
&#60;p&#62;           $posttitle .= __('Permalink to ', 'thematic') . the_title_attribute('echo=0');&#60;/p&#62;
&#60;p&#62;           $posttitle .= '&#34; rel=&#34;bookmark&#34;&#38;gt;';&#60;/p&#62;
&#60;p&#62;           $posttitle .= get_the_title();&#60;/p&#62;
&#60;p&#62;           $posttitle .= &#34;&#38;lt;/h2&#38;gt;\n&#34;;&#60;/p&#62;
&#60;p&#62;       }&#60;/p&#62;
&#60;p&#62;   return $posttitle;&#60;/p&#62;
&#60;p&#62;   }&#60;/p&#62;
&#60;p&#62;add_filter('thematic_postheader_posttitle' ,'child_remove_pagetitles')&#60;/p&#62;
&#60;p&#62;?&#38;gt;'&#60;/p&#62;
&#60;p&#62;thats my functions php and i get a syntax error from adding that code
&#60;/p&#62;</description>
</item>
<item>
<title>craw on "2nd widget in header"</title>
<link>http://themeshaper.com/forums/topic/2nd-widget-in-header#post-22930</link>
<pubDate>Thu, 01 Sep 2011 03:23:52 +0000</pubDate>
<dc:creator>craw</dc:creator>
<guid isPermaLink="false">22930@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I figured it out and here it is for anyone interested:&#60;/p&#62;
&#60;p&#62;the last line of my code needed to be &#34;add_action('thematic_header', 'my_access_widgets', 9);&#34;
&#60;/p&#62;</description>
</item>
<item>
<title>craw on "2nd widget in header"</title>
<link>http://themeshaper.com/forums/topic/2nd-widget-in-header#post-22927</link>
<pubDate>Wed, 31 Aug 2011 21:35:05 +0000</pubDate>
<dc:creator>craw</dc:creator>
<guid isPermaLink="false">22927@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'm trying to add another widget area to the header. This one I want to go into the &#34;access&#34; area&#60;/p&#62;
&#60;p&#62;I was successful in adding the first one with this bit of code &#60;/p&#62;
&#60;p&#62;// This will create your widget area&#60;br /&#62;
function my_widgets_init() {&#60;br /&#62;
    register_sidebar(array(&#60;br /&#62;
       	'name' =&#38;gt; 'Header Aside',&#60;br /&#62;
       	'id' =&#38;gt; 'header-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;&#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 my_header_widgets() {&#60;br /&#62;
if ( function_exists('dynamic_sidebar') &#38;#38;&#38;#38; is_sidebar_active('header-aside') ) {&#60;br /&#62;
    echo '&#38;lt;div id=&#34;header-aside&#34; class=&#34;aside&#34;&#38;gt;'. &#34;\n&#34; . '&#38;lt;ul class=&#34;xoxo&#34;&#38;gt;' . &#34;\n&#34;;&#60;br /&#62;
    dynamic_sidebar('header-aside');&#60;br /&#62;
    echo '' . &#34;\n&#34; . '&#38;lt;/div&#38;gt;&#38;lt;!-- #header-aside .aside --&#38;gt;'. &#34;\n&#34;;&#60;br /&#62;
}&#60;br /&#62;
}&#60;br /&#62;
add_action('thematic_header', 'my_header_widgets', 8);&#60;/p&#62;
&#60;p&#62;I am now trying to add a second one. I have gotten to the point where I can add widgets to the area in the admin area but no dice on the actual site.&#60;/p&#62;
&#60;p&#62;here is the code I am using:&#60;/p&#62;
&#60;p&#62;// This will create your widget area&#60;br /&#62;
function my_stuff_init() {&#60;br /&#62;
    register_sidebar(array(&#60;br /&#62;
       	'name' =&#38;gt; 'Header Aside2',&#60;br /&#62;
       	'id' =&#38;gt; 'header-aside2',&#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;&#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_stuff_init' );&#60;/p&#62;
&#60;p&#62;// adding the widget area to your child theme&#60;br /&#62;
function my_access_widgets() {&#60;br /&#62;
if ( function_exists('dynamic_sidebar') &#38;#38;&#38;#38; is_sidebar_active('header-aside2') ) {&#60;br /&#62;
    echo '&#38;lt;div id=&#34;header-aside2&#34; class=&#34;aside&#34;&#38;gt;'. &#34;\n&#34; . '&#38;lt;ul class=&#34;xoxo&#34;&#38;gt;' . &#34;\n&#34;;&#60;br /&#62;
    dynamic_sidebar('header-aside2');&#60;br /&#62;
    echo '' . &#34;\n&#34; . '&#38;lt;/div&#38;gt;&#38;lt;!-- #header-aside2 .aside --&#38;gt;'. &#34;\n&#34;;&#60;br /&#62;
}&#60;br /&#62;
}&#60;br /&#62;
add_action('thematic_access', 'my_access_widgets', 9);&#60;/p&#62;
&#60;p&#62;Here is the address to the site &#60;a href=&#34;http://64.79.143.234/clinicient/wordpress/&#34; rel=&#34;nofollow&#34;&#62;http://64.79.143.234/clinicient/wordpress/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks in advance for any help!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
