<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Thesis Hacker &#187; hooks</title>
	<atom:link href="http://www.thesishacker.com/category/hooks/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thesishacker.com</link>
	<description>Customize Thesis</description>
	<lastBuildDate>Thu, 21 May 2009 16:22:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Multimedia box, feature box, it&#8217;s all the same</title>
		<link>http://www.thesishacker.com/multimedia-box-feature-box-use-your-own-custom-box</link>
		<comments>http://www.thesishacker.com/multimedia-box-feature-box-use-your-own-custom-box#comments</comments>
		<pubDate>Fri, 01 May 2009 21:50:18 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[feature box]]></category>
		<category><![CDATA[hooks]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[multimedia box]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[custom box]]></category>
		<category><![CDATA[hook map]]></category>
		<category><![CDATA[make your own multimedia box]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[thesis hacker]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=1752</guid>
		<description><![CDATA[Hey everyone, this lesson goes along with this one to show you the benefits of making your own custom box. Throughout this site you&#8217;ll see that there aren&#8217;t may tut&#8217;s focused on the multimedia box, or the feature box. The reason&#8230;.
It just aint worth it&#8230;
Do you realize that you have far more flexibility to make [...]]]></description>
			<content:encoded><![CDATA[<p>Hey everyone, this lesson goes along with <a href="http://www.thesishacker.com/make-your-own-multimedia-box">this one</a> to show you the benefits of making your own custom box. Throughout this site you&#8217;ll see that there aren&#8217;t may tut&#8217;s focused on the multimedia box, or the feature box. The reason&#8230;.</p>
<p><strong>It just aint worth it&#8230;</strong></p>
<p>Do you realize that you have far more flexibility to make your own box in html? When you make a simple box, <em>it is a multimedia box!</em> You can put any type of code in it you want. You can insert images, video, php code, javascript. Anything you put in the Thesis multimedia box or the feature box, you can put into your own custom box!</p>
<p>Don&#8217;t get me wrong, the mm box and feature box are cool things to have but if you really want to take your customization to the next level then read on&#8230;</p>
<p>Look how limited the feature box is. You can only put it above content or above content and sidebars. Not only that, just to get it working is kind of a pain in the rear. Look at the multimedia box, it seems to be forever stuck in the upper right hand side.</p>
<p>People, look outside the box (pun is intentional) Make your own custom box and put it wherever you want</p>
<p>How do you make your own box? Check out<a href="http://www.thesishacker.com/make-your-own-multimedia-box"> this tutuorial</a></p>
<p>Now, just to give you an idea of what I&#8217;m talking about. I made a simple box and just for the heck of it I placed it in a bunch of places. Check it out&#8230;</p>
<p><img class="alignnone size-full wp-image-1754" style="border: 1px solid black;" title="156" src="http://www.thesishacker.com/wp-content/uploads/2009/05/156.png" alt="156" width="559" height="960" /></p>
<p>Now remember, you can make these boxes any way you want. The possibilities are endless. Stretch them any way you want. You can make them wider, smaller, bigger, taller, different colors, different borders, and all the while, inserting your own custom code inside them!</p>
<p>I left the multimedia box in the example to show you how stagnant it is and how dynamic your own custom box can be</p>
<p>Check out the <a href="http://www.thesishacker.com/298">hook map</a> to see where all the hooks are placed</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/multimedia-box-feature-box-use-your-own-custom-box/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Make your own multimedia box</title>
		<link>http://www.thesishacker.com/make-your-own-multimedia-box</link>
		<comments>http://www.thesishacker.com/make-your-own-multimedia-box#comments</comments>
		<pubDate>Mon, 27 Apr 2009 00:03:12 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[hooks]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[multimedia box]]></category>
		<category><![CDATA[make your own multimedia box]]></category>
		<category><![CDATA[mm box]]></category>
		<category><![CDATA[move multimedia box]]></category>
		<category><![CDATA[thesis]]></category>
		<category><![CDATA[thesis hacker]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=1721</guid>
		<description><![CDATA[The mm box is a great feature but did you know you can make your very own simple mm box and place it any where you want on your site? Basically you&#8217;re going to make a box in in html, place it with a function, and style it in your custom.css file. Once you create [...]]]></description>
			<content:encoded><![CDATA[<p>The mm box is a great feature but did you know you can make your very own simple mm box and place it any where you want on your site? Basically you&#8217;re going to make a box in in html, place it with a function, and style it in your custom.css file. Once you create the box you can put any code you want in it&#8230;php, javascript, html, embed a video, your own custom code.</p>
<p>Check it out&#8230;</p>
<p><img class="alignnone size-full wp-image-1722" title="155" src="http://www.thesishacker.com/wp-content/uploads/2009/04/155.png" alt="155" width="539" height="290" /></p>
<p><img class="alignnone size-full wp-image-1723" title="154" src="http://www.thesishacker.com/wp-content/uploads/2009/04/154.png" alt="154" width="541" height="391" /></p>
<p>First you want to create the box with a simple function in your custom.functions.php file&#8230;</p>
<p class="alert">
function mymmbox() { ?&gt;<br />
       &lt;div class=&quot;mymmbox&quot;&gt;&lt;/div&gt;<br />
&lt;?<br />
}</p>
<p>I gave it a class name of &#8220;mymmbox&#8221; so that I can style it in my custom.css file. Name it whatever you want</p>
<p>Next I styled it in my custom.css file</p>
<p class="alert">.custom .mymmbox {<br />
width: 91em;<br />
height: 20em;<br />
border: 1px solid<br />
margin-left: 2em;<br />
margin-bottom: 2em;<br />
}</p>
<p>Then I decided I wanted to place it under my header so I added it with a hook</p>
<p class="alert">
function mymmbox() { ?&gt;<br />
       &lt;div class=&quot;mymmbox&quot;&gt;&lt;/div&gt;<br />
&lt;?<br />
}<br />
add_action(&#8217;thesis_hook_after_header&#8217; , &#8216;mymmbox&#8217;);</p>
<p>So there you have it. A real basic box that you can put anything into. Whatever you want to put in the new box, you place the code between the two &lt;div&gt; tags in the function.</p>
<p>You can now move it around anywhere you want with hooks in your custom.functions.php file, and you can change everything from the color, borders, size, etc, all in your custom.css</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/make-your-own-multimedia-box/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Add the same image to single posts only</title>
		<link>http://www.thesishacker.com/add-same-image-to-single-posts-only</link>
		<comments>http://www.thesishacker.com/add-same-image-to-single-posts-only#comments</comments>
		<pubDate>Wed, 28 Jan 2009 02:26:20 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[functions]]></category>
		<category><![CDATA[hooks]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[posts]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[add image to single posts]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=874</guid>
		<description><![CDATA[Add the same image to single posts only]]></description>
			<content:encoded><![CDATA[<p>To see how to add the same image to all posts <a href="http://www.thesishacker.com/add-the-same-image-to-every-post">check out this tutorial.</a> You can do the same thing except make the image appear on single posts only. When you click on a category item all the posts that you declared in your settings will appear. When you click on one of the titles of the post it will take you to the single post. This is where your image will appear.</p>
<p>In your custom_functions.php file add the following code. You can put it anywhere you want but I recommend putting it at the top after the &lt;?php tag. Remember, once you make the change, save it, and upload it to your server. Always describe the function and put it between the comment tags /*  */ at the beginning shown below in green. The comments aren’t shown on your rendered page and it just makes things easier for you to remember…</p>
<p class="alert"><span style="color: #339966;">/*image on single post*/</span><br />
function <span style="color: #ff0000;">name_your_function</span>() {<br />
if (is_single())<br />
echo &#8216;&lt;img src=&#8221;http://your site/wp-content/themes/thesis/custom/images/your image&#8221; <span style="color: #0000ff;">class=&#8221;name your class here&#8221; </span>/&gt;&#8217;;<br />
}<br />
add_action(&#8217;thesis_hook_<span style="color: #ff00ff;">after</span>_post&#8217; , &#8216;<span style="color: #ff0000;">name_your_function</span>&#8216;);</p>
<p>Name your function whatever you want</p>
<p>Give it a class so that you can style it in your custom.css</p>
<p>You can hang this function before or after a post with this&#8230;</p>
<p>thesis_hook_<span style="color: #ff00ff;">before</span>_post</p>
<p>thesis_hook_<span style="color: #ff00ff;">after</span>_post</p>
<p>Check out the hook map for placement ideas</p>
<p><a href="http://www.thesishacker.com/?page_id=298"><img class="aligncenter size-full wp-image-871" title="smallhookmap" src="http://www.thesishacker.com/wp-content/uploads/2009/01/smallhookmap.png" alt="smallhookmap" width="70" height="115" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/add-same-image-to-single-posts-only/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add the same image to every post</title>
		<link>http://www.thesishacker.com/add-the-same-image-to-every-post</link>
		<comments>http://www.thesishacker.com/add-the-same-image-to-every-post#comments</comments>
		<pubDate>Wed, 28 Jan 2009 02:21:34 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[functions]]></category>
		<category><![CDATA[hooks]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[add image]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[thesis]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=870</guid>
		<description><![CDATA[Add the same image to every post]]></description>
			<content:encoded><![CDATA[<p>You can put an image on every post without having to insert it everytime you write a new post. You can do it with a function and hook&#8230;</p>
<p>In your custom_functions.php file add the following code. You can put it anywhere you want but I recommend putting it at the top after the &lt;?php tag. Remember, once you make the change, save it, and upload it to your server. Always describe the function and put it between the comment tags /*  */ at the beginning shown below in green. The comments aren’t shown on your rendered page and it just makes things easier for you to remember…</p>
<p class="alert"><span style="color: #339966;">/*image on every post*/</span><br />
function <span style="color: #ff0000;">name_your_function</span>() {<br />
echo &#8216;&lt;img src=&#8221;http://your site/wp-content/themes/thesis/custom/images/your image&#8221; <span style="color: #0000ff;">class=&#8221;name your class here&#8221; </span>/&gt;&#8217;;<br />
}<br />
add_action(&#8217;thesis_hook_<span style="color: #ff00ff;">after</span>_post&#8217; , &#8216;<span style="color: #ff0000;">name_your_function</span>&#8216;);</p>
<p>Name your function whatever you want</p>
<p>Give it a class so that you can style it in your custom.css</p>
<p>You can hang this function before or after a post with this&#8230;</p>
<p>thesis_hook_<span style="color: #ff00ff;">before</span>_post</p>
<p>thesis_hook_<span style="color: #ff00ff;">after</span>_post</p>
<p>Check out the hook map for placement ideas</p>
<p><a href="http://www.thesishacker.com/?page_id=298"><img class="aligncenter size-full wp-image-871" title="smallhookmap" src="http://www.thesishacker.com/wp-content/uploads/2009/01/smallhookmap.png" alt="smallhookmap" width="70" height="115" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/add-the-same-image-to-every-post/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add your own custom header with hooks</title>
		<link>http://www.thesishacker.com/how-to-add-custom-header-with-hooks</link>
		<comments>http://www.thesishacker.com/how-to-add-custom-header-with-hooks#comments</comments>
		<pubDate>Mon, 10 Nov 2008 07:21:47 +0000</pubDate>
		<dc:creator>Nasty</dc:creator>
				<category><![CDATA[header]]></category>
		<category><![CDATA[hooks]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[add your own custom header]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[functions]]></category>

		<guid isPermaLink="false">http://www.thesishacker.com/?p=166</guid>
		<description><![CDATA[To put your own image or header image in the "header location", its a really simple matter of writing a function. The function makes it easy to upload the image.]]></description>
			<content:encoded><![CDATA[<p>To put your own image or header image in the &#8220;header location&#8221;, its a really simple matter of writing a function. The function makes it easy to upload the image. It&#8217;s a lot easier when you upgrade as well.</p>
<p>Make sure your image is in your custom/images folder.</p>
<p>In your <em>custom_functions.php </em>file add the following code. You can put it anywhere you want but I recommend putting it at the top after the &lt;?php tag. Always describe the function and put it between the comment tags /*  */ at the beginning shown below in green. The comments aren’t shown on your rendered page and it just makes things easier for you to remember…</p>
<p class="alert"><span style="color: #339966;">/*custom header image*/</span><br />
function <span style="color: #ff0000;">mycustomheader ()</span> { ?&gt;<br />
&lt;<span style="color: #993300;">div id =&#8221;headername&#8221;</span> &gt;&lt;<span style="color: #800000;"><span style="color: #000000;">img src=&#8221;&lt;<span style="color: #800000;">?php bloginfo(&#8217;template_directory&#8217;) ?&gt;</span>/custom/images/myheader.png&#8221;</span> </span>alt=&#8221;  &#8221; /&gt;<br />
&lt;/div&gt;<br />
&lt;?php }<br />
<span style="color: #993366;">remove_action ( &#8216;thesis_hook_header&#8217;,'thesis_default_header&#8217;);<br />
<span style="color: #333399;">add_action (&#8217;thesis_hook_header&#8217;, &#8216;mycustomheader&#8217;);</span></span></p>
<p>Name your custom function. I used &#8220;mycustomheader&#8221; just for an example.</p>
<p>Wrap it in a div tag, give it an id or class name whatever you want. That way you can style it in the custom.css with the name of &#8220;.headername&#8221; or &#8220;#headername&#8221;.  Name it whatever you want.</p>
<p>Check out the php code in the img src. It makes it a lot easier than having to type the entire path.</p>
<p>You have to &#8220;un-hook&#8221; the default header first. That&#8217;s what the &#8220;remove_action&#8221; does.</p>
<p>Add your image in your header area with the add_action &#8216;thesis_hook_header&#8217; and hang your &#8220;mycustomheader&#8221; on it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesishacker.com/how-to-add-custom-header-with-hooks/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

