<?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: hooks</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 19 Jun 2013 13:53:18 +0000</pubDate>

<item>
<title>wmarkusen on "Changing &#60;title&#62; layout using $doctitle"</title>
<link>http://themeshaper.com/forums/topic/changing-lttitlegt-layout-using-doctitle#post-25145</link>
<pubDate>Wed, 01 Feb 2012 19:55:07 +0000</pubDate>
<dc:creator>wmarkusen</dc:creator>
<guid isPermaLink="false">25145@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I found your post helpful in something I was trying to figure out. Thank you.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Hook for post "entry-content" class?"</title>
<link>http://themeshaper.com/forums/topic/hook-for-post-entry-content-class#post-24676</link>
<pubDate>Thu, 05 Jan 2012 23:04:49 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">24676@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;it was because you were escaping the ' where you didn't need to escape them.... \'medium\' instead of 'medium'
&#60;/p&#62;</description>
</item>
<item>
<title>PMix on "Hook for post "entry-content" class?"</title>
<link>http://themeshaper.com/forums/topic/hook-for-post-entry-content-class#post-24674</link>
<pubDate>Thu, 05 Jan 2012 20:45:37 +0000</pubDate>
<dc:creator>PMix</dc:creator>
<guid isPermaLink="false">24674@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;For whatever reason &#60;/p&#62;
&#60;pre&#62;function childtheme_feature_image($content) {
        global $post;
    	$my_addition = get_the_post_thumbnail($post-&#38;gt;ID,'medium');
    	$content = $my_addition . $content;
    	return $content;
}
add_filter('thematic_post', 'childtheme_feature_image');&#60;/pre&#62;
&#60;p&#62;works. I can just style with the img tags instead of using the div tags. &#60;/p&#62;
&#60;p&#62;Thanks so much for your help.
&#60;/p&#62;</description>
</item>
<item>
<title>PMix on "Hook for post "entry-content" class?"</title>
<link>http://themeshaper.com/forums/topic/hook-for-post-entry-content-class#post-24673</link>
<pubDate>Thu, 05 Jan 2012 20:43:01 +0000</pubDate>
<dc:creator>PMix</dc:creator>
<guid isPermaLink="false">24673@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I think the $my_addition line needs to be&#60;/p&#62;
&#60;pre&#62;$my_addition = '&#38;lt;div id=&#34;inside-post-thumbnail&#34;&#38;gt; . get_the_post_thumbnail($post-&#38;gt;ID,\'medium\') . &#38;lt;/div&#38;gt;';&#60;/pre&#62;
&#60;p&#62;but using that just outputs &#34;. get_the_post_thumbnail($post-&#38;gt;ID,'medium') .&#34; inside the div tags.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Hook for post "entry-content" class?"</title>
<link>http://themeshaper.com/forums/topic/hook-for-post-entry-content-class#post-24662</link>
<pubDate>Thu, 05 Jan 2012 14:57:37 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">24662@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;when using filters you must not use code that ECHOS, you must RETURN values.  the_post_thumbnail echoes.  you are also weirdly shifting back and forth between html and php when you are trying to set your variable.  &#60;/p&#62;
&#60;p&#62;try :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_feature_image($content) {
        global $post;
    	$my_addition = &#38;#39;&#38;lt;div id=&#38;quot;inside-post-thumbnail&#38;quot;&#38;gt;. get_the_post_thumbnail($post-&#38;gt;ID,&#38;#39;medium&#38;#39;) .&#38;#39;&#38;lt;/div&#38;gt;&#38;#39;;
    	$content = $my_addition . $content;
    	return $content;
}
add_filter(&#38;#39;thematic_post&#38;#39;, &#38;#39;childtheme_feature_image&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;most WP functions that echo something have a sister function that &#60;em&#62;gets&#60;/em&#62; the value instead, for use w/ filters&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/get_the_post_thumbnail&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>PMix on "Hook for post "entry-content" class?"</title>
<link>http://themeshaper.com/forums/topic/hook-for-post-entry-content-class#post-24660</link>
<pubDate>Thu, 05 Jan 2012 08:21:04 +0000</pubDate>
<dc:creator>PMix</dc:creator>
<guid isPermaLink="false">24660@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I would like to do essentially the same thing except I want to display the featured image for the post. When I use this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;`function childtheme_feature_image($content) {
    	$my_addition = '&#38;lt;div id=&#34;inside-post-thumbnail&#34;&#38;gt;
				&#38;lt;?php the_post_thumbnail(\'medium\');?&#38;gt;
			&#38;lt;/div&#38;gt;';
    	$content = $my_addition . $content;
    	return $content;
}
add_filter('thematic_post', 'childtheme_feature_image');&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Wordpress doesn't end up running the php code to display the thumbnail image. The html outputs as &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div id=&#34;inside-post-thumbnail&#34;&#38;gt;
&#38;lt;!--?php the_post_thumbnail('medium');?--&#38;gt;
&#38;lt;/div&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;What do I do to get it to execute that line of php code?
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Hook PHP script above post/page footer to hook Addtoany"</title>
<link>http://themeshaper.com/forums/topic/hook-php-script-above-postpage-footer-to-hook-addtoany#post-24052</link>
<pubDate>Fri, 02 Dec 2011 00:49:20 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">24052@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;have you read my introduction to primers and filters?&#60;br /&#62;
&#60;a href=&#34;http://themeshaper.com/forums/topic/need-help-understanding-actions-vs-filters-and-changing-post-meta-and-utility#post-22638&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/need-help-understanding-actions-vs-filters-and-changing-post-meta-and-utility#post-22638&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;like i said before, to get it INSIDE of entry-utility, i think you'll need to copy the thematic_postfooter() function completely to your functions.php and rename it childtheme_override_postfooter() and add &#60;/p&#62;
&#60;p&#62;ADDTOANY_SHARE_SAVE_KIT(array($output_later=TRUE))&#60;/p&#62;
&#60;p&#62;somewhere in there
&#60;/p&#62;</description>
</item>
<item>
<title>timothyd on "Hook PHP script above post/page footer to hook Addtoany"</title>
<link>http://themeshaper.com/forums/topic/hook-php-script-above-postpage-footer-to-hook-addtoany#post-24039</link>
<pubDate>Thu, 01 Dec 2011 22:08:53 +0000</pubDate>
<dc:creator>timothyd</dc:creator>
<guid isPermaLink="false">24039@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;*floating it right I meant.
&#60;/p&#62;</description>
</item>
<item>
<title>timothyd on "Hook PHP script above post/page footer to hook Addtoany"</title>
<link>http://themeshaper.com/forums/topic/hook-php-script-above-postpage-footer-to-hook-addtoany#post-24038</link>
<pubDate>Thu, 01 Dec 2011 22:07:50 +0000</pubDate>
<dc:creator>timothyd</dc:creator>
<guid isPermaLink="false">24038@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I actually placed it where I wanted by minimizing the width of the entry utility, changing clear:both to left, and changing the width of the Add to Any and floating it left. I can't seem to get a handle on these functions, hooks, etc. Probably a backwards way to go about it, but I find solace in CSS.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Hook PHP script above post/page footer to hook Addtoany"</title>
<link>http://themeshaper.com/forums/topic/hook-php-script-above-postpage-footer-to-hook-addtoany#post-24037</link>
<pubDate>Thu, 01 Dec 2011 21:47:53 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">24037@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i have come a long way in my year since posting my original response... wherein my answer was incorrect.  &#60;/p&#62;
&#60;p&#62;unless this plugin offers a function (or a parameter for the ADDTOANY_SHARE_SAVE_KIT() function) that &#34;returns&#34; a value in lieu of &#34;echoing&#34; a value, you cannot add this to the entry-utility via filter.&#60;/p&#62;
&#60;p&#62;you're lucky i seem to have too much time on my hands as it turns out that addtoany does have a return parameter.  ;)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_postfooter($postfooter) {
	if( function_exists(&#38;#39;ADDTOANY_SHARE_SAVE_KIT&#38;#39;) ) {
		$postfooter = $postfooter . ADDTOANY_SHARE_SAVE_KIT(array($output_later=TRUE));
	}
	return $postfooter;
}
add_filter (&#38;#39;thematic_postfooter&#38;#39;, &#38;#39;childtheme_postfooter&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;this doesn't get it INSIDE post-utility however.... might need to hit another filter OR use an override
&#60;/p&#62;</description>
</item>
<item>
<title>timothyd on "Hook PHP script above post/page footer to hook Addtoany"</title>
<link>http://themeshaper.com/forums/topic/hook-php-script-above-postpage-footer-to-hook-addtoany#post-24036</link>
<pubDate>Thu, 01 Dec 2011 18:49:04 +0000</pubDate>
<dc:creator>timothyd</dc:creator>
<guid isPermaLink="false">24036@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I am also trying to place the add to any share plugin in my entry utility. Ideas? I don't like it at the bottom of posts because I simply think it would look better if it were in line with my tags, comments etc. Please help!
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "WP Candy - An Introduction to Hooks"</title>
<link>http://themeshaper.com/forums/topic/wp-candy-an-introduction-to-hooks#post-22954</link>
<pubDate>Sat, 03 Sep 2011 15:07:16 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">22954@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;for newbs wondering about hooks and filters this is a decent tutorial:&#60;br /&#62;
&#60;a href=&#34;http://wpcandy.com/teaches/how-to-use-wordpress-hooks&#34; rel=&#34;nofollow&#34;&#62;http://wpcandy.com/teaches/how-to-use-wordpress-hooks&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>craw on "adding widget areas under header"</title>
<link>http://themeshaper.com/forums/topic/adding-widget-areas-under-header#post-22864</link>
<pubDate>Fri, 26 Aug 2011 22:42:38 +0000</pubDate>
<dc:creator>craw</dc:creator>
<guid isPermaLink="false">22864@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hello all- I want to add 4 widget areas that will span across the page above the container and primary/secondary areas.&#60;/p&#62;
&#60;p&#62;My first question is- do they already exist and can I just style an existing widget area (like &#34;widget-top&#34;)?&#60;/p&#62;
&#60;p&#62;If not, what document can you point me to to get started?&#60;/p&#62;
&#60;p&#62;Also, can I do this with hooks and/or filters? I'm pretty good styling thematic with css but I'm a novice when it comes to hooks/filters.&#60;/p&#62;
&#60;p&#62;Here is a diagram of what i'd like to accomplish- &#60;a href=&#34;http://64.79.143.234/diagram/outline.jpg&#34; rel=&#34;nofollow&#34;&#62;http://64.79.143.234/diagram/outline.jpg&#60;/a&#62; - basically, all the boxes with question marks I need help with.&#60;/p&#62;
&#60;p&#62;Thanks for any help
&#60;/p&#62;</description>
</item>
<item>
<title>allenjcochran on "functions.php NOT working"</title>
<link>http://themeshaper.com/forums/topic/functionsphp-not-working#post-22786</link>
<pubDate>Sun, 21 Aug 2011 23:35:55 +0000</pubDate>
<dc:creator>allenjcochran</dc:creator>
<guid isPermaLink="false">22786@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks! I figured it out. It worked perfectly.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "functions.php NOT working"</title>
<link>http://themeshaper.com/forums/topic/functionsphp-not-working#post-22761</link>
<pubDate>Fri, 19 Aug 2011 15:58:54 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">22761@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;if they show up in text form they must not be properly enclosed in &#38;lt;?php brackets&#60;/p&#62;
&#60;p&#62;functions.php must open w/ &#38;lt;?php&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

function show_bacon(){
  echo &#38;quot; bacon here! &#38;quot;;
}
add_action(&#38;#39;thematic_belowheader&#38;#39;,&#38;#39;show_bacon&#38;#39;);

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>benfrain.com on "functions.php NOT working"</title>
<link>http://themeshaper.com/forums/topic/functionsphp-not-working#post-22755</link>
<pubDate>Fri, 19 Aug 2011 13:03:37 +0000</pubDate>
<dc:creator>benfrain.com</dc:creator>
<guid isPermaLink="false">22755@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Allen, can you post the contents of you functions.php file in here? Enclose the code with the back tick ` symbol.
&#60;/p&#62;</description>
</item>
<item>
<title>allenjcochran on "functions.php NOT working"</title>
<link>http://themeshaper.com/forums/topic/functionsphp-not-working#post-22749</link>
<pubDate>Fri, 19 Aug 2011 04:56:34 +0000</pubDate>
<dc:creator>allenjcochran</dc:creator>
<guid isPermaLink="false">22749@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I created a child theme for Thematic... first let me say it was great and the information on the web about customization is fantastic... however... I'm having a problem.&#60;/p&#62;
&#60;p&#62;When I add any functions to my functions.php file, they A) do not work and B) show up in text form at the top of my website. Can anyone tell me why that is and how to fix it?
&#60;/p&#62;</description>
</item>
<item>
<title>noumaan on "Newbie: Editing Entry Meta and Entry Utility"</title>
<link>http://themeshaper.com/forums/topic/newbie-editing-entry-meta-and-entry-utility#post-22486</link>
<pubDate>Sun, 31 Jul 2011 19:49:33 +0000</pubDate>
<dc:creator>noumaan</dc:creator>
<guid isPermaLink="false">22486@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thank you helgatheviking
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Newbie: Editing Entry Meta and Entry Utility"</title>
<link>http://themeshaper.com/forums/topic/newbie-editing-entry-meta-and-entry-utility#post-22485</link>
<pubDate>Sun, 31 Jul 2011 15:58:03 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">22485@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;you can take a look at all the functions and filters available in the library/extensions folder of thematic.  the postmeta and entryutility ones are in content-extensions.php specifically.  &#60;/p&#62;
&#60;p&#62;NB: do NOT make changes in this file.  all your tweaks go in your child's functions.php&#60;/p&#62;
&#60;p&#62;so with that you can either override the function completely.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_override_postheader_postmeta(){
//do your thing
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;or you can use filters... which you know are available anywhere you see apply_filters&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;return apply_filters(&#38;#39;thematic_postheader_postmeta&#38;#39;,$postmeta);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;so to filter you'd do something like:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function child_postmeta($postmeta){
$postmeta = &#38;quot;ADD BACON! &#38;quot; . $postmeta;
return $postmeta;
}
add_filter(&#38;#39;thematic_postheader_postmeta&#38;#39;,&#38;#39;child_postmeta&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>noumaan on "Newbie: Editing Entry Meta and Entry Utility"</title>
<link>http://themeshaper.com/forums/topic/newbie-editing-entry-meta-and-entry-utility#post-22482</link>
<pubDate>Sun, 31 Jul 2011 01:24:36 +0000</pubDate>
<dc:creator>noumaan</dc:creator>
<guid isPermaLink="false">22482@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi &#60;/p&#62;
&#60;p&#62;I am developing a child theme based on thematic for my website. I have previously only worked pretty straight forward themes with a few template files, functions.php and a stylesheet. This is the first time I am working with a theme framework to create a child theme. &#60;/p&#62;
&#60;p&#62;I want to edit the Entry Meta, and Entry Utility areas but I can't find where thematic creates the loop and what I need to add to my functions.php &#60;/p&#62;
&#60;p&#62;I understand that I need to modify a default thematic hook and replace it with my own. But which hook and where it is located?
&#60;/p&#62;</description>
</item>
<item>
<title>ThomasTheme-as on "MIA - Basic Hook Customization Understandings Needed.."</title>
<link>http://themeshaper.com/forums/topic/mia-basic-hook-customization-understandings-needed#post-21474</link>
<pubDate>Thu, 26 May 2011 13:23:36 +0000</pubDate>
<dc:creator>ThomasTheme-as</dc:creator>
<guid isPermaLink="false">21474@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Well you enlightened me much on the HTML code insertion.&#60;/p&#62;
&#60;p&#62;Ok so to understand 'yourscript'. 'yourscript' is the handle you have defined first with: &#60;/p&#62;
&#60;p&#62;wp_enqueue_script('yourscript', JS . '/path-to-your-script.js');&#60;/p&#62;
&#60;p&#62;THEN this function above also defines it as the script sitting in /path-to-your-script.js. This is  my understanding.&#60;/p&#62;
&#60;p&#62;Thank you so much for getting me on a higher level of understanding, I think I am ready to get my hands dirty..&#60;/p&#62;
&#60;p&#62;You'll prob seeing more of me..
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "MIA - Basic Hook Customization Understandings Needed.."</title>
<link>http://themeshaper.com/forums/topic/mia-basic-hook-customization-understandings-needed#post-21470</link>
<pubDate>Wed, 25 May 2011 20:44:30 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">21470@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i know some people find the WP Codex confusing, but there is still a TON of info there.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/wp_enqueue_script&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/wp_enqueue_script&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;1. 'yourscript' in my example is the &#60;em&#62;handle&#60;/em&#62; for that script.  think of it as a unique name for that script. it's purpose is so that 10 plugins can say enqueue the script with the handle 'jquery' and jquery will actually only be loaded once.  you can also deregister a script if you know its handle.  good for working w/ a plugin like Contact 7 which loads its script everywhere even though you probably only need it on the contact page.&#60;/p&#62;
&#60;p&#62;2. add the bacon function to your child theme's functions.php  glad bacon could be of service! ;)
&#60;/p&#62;</description>
</item>
<item>
<title>ThomasTheme-as on "MIA - Basic Hook Customization Understandings Needed.."</title>
<link>http://themeshaper.com/forums/topic/mia-basic-hook-customization-understandings-needed#post-21469</link>
<pubDate>Wed, 25 May 2011 20:04:44 +0000</pubDate>
<dc:creator>ThomasTheme-as</dc:creator>
<guid isPermaLink="false">21469@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Wow thank you so much! I am self learning and a slow one at that, so I do so appreciate your patience and good effort with me. &#60;/p&#62;
&#60;p&#62;Two more questions, if I may press you further:&#60;br /&#62;
(1) Referring to helgathehelpfulviking's jQuery post where she/you mention(s):&#60;/p&#62;
&#60;p&#62; wp_enqueue_script('yourscript', JS . '/path-to-your-script.js');&#60;/p&#62;
&#60;p&#62;Is 'yourscript', the script that you placed in the js folder?&#60;/p&#62;
&#60;p&#62;(2) where typically would the add_bacon function be added? To the footer or as joperron mentions to be made in the functions.php file.&#60;/p&#62;
&#60;p&#62;The add_bacon example really gave me the necessary understanding to move forward.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "MIA - Basic Hook Customization Understandings Needed.."</title>
<link>http://themeshaper.com/forums/topic/mia-basic-hook-customization-understandings-needed#post-21467</link>
<pubDate>Wed, 25 May 2011 16:53:31 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">21467@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;add html code anywhere:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function add_bacon(){ ?&#38;gt;
&#38;lt;strong&#38;gt;write as much bacon-flavored html as you like&#38;lt;/strong&#38;gt;
&#38;lt;?php }
add_action(&#38;#39;thematic_hook_of_your_choice&#38;#39;,&#38;#39;add_bacon&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;add scripts to the footer (or anywhere really)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function add_bacon_script() {?&#38;gt;
&#38;lt;script&#38;gt;
jQuery.noConflict();
jQuery(document).ready(function($){
   alert(bacon);
});
&#38;lt;/script&#38;gt;
?&#38;gt;
add_action(&#38;#39;wp_footer&#38;#39;,&#38;#39;add_bacon_script&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;i do recommend that you go read my thread that joperron linked to.. which explains how to properly enqueue scripts.  you &#60;em&#62;can&#60;/em&#62; move the whole enqueue scripts thing out of the header and into the footer.  i've done it, but often run into problems w/ plugins just willy-nilly adding scripts to wp_head which results in a lot of breakage b/c jquery hasn't loaded yet.  &#60;/p&#62;
&#60;p&#62;for reference:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function clean_header(){
	// JS - MOVE TO FOOTER
	remove_action(&#38;#39;wp_head&#38;#39;, &#38;#39;wp_print_scripts&#38;#39;);
	remove_action(&#38;#39;wp_head&#38;#39;, &#38;#39;wp_print_head_scripts&#38;#39;, 9);
	remove_action(&#38;#39;wp_head&#38;#39;, &#38;#39;wp_enqueue_scripts&#38;#39;, 1);

	add_action(&#38;#39;wp_footer&#38;#39;, &#38;#39;wp_enqueue_scripts&#38;#39;, 1);
	add_action(&#38;#39;wp_footer&#38;#39;, &#38;#39;wp_print_scripts&#38;#39;, 10);
	add_action(&#38;#39;wp_footer&#38;#39;, &#38;#39;wp_print_head_scripts&#38;#39;, 20); 

	// CLEAN UP HEADER
	remove_action(&#38;#39;wp_head&#38;#39;,&#38;#39;thematic_head_scripts&#38;#39;); //thematic dropdowns
	remove_action( &#38;#39;wp_head&#38;#39;, &#38;#39;wlwmanifest_link&#38;#39;); // Removes link for Windows Live Writer users
	remove_action( &#38;#39;wp_head&#38;#39;, &#38;#39;wp_generator&#38;#39;); // Removes WP version
	remove_action( &#38;#39;wp_head&#38;#39;, &#38;#39;rsd_link&#38;#39; ); // Removes unneeded Really Simple Discovery link
	remove_action( &#38;#39;wp_head&#38;#39;, &#38;#39;start_post_rel_link&#38;#39;); //Remove relational start link
	remove_action( &#38;#39;wp_head&#38;#39;, &#38;#39;adjacent_posts_rel_link_wp_head&#38;#39;); // Remove prev/next relational links

	//use google&#38;#39;s jquery
	if (!is_admin()){
		wp_deregister_script( &#38;#39;jquery&#38;#39; );
		wp_register_script(&#38;#39;jquery&#38;#39;, &#38;#39;http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js&#38;#39;);
		wp_enqueue_script(&#38;#39;jquery&#38;#39;);
	 }
}
add_action(&#38;#39;init&#38;#39;,&#38;#39;clean_header&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>joperron on "MIA - Basic Hook Customization Understandings Needed.."</title>
<link>http://themeshaper.com/forums/topic/mia-basic-hook-customization-understandings-needed#post-21466</link>
<pubDate>Wed, 25 May 2011 16:10:24 +0000</pubDate>
<dc:creator>joperron</dc:creator>
<guid isPermaLink="false">21466@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hey there,&#60;/p&#62;
&#60;p&#62;You can put you add_action right under your function in your functions.php file. The general consensus here is to as much (all?) of your modifications programmatically through functions.php &#60;/p&#62;
&#60;p&#62;You have to be careful with jQuery as it is already queued in your header. You might want to go over this thread: &#60;a href=&#34;http://themeshaper.com/forums/topic/jquery-in-thematic-demystified&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/forums/topic/jquery-in-thematic-demystified&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
</item>
<item>
<title>ThomasTheme-as on "MIA - Basic Hook Customization Understandings Needed.."</title>
<link>http://themeshaper.com/forums/topic/mia-basic-hook-customization-understandings-needed#post-21464</link>
<pubDate>Wed, 25 May 2011 15:37:25 +0000</pubDate>
<dc:creator>ThomasTheme-as</dc:creator>
<guid isPermaLink="false">21464@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I am missing a fundamental conceptual understanding. My learning is at the tip of my tongue but not yet speaking..&#60;/p&#62;
&#60;p&#62;What I was wanting to know are the steps to making a customization with HTML or jQuery and hooking it in to a Theme.&#60;/p&#62;
&#60;p&#62;Lets say I want to add HTML code to the footer, lets say in particular to the bottom portion would I do as follows?&#60;/p&#62;
&#60;p&#62;(1) Create a function in the functions.php outlining the HTML, giving it a name, i.e. function my_footer and then&#60;br /&#62;
(2) Hooking into the footer by placing : add_action('thematic_below_footer', 'my_footer') into the footer.php file?&#60;/p&#62;
&#60;p&#62;ALSO&#60;/p&#62;
&#60;p&#62;How do I &#34;enqueue&#34; javascript into a footer, would I do so like follows:&#60;/p&#62;
&#60;p&#62;(1) Allow for jQuery in the footer by creating function in functions.php file as in:&#60;br /&#62;
function my_theme_js()&#60;br /&#62;
{&#60;br /&#62;
  wp_enqueue_script('jQuery);&#60;br /&#62;
  wp_print_scripts();&#60;br /&#62;
}&#60;br /&#62;
add_action('wp_enqueue_scripts', 'my_theme_js')&#60;br /&#62;
(2) In footer.php introduce javascript by invoking:&#60;br /&#62;
add_action('thematic_belowfooter', 'my_theme_js')&#60;br /&#62;
(3) then write in javascript in footer.&#60;/p&#62;
&#60;p&#62;Any help in getting me to talk, greatly appreciated..
&#60;/p&#62;</description>
</item>
<item>
<title>michaelh on "relative path to image file from functions.php"</title>
<link>http://themeshaper.com/forums/topic/relative-path-to-image-file-from-functionsphp#post-21409</link>
<pubDate>Sat, 21 May 2011 15:44:29 +0000</pubDate>
<dc:creator>michaelh</dc:creator>
<guid isPermaLink="false">21409@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Edit: realized I put stuff in the wrong directory, please delete. :(
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Hook for post "entry-content" class?"</title>
<link>http://themeshaper.com/forums/topic/hook-for-post-entry-content-class#post-20364</link>
<pubDate>Thu, 07 Apr 2011 08:57:52 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">20364@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;+1 for middlesister's solution
&#60;/p&#62;</description>
</item>
<item>
<title>middlesister on "Hook for post "entry-content" class?"</title>
<link>http://themeshaper.com/forums/topic/hook-for-post-entry-content-class#post-20363</link>
<pubDate>Thu, 07 Apr 2011 08:41:02 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">20363@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Try filtering thematic_post.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function childtheme_add_to_content($content) {
    $my_addition = &#38;#39;image goes here&#38;#39;;
    $content = $my_addition . $content;
    return $content;
}
add_filter(&#38;#39;thematic_post&#38;#39;, &#38;#39;childtheme_add_to_content&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>stonefree on "Hook for post "entry-content" class?"</title>
<link>http://themeshaper.com/forums/topic/hook-for-post-entry-content-class#post-20362</link>
<pubDate>Thu, 07 Apr 2011 06:18:56 +0000</pubDate>
<dc:creator>stonefree</dc:creator>
<guid isPermaLink="false">20362@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'm trying to insert some images at the beginning of every &#38;lt;div class=&#34;entry-content&#34;&#38;gt; on all page templates . I couldn't find a hook in the documentation. What is the best way to do this?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
