<?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>Sunils blog &#187; no plugin</title>
	<atom:link href="http://www.myhtmlworld.com/tag/no-plugin/feed" rel="self" type="application/rss+xml" />
	<link>http://www.myhtmlworld.com</link>
	<description>myhtmlworld.com</description>
	<lastBuildDate>Mon, 14 Nov 2011 09:27:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Create Thickbox in WordPress with just 3 lines of code.</title>
		<link>http://www.myhtmlworld.com/wordpress/create-thickbox-wordpress.html</link>
		<comments>http://www.myhtmlworld.com/wordpress/create-thickbox-wordpress.html#comments</comments>
		<pubDate>Sat, 11 Jul 2009 05:41:06 +0000</pubDate>
		<dc:creator>Sunil</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[no plugin]]></category>
		<category><![CDATA[Thickbox]]></category>

		<guid isPermaLink="false">http://www.myhtmlworld.com/?p=355</guid>
		<description><![CDATA[We already know that WordPress is showing Thickbox in its backend (wp-admin). We can call the same Thickbox in the WordPress theme also. It is very simple and it will help to remove your Thickbox plugin(if you are using it). First of all we need to insert the scripts necessary for creating the Thickbox. As [...]]]></description>
			<content:encoded><![CDATA[<p>We already know that WordPress is showing Thickbox in its backend (wp-admin). We can call the same Thickbox in the WordPress theme also. It is very simple and it will help to remove your Thickbox plugin(if you are using it).</p>
<p>First of all we need to insert the scripts necessary for creating the Thickbox. As I said earlier, WordPress is using jQuery and Thickbox already in its backend. So we just need to call the jquery and thickbox.</p>
<p><span id="more-355"></span></p>
<pre lang="php">
<?php wp_enqueue_style('thickbox'); ?> <!-- inserting style sheet for Thickbox.  -->
<?php wp_enqueue_script('jquery'); ?> <!--  including jquery. -->
<?php wp_enqueue_script('thickbox'); ?> <!--  including Thickbox javascript. -->
</pre>
<p>All these 3 lines of code should insert just before the < ? php wp_head( ) ; ? > function</p>
<p>These codes will include necessary files for your Thickbox. So Thickbox is ready for its functioning. Make sure that you have included < ? php wp_head ( ) ; ? > and < ? php wp_footer( ); ? > in your header and footer files  respectively.</p>
<p>Now we can test it by uploading the image from backend by creating a post. Please note that after the image got uploaded, we need to link the thumbnail image to the original image. And we need to include the class for the anchor tag like this. class=”thickbox”.</p>
<p><a class="thickbox" rel="thickbox-demo"  href="http://www.myhtmlworld.com/wp-content/uploads/2009/07/link-to-image.jpg"></a></p>
<p><a class="thickbox" rel="thickbox-demo" href="http://www.myhtmlworld.com/wp-content/uploads/2009/07/class-thickbox.jpg"></a></p>
<p>Just save the post and see it in your blog.</p>
<p><a class="thickbox" rel="thickbox-demo" href="http://www.myhtmlworld.com/wp-content/uploads/2009/07/myhtmlworld.com-033.jpg"></a></p>
<p>[<strong>update</strong>: Somebody asked me how we can enable the Next and previous button on the thickbox. For getting that functionality we need to add rel="thickbox-demo" or rel="something" next to the thickbox class. So it will look like this<br />
<a rel="thickbox-demo" class="thickbox" href="http://www.myhtmlworld.com/wp-content/uploads/2009/07/thickbox-rel.jpg"></a><br />
 ]</p>
<p>Hope you have like it. <a target="_blank" href="http://twitter.com/sunilsk">Follow me on twitter</a> or subscribe my feed for latest updates.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.myhtmlworld.com/wordpress/create-thickbox-wordpress.html/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>

