<?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: childtheme_override_blogdescription()</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 19 Jun 2013 05:19:37 +0000</pubDate>

<item>
<title>sheky on "Widgets output two times"</title>
<link>http://themeshaper.com/forums/topic/widgets-output-two-times#post-24213</link>
<pubDate>Fri, 09 Dec 2011 08:23:16 +0000</pubDate>
<dc:creator>sheky</dc:creator>
<guid isPermaLink="false">24213@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Definetly there is something wrong with the dynamic_sidebar(), not working on the override in the footer as well...
&#60;/p&#62;</description>
</item>
<item>
<title>sheky on "Widgets output two times"</title>
<link>http://themeshaper.com/forums/topic/widgets-output-two-times#post-24211</link>
<pubDate>Fri, 09 Dec 2011 01:26:50 +0000</pubDate>
<dc:creator>sheky</dc:creator>
<guid isPermaLink="false">24211@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Actually, it is not working with dynamic_sidebar() :/&#60;br /&#62;
Everything is fine when I use get_bloginfo()... that is why I thought this was resolved with the update, now I ucommented the dynamic_sidebar() piece of code and again same issue... so it could be a bug, or I overlooked something...&#60;/p&#62;
&#60;p&#62;I think I ll add all this through theme options later.&#60;/p&#62;
&#60;p&#62;Thanks again!
&#60;/p&#62;</description>
</item>
<item>
<title>sheky on "Widgets output two times"</title>
<link>http://themeshaper.com/forums/topic/widgets-output-two-times#post-24210</link>
<pubDate>Thu, 08 Dec 2011 21:44:30 +0000</pubDate>
<dc:creator>sheky</dc:creator>
<guid isPermaLink="false">24210@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Works like a charm! Thank you sooooooo much!
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Widgets output two times"</title>
<link>http://themeshaper.com/forums/topic/widgets-output-two-times#post-24209</link>
<pubDate>Thu, 08 Dec 2011 21:14:39 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">24209@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;if you need the add_action for childtheme_override to appear then you aren't using the latest version:&#60;/p&#62;
&#60;p&#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;there were some bugs specifically related to this that were fixed.  &#60;/p&#62;
&#60;p&#62;i thought for a second that dynamic_sidebar() was echoing something when the override was meant to return something, but that isn't the case.  update for sure, and then let me know where you are
&#60;/p&#62;</description>
</item>
<item>
<title>sheky on "Widgets output two times"</title>
<link>http://themeshaper.com/forums/topic/widgets-output-two-times#post-24208</link>
<pubDate>Thu, 08 Dec 2011 19:08:25 +0000</pubDate>
<dc:creator>sheky</dc:creator>
<guid isPermaLink="false">24208@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Actually, problem is passing any function trough override, I just tried with get_bloginfo('description'), instead of one I got two descriptions, but only one of them was inside a div I specified in override function.&#60;/p&#62;
&#60;p&#62;Here is the override:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function child_override_blogdescription() {
echo &#38;quot;&#38;lt;div id=\&#38;quot;blog-description\&#38;quot; class=\&#38;quot;prefix_1 grid_12 sufix_1 omega\&#38;quot;&#38;gt;&#38;quot; . get_bloginfo(&#38;#39;description&#38;#39;) . &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;

}
add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;child_override_blogdescription&#38;#39;,4);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;And here is how it is rendered:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#38;quot;blog-description&#38;quot; class=&#38;quot;prefix_1 grid_12 sufix_1 omega&#38;quot;&#38;gt;
Just another WordPress site
&#38;lt;/div&#38;gt;
&#38;lt;div id=&#38;quot;blog-description&#38;quot;&#38;gt;
Just another WordPress site
&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Again, any idea what I am doing wrong? I ve omitted &#60;code&#62;add_action(&#38;#39;thematic_header&#38;#39;, &#38;#39;child_override_blogdescription&#38;#39;,4);&#60;/code&#62;  like you suggested but then override is not picked up...
&#60;/p&#62;</description>
</item>
<item>
<title>sheky on "Widgets output two times"</title>
<link>http://themeshaper.com/forums/topic/widgets-output-two-times#post-24207</link>
<pubDate>Thu, 08 Dec 2011 18:16:34 +0000</pubDate>
<dc:creator>sheky</dc:creator>
<guid isPermaLink="false">24207@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hmm, when I remove it, doesn't output anything. &#60;/p&#62;
&#60;p&#62;I see that the problem is with processing the dynamic_sidebar() in the override function I just can't figure out what it is. When I pass dummy text in override function it works as it should, when I put same dynamic_sidebar() anywhere else it works as it should.&#60;/p&#62;
&#60;p&#62;Any idea what could it be?&#60;/p&#62;
&#60;p&#62;I thought this will be faster than working with theme options, but it took too much of my time... :/
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Widgets output two times"</title>
<link>http://themeshaper.com/forums/topic/widgets-output-two-times#post-24194</link>
<pubDate>Thu, 08 Dec 2011 04:37:43 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">24194@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;ok, just had to ask some basics.  still don't think widgets it the best way.  why not a theme option?&#60;/p&#62;
&#60;p&#62;BUT, as i was getting ready to test this on my own install i looked more closely at your code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_blogdescription() {

if (is_category(&#38;#39;ekologija&#38;#39;)) {
echo &#38;quot;&#38;lt;div id=\&#38;quot;blog-description\&#38;quot;&#38;gt;&#38;quot; . thematic_before_widget_area(&#38;#39;lul-ekologija-tagline&#38;#39;) . dynamic_sidebar(&#38;#39;lul-ekologija-tagline&#38;#39;) . thematic_after_widget_area(&#38;#39;lul-ekologija-tagline&#38;#39;) . &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;
}
elseif (is_category(&#38;#39;magazin&#38;#39;)) {
echo &#38;quot;&#38;lt;div id=\&#38;quot;blog-description\&#38;quot;&#38;gt;&#38;quot;. dynamic_sidebar(&#38;#39;lul-magazin-tagline&#38;#39;) . &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;
}
elseif (is_category(&#38;#39;aktivart&#38;#39;)) {
echo &#38;quot;&#38;lt;div id=\&#38;quot;blog-description\&#38;quot;&#38;gt;&#38;quot; . thematic_before_widget_area(&#38;#39;lul-aktivart-tagline&#38;#39;) . dynamic_sidebar(&#38;#39;lul-aktivart-tagline&#38;#39;) . thematic_after_widget_area(&#38;#39;lul-aktivart-tagline&#38;#39;) . &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;
} else {
echo &#38;quot;&#38;lt;div id=\&#38;quot;blog-description\&#38;quot;&#38;gt;&#38;quot; . thematic_before_widget_area(&#38;#39;lul-home-tagline&#38;#39;) . dynamic_sidebar(&#38;#39;lul-home-tagline&#38;#39;) . thematic_after_widget_area(&#38;#39;lul-home-tagline&#38;#39;) . &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;
}
}

add_action(&#38;#39;thematic_header&#38;#39;,&#38;#39;childtheme_override_blogdescription&#38;#39;,4); //the culprit. this line is unnecessary when using an override&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;when you declare childtheme_override anything it is automatically added to the appropriate hook via thematic's core.  you don't have to add it yourself w/ an add_action().  hence you are adding it a second time.  remove the add_action line and it should work just fine... though i'd still advise another route.
&#60;/p&#62;</description>
</item>
<item>
<title>sheky on "Widgets output two times"</title>
<link>http://themeshaper.com/forums/topic/widgets-output-two-times#post-24191</link>
<pubDate>Thu, 08 Dec 2011 01:20:05 +0000</pubDate>
<dc:creator>sheky</dc:creator>
<guid isPermaLink="false">24191@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Yes I have included it in child functions.php with include('library/widget-areas.php'); and widgets are registered, I see them in the admin panel. I have to use widgets as other people who will adminstrate the site are not tech-savy, and that content will be frequently changed and updated. But, yes, hardcoding it is my plan B. &#60;/p&#62;
&#60;p&#62;I am just very curious about this as this is first time I am using Thematic, and besides this glitch I am very much inclined in using it in the future.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Widgets output two times"</title>
<link>http://themeshaper.com/forums/topic/widgets-output-two-times#post-24190</link>
<pubDate>Thu, 08 Dec 2011 01:02:39 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">24190@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;why do you need a &#60;em&#62;widget&#60;/em&#62; to replace the blog description?  why not just write it into the childtheme_override function you have obviously already figured out?&#60;/p&#62;
&#60;p&#62;also unless you have specifically included  childtheme library/widget-areas.php through an include or require in your child's functions.php i'm not 100% sure this file would get included automatically.  i don't know that template hierarchy extends to sub-folders and am inclined to think it is only for specific WP templates, plus functions.php and style.css&#60;/p&#62;
&#60;p&#62;sidenote- please put code between backtick marks.  makes it a lot easier to see what is code and what is narrative
&#60;/p&#62;</description>
</item>
<item>
<title>sheky on "Widgets output two times"</title>
<link>http://themeshaper.com/forums/topic/widgets-output-two-times#post-24181</link>
<pubDate>Wed, 07 Dec 2011 17:38:37 +0000</pubDate>
<dc:creator>sheky</dc:creator>
<guid isPermaLink="false">24181@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I want to add specific widget areas on custom category pages to override thematic_blogdescription().&#60;/p&#62;
&#60;p&#62;Here is what I have done:&#60;br /&#62;
1. registerd new sidebars in childtheme library/widget-areas.php&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
function lul_home_tagline() {&#60;br /&#62;
    register_sidebar(array(&#60;br /&#62;
        'admin_menu_order' =&#38;gt; 210,&#60;br /&#62;
        'name' =&#38;gt; 'lul-home-tagline',&#60;br /&#62;
        'id' =&#38;gt; 'lul-home-tagline',&#60;br /&#62;
        'description' =&#38;gt; __('some text', 'thematic'),&#60;br /&#62;
        'before_widget' =&#38;gt; thematic_before_widget(),&#60;br /&#62;
        'after_widget' =&#38;gt; thematic_after_widget(),&#60;br /&#62;
        'before_title' =&#38;gt; thematic_before_title(),&#60;br /&#62;
        'after_title' =&#38;gt; thematic_after_title(),&#60;br /&#62;
        'priority' =&#38;gt; 1,)&#60;br /&#62;
        );&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;add_action('init', 'lul_home_tagline');&#60;/p&#62;
&#60;p&#62;function lul_magazin_tagline() {&#60;br /&#62;
    register_sidebar(array(&#60;br /&#62;
        'admin_menu_order' =&#38;gt; 220,&#60;br /&#62;
        'name' =&#38;gt; 'lul-magazin-tagline',&#60;br /&#62;
        'id' =&#38;gt; 'lul-magazin-tagline',&#60;br /&#62;
        'description' =&#38;gt; __('some text.', 'thematic'),&#60;br /&#62;
        'before_widget' =&#38;gt; thematic_before_widget(),&#60;br /&#62;
        'after_widget' =&#38;gt; thematic_after_widget(),&#60;br /&#62;
        'before_title' =&#38;gt; thematic_before_title(),&#60;br /&#62;
        'after_title' =&#38;gt; thematic_after_title(),&#60;br /&#62;
        'priority' =&#38;gt; 2,)&#60;br /&#62;
        );&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;add_action('init', 'lul_magazin_tagline');&#60;/p&#62;
&#60;p&#62;function lul_ekologija_tagline() {&#60;br /&#62;
    register_sidebar(array(&#60;br /&#62;
        'admin_menu_order' =&#38;gt; 230,&#60;br /&#62;
        'name' =&#38;gt; 'lul-ekologija-tagline',&#60;br /&#62;
        'id' =&#38;gt; 'lul-ekologija-tagline',&#60;br /&#62;
        'description' =&#38;gt; __('Prostor u koji se unosi tekst, slike, kod za prostor pored logoa na stranama kategorije ekologija.', 'thematic'),&#60;br /&#62;
        'before_widget' =&#38;gt; thematic_before_widget(),&#60;br /&#62;
        'after_widget' =&#38;gt; thematic_after_widget(),&#60;br /&#62;
        'before_title' =&#38;gt; thematic_before_title(),&#60;br /&#62;
        'after_title' =&#38;gt; thematic_after_title(),&#60;br /&#62;
        'priority' =&#38;gt; 3,)&#60;br /&#62;
        );&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;add_action('init', 'lul_ekologija_tagline');&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;2. Added childtheme_override_blogdescription() in my childetheme functions.php&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
function childtheme_override_blogdescription() {&#60;/p&#62;
&#60;p&#62;    if (is_category('ekologija')) {&#60;br /&#62;
        echo &#34;&#38;lt;div id=\&#34;blog-description\&#34;&#38;gt;&#34; . thematic_before_widget_area('lul-ekologija-tagline') . dynamic_sidebar('lul-ekologija-tagline') . thematic_after_widget_area('lul-ekologija-tagline') . &#34;&#38;lt;/div&#38;gt;&#34;;&#60;br /&#62;
    }&#60;br /&#62;
    elseif (is_category('magazin')) {&#60;br /&#62;
        echo &#34;&#38;lt;div id=\&#34;blog-description\&#34;&#38;gt;&#34;. dynamic_sidebar('lul-magazin-tagline') . &#34;&#38;lt;/div&#38;gt;&#34;;&#60;br /&#62;
    }&#60;br /&#62;
    elseif (is_category('aktivart')) {&#60;br /&#62;
        echo &#34;&#38;lt;div id=\&#34;blog-description\&#34;&#38;gt;&#34; . thematic_before_widget_area('lul-aktivart-tagline') . dynamic_sidebar('lul-aktivart-tagline') . thematic_after_widget_area('lul-aktivart-tagline') . &#34;&#38;lt;/div&#38;gt;&#34;;&#60;br /&#62;
    } else {&#60;br /&#62;
        echo &#34;&#38;lt;div id=\&#34;blog-description\&#34;&#38;gt;&#34; . thematic_before_widget_area('lul-home-tagline') . dynamic_sidebar('lul-home-tagline') . thematic_after_widget_area('lul-home-tagline') . &#34;&#38;lt;/div&#38;gt;&#34;;&#60;br /&#62;
        }&#60;br /&#62;
    } &#60;/p&#62;
&#60;p&#62;add_action('thematic_header','childtheme_override_blogdescription',4);&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;3. For some reason widget area outputs widget twice, with weird mark-up like so:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;li id=&#34;text-2&#34; class=&#34;widgetcontainer widget_text&#34;&#38;gt;&#60;br /&#62;
    &#38;lt;div class=&#34;textwidget&#34;&#38;gt;text widget text&#38;lt;/div&#38;gt;&#60;br /&#62;
 // &#60;em&#62;this was the first one&#60;/em&#62; &#60;/p&#62;
&#60;p&#62;&#38;lt;div id=&#34;blog-description&#34;&#38;gt;&#60;br /&#62;
  &#38;lt;div id=&#34;lul-home-tagline&#34; class=&#34;aside&#34;&#38;gt;&#60;br /&#62;
	&#38;lt;ul class=&#34;xoxo&#34;&#38;gt;&#60;br /&#62;
1&#60;br /&#62;
	 // &#60;em&#62;this was the second one, and this is the markup I created in override function but it only pulls this weird '1'&#60;/em&#62;&#60;br /&#62;
&#38;lt;/div&#38;gt;&#38;lt;!-- #lul-home-tagline .aside --&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I was adding block of code by block of code in my override function to try to track when the duplication occurres and it happens when I call &#60;code&#62;dynamic_sidebar('lul-ekologija-tagline')&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;I was poking around this all day, I don't have any plugins instaled, so if anyone has idea what coulde have gone wrong, I would apreciate it if you could help me out.&#60;/p&#62;
&#60;p&#62;Many thanks in advance!&#60;/p&#62;
&#60;p&#62;Sheky
&#60;/p&#62;</description>
</item>

</channel>
</rss>
