<?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>Maverick Web Creations &#187; Wordpress Help</title>
	<atom:link href="http://www.maverickwebcreations.com/blog/wordpress-help/feed" rel="self" type="application/rss+xml" />
	<link>http://www.maverickwebcreations.com</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jul 2010 06:34:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Creating jQuery UI Tabs in WordPress</title>
		<link>http://www.maverickwebcreations.com/2010/06/18/creating-jquery-ui-tabs-in-wordpress.html</link>
		<comments>http://www.maverickwebcreations.com/2010/06/18/creating-jquery-ui-tabs-in-wordpress.html#comments</comments>
		<pubDate>Fri, 18 Jun 2010 09:00:41 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=1480</guid>
		<description><![CDATA[<p><a href="http://jqueryui.com/" rel="nofollow" >jQuery UI</a> is the official jQuery user interface library. It provides interactions, widgets, effects, and theming for creating rich internet applications. <a href="http://jqueryui.com/" rel="nofollow" >jQuery UI</a> provides a comprehensive set of core interaction plugins, UI  widgets and visual effects that use a jQuery-style, event-driven  architecture and a focus on web&#8230; <a href="http://www.maverickwebcreations.com/2010/06/18/creating-jquery-ui-tabs-in-wordpress.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://jqueryui.com/" rel="nofollow" >jQuery UI</a> is the official jQuery user interface library. It provides interactions, widgets, effects, and theming for creating rich internet applications. <a href="http://jqueryui.com/" rel="nofollow" >jQuery UI</a> provides a comprehensive set of core interaction plugins, UI  widgets and visual effects that use a jQuery-style, event-driven  architecture and a focus on web standards, accessiblity, flexible  styling, and user-friendly design.</p>
<p>In this tutorial, I will be integrating the <a href="http://jqueryui.com/demos/tabs/" rel="nofollow" >jQuery UI Tabs widget</a> into the sidebar of my WordPress theme. The reason I am using the jQuery UI is because I do not want to be reinventing the wheel by creating another widget when the amazing jQuery team already has one.</p>
<p><strong>Include the jQuery Javascript Library into WordPress</strong></p>
<p>I have covered this topic in great detail in my previous post, <a href="post.php?action=edit&amp;post=1453" rel="nofollow" title="Edit “Include the Latest Version of jQuery in WordPress without  Duplicates”" >Include the Latest Version of jQuery in WordPress without  Duplicates</a>. Please refer to that post for more information on how to include jQuery into WordPress.</p>
<p><strong>Download jQuery UI Files</strong></p>
<p>The <a href="http://jqueryui.com/download" rel="nofollow" >jQuery UI download page</a> has so many options it can be really confusing. I downloaded all of the components of the latest &#8220;stable&#8221; release, which works with jQuery 1.4 and above.</p>
<p><strong>Upload jQuery UI Files to Your WordPress Theme Directory</strong></p>
<p>I created a &#8220;js&#8221; directory within my WordPress theme&#8217;s directory to store the jQuery UI files.</p>
<p>You only need to upload the following files:</p>
<ol>
<li>jquery.ui.core.min.js</li>
<li>jquery.ui.widget.min.js</li>
<li>jquery.ui.tabs.min.js</li>
</ol>
<p><strong>Include jQuery UI Files into Your WordPress Theme</strong></p>
<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;/wp-content/themes/TEMPLATE/js/jquery.ui.core.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;/wp-content/themes/TEMPLATE/js/jquery.ui.widget.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;/wp-content/themes/TEMPLATE/js/jquery.ui.tabs.min.js&quot;&gt;&lt;/script&gt;</pre></div></div>
<p>Add the 3 lines above into your header.php template file. Replace the &#8220;TEMPLATE&#8221; text with your theme&#8217;s template folder name.</p>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">#DISPLAY TABS
</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;script type=&quot;text/javascript&quot; src=&quot;/wp-content/themes/TEMPLATE/js/jquery.ui.core.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;/wp-content/themes/TEMPLATE/js/jquery.ui.widget.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;/wp-content/themes/TEMPLATE/js/jquery.ui.tabs.min.js&quot;&gt;&lt;/script&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>
<p>If you&#8217;re planning to display the tabs on the blog pages, you could use some WordPress conditional tags to control where they appear. Remember to replace the &#8220;TEMPLATE&#8221; text with your theme&#8217;s template folder name.</p>
<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#post_tabs&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">tabs</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>
<p>Another thing I like to do is to create an external Javascript file to store the Javascript code that launches the tabs. I saved the code above into the Javascript file, jquery-initialise-tabs.js.</p>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/wp-content/themes/TEMPLATE/js/jquery.ui.core.min.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/wp-content/themes/TEMPLATE/js/jquery.ui.widget.min.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/wp-content/themes/TEMPLATE/js/jquery.ui.tabs.min.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/wp-content/themes/TEMPLATE/js/jquery-initialise-tabs.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>
<p>I included the jquery-initialise-tabs.js file as an external Javascript file like the rest of the jQuery UI files.</p>
<p><strong>Adding the jQuery UI Tabs to the Sidebar</strong></p>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post_tabs&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;!--</span> TAB TITLES <span style="color: #339933;">-</span> START <span style="color: #339933;">--&gt;</span>
	<span style="color: #339933;">&lt;</span>ul <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;post_tabs_title&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>li title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Latest Posts&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#latest-posts&quot;</span><span style="color: #339933;">&gt;</span>Latest<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>li title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Popular Posts&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#popular-posts&quot;</span><span style="color: #339933;">&gt;</span>Popular<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>li title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Most Commented Posts&quot;</span><span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#most-commented-posts&quot;</span><span style="color: #339933;">&gt;</span>Most Comments<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;!--</span> TAB TITLES <span style="color: #339933;">-</span> <span style="color: #990000;">END</span> <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;!--</span> LATEST POSTS <span style="color: #339933;">-</span> START <span style="color: #339933;">--&gt;</span>
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;latest-posts&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>ul <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;tabs&quot;</span><span style="color: #339933;">&gt;&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> rel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;bookmark&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">&gt;....&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;&lt;/</span>ul<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;!--</span> LATEST POSTS <span style="color: #339933;">-</span> <span style="color: #990000;">END</span> <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;!--</span> POPULAR POSTS <span style="color: #339933;">-</span> START <span style="color: #339933;">--&gt;</span>
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;popular-posts&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>ul <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;tabs&quot;</span><span style="color: #339933;">&gt;&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> rel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;bookmark&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">&gt;....&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;&lt;/</span>ul<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;!--</span> POPULAR POSTS <span style="color: #339933;">-</span> <span style="color: #990000;">END</span> <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #339933;">&lt;!--</span> MOST COMMENTED POSTS <span style="color: #339933;">-</span> START <span style="color: #339933;">--&gt;</span>
	<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;most-commented-posts&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>ul <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;tabs&quot;</span><span style="color: #339933;">&gt;&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;#&quot;</span> rel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;bookmark&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">&gt;....&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;&lt;/</span>ul<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;!--</span> MOST COMMENTED POSTS <span style="color: #339933;">-</span> <span style="color: #990000;">END</span> <span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>
<p>The HTML code of the jQuery UI Tabs is pretty straightforward. You have create a div container to store your tabs and the content of the tabs. In my case, I created a div  with the id of &#8220;post_tabs&#8221;. The Javascript code within my jquery-initialise-tabs.js file activates the jQuery UI Tabs.</p>
<p>The a tags point to another div, which houses the content of the that tab. For example, the &#8220;Latest Posts&#8221; tab is activated when you click on the &#8220;#latest-posts&#8221; link. You can display anything you want within the tab&#8217;s content area. In my case, I displayed a list of blog posts.</p>
<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* TABS */</span>
<span style="color: #cc00cc;">#contents</span> <span style="color: #cc00cc;">#sidebar</span> <span style="color: #cc00cc;">#post_tabs</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">7px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contents</span> <span style="color: #cc00cc;">#sidebar</span> <span style="color: #cc00cc;">#post_tabs</span> ul<span style="color: #6666ff;">.post_tabs_title</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">189px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#EDEDED</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contents</span> <span style="color: #cc00cc;">#sidebar</span> <span style="color: #cc00cc;">#post_tabs</span> ul<span style="color: #6666ff;">.post_tabs_title</span> li
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">3px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span> <span style="color: #933;">3px</span> <span style="color: #933;">4px</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Georgia<span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;Times New Roman&quot;</span><span style="color: #00AA00;">,</span> Times<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">9px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#EDEDED</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contents</span> <span style="color: #cc00cc;">#sidebar</span> <span style="color: #cc00cc;">#post_tabs</span> ul<span style="color: #6666ff;">.post_tabs_title</span> li<span style="color: #6666ff;">.active</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#contents</span> <span style="color: #cc00cc;">#sidebar</span> <span style="color: #cc00cc;">#post_tabs</span> ul<span style="color: #6666ff;">.post_tabs_title</span> li<span style="color: #6666ff;">.over</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#3A8BD4</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ui-tabs</span> <span style="color: #6666ff;">.ui-tabs-panel</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ui-tabs</span> <span style="color: #6666ff;">.ui-tabs-hide</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contents</span> <span style="color: #cc00cc;">#sidebar</span> ul<span style="color: #6666ff;">.tabs</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">20px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">square</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contents</span> <span style="color: #cc00cc;">#sidebar</span> ol<span style="color: #6666ff;">.tabs2</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">39px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">20px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#contents</span> <span style="color: #cc00cc;">#sidebar</span> ul<span style="color: #6666ff;">.tabs</span> li<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#contents</span> <span style="color: #cc00cc;">#sidebar</span> ol<span style="color: #6666ff;">.tabs2</span> li
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">3px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Georgia<span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;Times New Roman&quot;</span><span style="color: #00AA00;">,</span> Times<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#333333</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>
<p>The CSS code is a bit tricky because jQuery UI Tabs&#8217; documentation does not go into great detail about it. If you check out the <a href="http://jqueryui.com/demos/tabs/default.html" rel="nofollow" >jQuery UI Tabs demo</a> and view its source code, you will see a link to an external style sheet file.</p>
<p>Actually the only required CSS for this jQuery UI Tabs to work is only this block of CSS code:</p>
<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.ui-tabs</span> <span style="color: #6666ff;">.ui-tabs-hide</span> <span style="color: #00AA00;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>
<p>The rest of the the CSS code I added above is just for styling it to suit my web site&#8217;s look and feel.</p>
<p>Overall, I find the jQuery UI Tabs relatively easy to install and customise but it isn&#8217;t for people who know nothing about HTML, CSS and Javascript.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2010/06/18/creating-jquery-ui-tabs-in-wordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Create a jQuery Slide Gallery with WordPress Posts</title>
		<link>http://www.maverickwebcreations.com/2010/06/17/create-jquery-slide-gallery-wordpress-posts.html</link>
		<comments>http://www.maverickwebcreations.com/2010/06/17/create-jquery-slide-gallery-wordpress-posts.html#comments</comments>
		<pubDate>Thu, 17 Jun 2010 09:00:41 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=1461</guid>
		<description><![CDATA[<p>This is a tutorial to replace my old tutorial on <a href="http://www.maverickwebcreations.com/2008/10/18/how-to-integrate-smoothgallery-into-wordpress.html">how to add SmoothGallery to WordPress</a>. The principles of adding SmoothGallery and a jQuery slide gallery are almost the same. I&#8217;ve did some research and found what I consider to be an excellent slide gallery jQuery plugin.</p>
<p>Introducing, the&#8230; <a href="http://www.maverickwebcreations.com/2010/06/17/create-jquery-slide-gallery-wordpress-posts.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>This is a tutorial to replace my old tutorial on <a href="http://www.maverickwebcreations.com/2008/10/18/how-to-integrate-smoothgallery-into-wordpress.html">how to add SmoothGallery to WordPress</a>. The principles of adding SmoothGallery and a jQuery slide gallery are almost the same. I&#8217;ve did some research and found what I consider to be an excellent slide gallery jQuery plugin.</p>
<p>Introducing, the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> jQuery slide gallery plugin&#8230;.</p>
<p><a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" ><img class="alignnone size-full wp-image-1463" src="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/featuredbox.jpg" alt="How to Create a jQuery Slide Gallery with WordPress Posts" width="600" height="296" title="How to Create a jQuery Slide Gallery with WordPress Posts" /></a></p>
<p>The <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> plugin costs $7 or $5 if you buy credits at <a href="http://codecanyon.net?ref=mwcreations" rel="nofollow" >CodeCanyon.net</a>. This is so much easier than using the SmoothGallery, which runs on the MooTools Javascript library. I don&#8217;t need to edit a lot of code to get this up and running. I have a live example of the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> on the home page of this web site.</p>
<p><strong>First Things First &#8211; Include jQuery into Your WordPress Theme</strong></p>
<p>You will need the jQuery Javascript library because the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> plugin runs on it. Please refer to my tutorial on <a href="http://www.maverickwebcreations.com/2010/06/15/include-the-latest-version-of-jquery-in-wordpress-without-duplicates.html">adding jQuery to WordPress</a> to find out how to do it.</p>
<p><strong>Include the FeaturedBox Javascript File into Your WordPress Theme</strong></p>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/wp-content/themes/TEMPLATE/js/featuredbox.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>
<p>Add the following code in between the &lt;head&gt; tags of your header.php template file.</p>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;/wp-content/themes/mwc1/js/featuredbox.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>
<p>Please replace the &#8220;TEMPLATE&#8221; text with your theme&#8217;s directory name.</p>
<p>If you want to display the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> only on the home page, you could add WordPress conditional tags to display the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> only on the home page.</p>
<p><strong>Merge the FeaturedBox style.css with Your WordPress Theme&#8217;s style.css</strong></p>
<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* FEATURED BOX */</span>
<span style="color: #cc00cc;">#featured_box_wrapper_wrapper</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#featured_box_wrapper</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.featuredbox</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">380px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#EDEDED</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.featuredbox</span> ul<span style="color: #6666ff;">.slides</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.featuredbox</span> ul<span style="color: #6666ff;">.slides</span> li
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">380px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.featuredbox</span> <span style="color: #6666ff;">.description</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">56px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">8px</span> <span style="color: #933;">8px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;images/bg-featured-box-desc.png&quot;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">100</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.featuredbox</span> <span style="color: #6666ff;">.description</span> h2
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">5px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Georgia<span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;Times New Roman&quot;</span><span style="color: #00AA00;">,</span> Times<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">italic</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.featuredbox</span> <span style="color: #6666ff;">.description</span> p
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">8px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Georgia<span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;Times New Roman&quot;</span><span style="color: #00AA00;">,</span> Times<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">italic</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#featured_box_wrapper</span> <span style="color: #6666ff;">.navigation</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">8px</span> <span style="color: #933;">0px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;images/bg-featured-box-navi.png&quot;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">100</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#featured_box_wrapper</span> <span style="color: #6666ff;">.navigation</span> ul
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#featured_box_wrapper</span> <span style="color: #6666ff;">.navigation</span> li
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">8px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#featured_box_wrapper</span> <span style="color: #6666ff;">.navigation</span> li img
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#featured_box_wrapper</span> <span style="color: #6666ff;">.navigation</span> li<span style="color: #6666ff;">.hover</span> img
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#EFA40D</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#featured_box_wrapper</span> <span style="color: #6666ff;">.navigation</span> li<span style="color: #6666ff;">.active</span> img
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#EFA40D</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.featuredbox</span> <span style="color: #6666ff;">.box-slide1</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.featuredbox</span> <span style="color: #6666ff;">.box-slide2</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> -<span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.featuredbox</span> <span style="color: #6666ff;">.box-slide1</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#CCF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.featuredbox</span> <span style="color: #6666ff;">.box-slide2</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#F96</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>
<p>I added the code into my WordPress theme&#8217;s style.css. I made some changes to suit my web site&#8217;s design. Instead of specifying a fixed width for the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a>, I used the code &#8220;display: block;&#8221; to let the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> stretch to the maximum width of the web page.</p>
<p><strong>Create a Dedicated WordPress Category for the FeaturedBox</strong></p>
<p><img class="alignnone size-full wp-image-1471" src="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/wordpress-category.jpg" alt="wordpress category" width="220" height="15" title="How to Create a jQuery Slide Gallery with WordPress Posts" /></p>
<p>I created a category titled &#8220;featured projects&#8221; for my <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a>. If you click on the category in the WordPress admin section, you will see a URL similar to the screen shot above. Note down the category ID number because we will be needing it in a while.</p>
<p><strong>Add the FeaturedBox to Your WordPress Template</strong></p>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>ready<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;#featured_box_wrapper&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>featuredbox<span style="color: #009900;">&#40;</span>
	<span style="color: #009900;">&#123;</span>
		slidesAnimation<span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;slide-left&quot;</span><span style="color: #339933;">,</span>
		slidesSpeed<span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;slow&quot;</span><span style="color: #339933;">,</span>
		descriptionAnimation<span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;fade&quot;</span><span style="color: #339933;">,</span>
		descriptionSpeed<span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;slow&quot;</span><span style="color: #339933;">,</span>
		navigationHide<span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
		rotateInterval<span style="color: #339933;">:</span> <span style="color: #cc66cc;">5000</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span> FEATURED BOX <span style="color: #339933;">-</span> START <span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;featured_box_wrapper&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;!--</span> FEATURED BOX SLIDES <span style="color: #339933;">-</span> START <span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
	have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$portfolio_highlights</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">#RETRIEVE THE FEATURED BOX SLIDE IMAGE URL
</span>		<span style="color: #000088;">$picture</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>ID<span style="color: #339933;">,</span> <span style="color: #0000ff;">'picture'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">#RETRIEVE THE FEATURED BOX SLIDE URL
</span>		<span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>ID<span style="color: #339933;">,</span> <span style="color: #0000ff;">'url'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">#FEATURED BOX SLIDE IMAGE URL EXISTS
</span>		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$picture</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
		?<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>
	<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div<span style="color: #339933;">&gt;&lt;</span>a title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Read more...&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&amp;lt;?php echo <span style="color: #006699; font-weight: bold;">$url</span>; ?&amp;gt;&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&amp;lt;?php echo <span style="color: #006699; font-weight: bold;">$picture</span>; ?&amp;gt;&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&amp;lt;?php the_title(); ?&amp;gt;&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div<span style="color: #339933;">&gt;&lt;</span>a title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Read more...&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&amp;lt;?php the_permalink(); ?&amp;gt;&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&amp;lt;?php echo <span style="color: #006699; font-weight: bold;">$picture</span>; ?&amp;gt;&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&amp;lt;?php the_title(); ?&amp;gt;&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div<span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div<span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&amp;lt;?php echo <span style="color: #006699; font-weight: bold;">$picture</span>; ?&amp;gt;&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&amp;lt;?php the_title(); ?&amp;gt;&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;120&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;60&quot;</span> <span style="color: #339933;">/&gt;&lt;/</span>div<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;!--</span> FEATURED BOX SLIDES <span style="color: #339933;">-</span> <span style="color: #990000;">END</span> <span style="color: #339933;">--&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;!--</span> FEATURED BOX <span style="color: #339933;">-</span> <span style="color: #990000;">END</span> <span style="color: #339933;">--&gt;</span></pre></div></div>
<p>I display my <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> on my home page, therefore I added my code on my home page template. Please add the code above to wherever your <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> should be.</p>
<p>The Javascript code that loads the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> is customised to my <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a>. Please refer to the numerous examples of the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> to find a setting that suits your needs.</p>
<p>The key code to edit here would be:</p>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat=120&amp;amp;posts_per_page=4'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>
<ul>
<li>Edit the code after cat=XXX to your category number.</li>
<li>Edit the code after posts_per_page=X with the number of posts you wish to display.</li>
</ul>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&amp;lt;?php echo <span style="color: #006699; font-weight: bold;">$picture</span>; ?&amp;gt;&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&amp;lt;?php the_title(); ?&amp;gt;&quot;</span> width<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;120&quot;</span> height<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;60&quot;</span> <span style="color: #339933;">/&gt;</span></pre></div></div>
<p>You might want to edit the size of the thumbnail to suit the design of your WordPress theme.</p>
<p><strong>Create a WordPress Post for the FeaturedBox</strong></p>
<p><a href="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/featuredbox-wordpress-post.jpg"><img class="alignnone size-full wp-image-1475" src="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/featuredbox-wordpress-post.jpg" alt="featuredbox wordpress post" width="639" height="296" title="How to Create a jQuery Slide Gallery with WordPress Posts" /></a></p>
<p>Whenever you create a new post that you want to display in the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a>, remember to do the following:</p>
<ol>
<li>Enter some text into the &#8220;excerpt&#8221; box.</li>
<li>Enter the URL of the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> thumbnail into the &#8220;picture&#8221; custom field box.</li>
<li>Enter the URL of the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> slide into the &#8220;url&#8221; custom field box.</li>
<li>Select the category of the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a>.</li>
</ol>
<p>I wish I could make the integration of <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> into WordPress a lot simpler but this is what I&#8217;ve got at the moment. I am only using a fraction of what the <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> can do because I am only displaying pictures in my <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a>. The <a href="http://codecanyon.net/item/featuredbox/77855?ref=mwcreations" rel="nofollow" >FeaturedBox</a> actually lets you display videos, flash and HTML objects.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2010/06/17/create-jquery-slide-gallery-wordpress-posts.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>4 Pop Over WordPress Plugins</title>
		<link>http://www.maverickwebcreations.com/2010/06/16/4-pop-over-wordpress-plugins.html</link>
		<comments>http://www.maverickwebcreations.com/2010/06/16/4-pop-over-wordpress-plugins.html#comments</comments>
		<pubDate>Wed, 16 Jun 2010 09:56:33 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=1456</guid>
		<description><![CDATA[<p>To me, a pop over window is essential for getting new subscribers to your newsletter. I have found 4 WordPress plugins that allow you to add a pop over into WordPress with relative ease.</p>
<p>1. <a href="http://www.bigsellingoptins.com/" rel="nofollow" >OptinPop</a></p>
<p>This is a free WordPress plugin that creates a pop over&#8230; <a href="http://www.maverickwebcreations.com/2010/06/16/4-pop-over-wordpress-plugins.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>To me, a pop over window is essential for getting new subscribers to your newsletter. I have found 4 WordPress plugins that allow you to add a pop over into WordPress with relative ease.</p>
<p>1. <a href="http://www.bigsellingoptins.com/" rel="nofollow" >OptinPop</a></p>
<p>This is a free WordPress plugin that creates a pop over window from a file. You need to create a HTML page with whatever you want to include in your pop over window and upload it to your web host. Although the options of this plugin are quite limited, you can select to include the &#8220;thickbox&#8221; effect, which &#8220;blacks out&#8221; the web page viewing area and focuses on your pop over window.</p>
<p>2. <a href="http://popuppicker.com/" rel="nofollow" >Popup Picker</a></p>
<p>This plugin costs $37. You get to create 4 types of pop ups with this plugin, which includes the &#8220;page peel&#8221; pop over effect. This plugin is pretty hard to set up and you also need to edit some HTML code to create your pop over window. For the price tag of $37, I think you could save that money and get a free WordPress plugin instead.</p>
<p>3. <a href="http://www.fasterinternetmarketing.com/FasterIM-OptIn/" rel="nofollow" >FasterIM OptIn</a></p>
<p>This is another free plugin. This plugin was created by a Thai guy and it has the most options of all the 4 plugins listed here. You don&#8217;t have to create a HTML file to get a pop over to pop up on your web site. This is great for people who have very little or zero HTML knowledge but creating your own pop over content in a HTML page has its benefits.</p>
<p>4. <a href="http://wpplugins.com/purchase/25/the-wordpress-pop-over-plugin" rel="nofollow" >WordPress Pop Over Plugin</a></p>
<p>This plugin costs $9.95 then $3.00 every month for support. If there is a new version, you get it free as long as you pay the $3 monthly support fee. If not, you would have to pay $9.95 again! The price is putting me off this plugin but I must say it looks the best among the 4 plugins listed here. It would be better if the author added the &#8220;thickbox&#8221; effect. This plugin requires you to enter HTML code into a box. If you don&#8217;t know HTML, it will be a problem but it is easier than creating a HTML file, which is a required in 2 of the plugins here.</p>
<p><strong>Which Pop Over Plugin Should You Use?</strong></p>
<p>Try the free plugins on this post to see if they suit your needs before  purchasing a pop over plugin. I have personally tested 2 of the 4 pop over WordPress plugins listed in this post. Of the 4 WordPress plugins my favourite is the <a href="http://www.bigsellingoptins.com/" rel="nofollow" >OptinPop</a>. I like it because it is free and I get to customise the look and feel of the plugin to my heart&#8217;s content.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2010/06/16/4-pop-over-wordpress-plugins.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Include the Latest Version of jQuery in WordPress without Duplicates</title>
		<link>http://www.maverickwebcreations.com/2010/06/15/include-the-latest-version-of-jquery-in-wordpress-without-duplicates.html</link>
		<comments>http://www.maverickwebcreations.com/2010/06/15/include-the-latest-version-of-jquery-in-wordpress-without-duplicates.html#comments</comments>
		<pubDate>Tue, 15 Jun 2010 09:15:29 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=1453</guid>
		<description><![CDATA[<p>At the time of this posting, WordPress 2.9.2 uses jQuery 1.3.2 but the latest version is 1.4.2. I wanted to use the latest version because it is supposedly about 3 times as fast as 1.3.2 as reported on the <a href="http://blog.jquery.com/2010/02/19/jquery-142-released/" rel="nofollow" >jQuery 1.4.2 release notes</a>.</p>
<p>jQuery is automatically included&#8230; <a href="http://www.maverickwebcreations.com/2010/06/15/include-the-latest-version-of-jquery-in-wordpress-without-duplicates.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>At the time of this posting, WordPress 2.9.2 uses jQuery 1.3.2 but the latest version is 1.4.2. I wanted to use the latest version because it is supposedly about 3 times as fast as 1.3.2 as reported on the <a href="http://blog.jquery.com/2010/02/19/jquery-142-released/" rel="nofollow" >jQuery 1.4.2 release notes</a>.</p>
<p>jQuery is automatically included in WordPress depending on the plugins or templates you use. Some of the plugins I use like the NextGen gallery plugin require jQuery to function properly.</p>
<p><strong>The Wrong Way to Include jQuery into WordPress</strong></p>
<p>Including jQuery into a normal web site is pretty straightforward. You simply add a line in between the &lt;head&gt; tag of your web page to load an external Javascript file.</p>
<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;script src=&quot;jquery-1.4.2.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</pre></div></div>
<p>If you did this in the WordPress header.php template file, you would end up with 2 versions of the jQuery library on your WordPress site instead of one! It is imperative that you only have 1 version of jQuery on your web site because 2 versions running at the same time may cause compatibility problems.</p>
<p><strong>The Right Way of Including jQuery into WordPress</strong></p>
<p>In your functions.php template file, add the following code to load the latest version of jQuery.</p>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#THIS FUNCTION INCLUDES THE JQUERY LIBRARY INTO NON-ADMIN WORDPRESS PAGES
</span><span style="color: #000000; font-weight: bold;">function</span> jquery_initialise<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">#PAGE IS NON-ADMIN
</span>	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>is_admin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">#DEREGISTER DEFAULT JQUERY INCLUDES
</span>		wp_deregister_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">#LOAD THE LOCAL JQUERY INCLUDES
</span>		wp_register_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'/wp-content/themes/mwc1/js/jquery-1.4.2.min.js'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1.4.2'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">#REGISTER CUSTOM JQUERY INCLUDES
</span>		wp_enqueue_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#INITIALISE JQUERY LIBRARY
</span>add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'jquery_initialise'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>
<p>In the example above, I made a reference to a self-hosted copy of jQuery. What that means is I downloaded a copy of jQuery, uploaded it to my web site and referenced it from my WordPress installation.</p>
<p>There are a few <a href="http://docs.jquery.com/Downloading_jQuery#CDN_Hosted_jQuery" rel="nofollow" >CDN-hosted copies of jQuery</a>. The most popular one is the Google Ajax API CDN. Here&#8217;s how you include the Google Ajax API CDN&#8217;s copy of jQuery into WordPress.</p>
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#THIS FUNCTION INCLUDES THE JQUERY LIBRARY INTO NON-ADMIN WORDPRESS PAGES
</span><span style="color: #000000; font-weight: bold;">function</span> jquery_initialise<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">#PAGE IS NON-ADMIN
</span>	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>is_admin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">#DEREGISTER DEFAULT JQUERY INCLUDES
</span>		wp_deregister_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">#LOAD THE GOOGLE API JQUERY INCLUDES
</span>		wp_register_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1.4.2'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #666666; font-style: italic;">#REGISTER CUSTOM JQUERY INCLUDES
</span>		wp_enqueue_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jquery'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#INITIALISE JQUERY LIBRARY
</span>add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'jquery_initialise'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>
<p>Once you have added the code above to the functions.php template, you will only have 1 version of jQuery in your WordPress without duplicates.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2010/06/15/include-the-latest-version-of-jquery-in-wordpress-without-duplicates.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Split Test Your Pop Over Window in WordPress</title>
		<link>http://www.maverickwebcreations.com/2010/06/14/split-test-pop-over-wordpress.html</link>
		<comments>http://www.maverickwebcreations.com/2010/06/14/split-test-pop-over-wordpress.html#comments</comments>
		<pubDate>Mon, 14 Jun 2010 07:42:25 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=1434</guid>
		<description><![CDATA[<p>I installed the <a href="http://www.bigsellingoptins.com/blog/download-optinpop-wordpress-plug-in/" rel="nofollow" >OptinPop plugin</a> to create pop over windows for my newsletter opt-ins. I wanted to measure the effectiveness of my pop over window&#8217;s ability to get people to sign up for my newsletter. Since I have been using Dynatracker to track the number of people&#8230; <a href="http://www.maverickwebcreations.com/2010/06/14/split-test-pop-over-wordpress.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>I installed the <a href="http://www.bigsellingoptins.com/blog/download-optinpop-wordpress-plug-in/" rel="nofollow" >OptinPop plugin</a> to create pop over windows for my newsletter opt-ins. I wanted to measure the effectiveness of my pop over window&#8217;s ability to get people to sign up for my newsletter. Since I have been using Dynatracker to track the number of people who click on my links and also to split test elements on my web pages, I decided to find a way to split test multiple versions of my pop over window with Dynatracker to see which one converts the best.</p>
<p><strong>The Problem</strong></p>
<p>Dynatracker can only split test 2 different URLs. I can&#8217;t split test 2 different web page elements with it. Therefore, I decided that it would be technically more convenient for me to split test 2 different images that contain my pop over window text.</p>
<p><strong>The 2 Pop Over Window Images</strong></p>
<p><a href="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/pop-over1.gif"><img class="alignnone size-thumbnail wp-image-1432" title="Pop Over 1" src="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/pop-over1-150x150.gif" alt="Pop Over 1" width="150" height="150" /></a> <a href="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/pop-over2.gif"><img class="alignnone size-thumbnail wp-image-1433" title="Pop Over 2" src="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/pop-over2-150x150.gif" alt="Pop Over 2" width="150" height="150" /></a></p>
<p>I created 2 images that I added as a CSS background image of my pop over window. The only difference between the 2 images is one word &#8211; Hurting and harming. I am testing the headline of my pop over window so everything else will stay the same while I find out which headline converts better.</p>
<p>Here&#8217;s a sample of my CSS code of the pop over window&#8230;</p>
<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* POP OVER */</span>
<span style="color: #cc00cc;">#popover</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">650px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">380px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;http://www.maverickwebcreations.com/track/s.php?id=X&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#popover</span> <span style="color: #cc00cc;">#popover_form</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">280px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">198px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#popover</span> <span style="color: #cc00cc;">#popover_form</span> label
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span> <span style="color: #933;">5px</span> <span style="color: #933;">10px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Georgia<span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;Times New Roman&quot;</span><span style="color: #00AA00;">,</span> Times<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#popover</span> <span style="color: #cc00cc;">#popover_form</span> input
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#popover</span> <span style="color: #cc00cc;">#popover_form</span> input<span style="color: #6666ff;">.popover_form_textbox</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">185px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#popover</span> <span style="color: #cc00cc;">#popover_form</span> input<span style="color: #6666ff;">.popover_form_button</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">194px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#popover</span> <span style="color: #cc00cc;">#popover_form</span> br
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>
<p>The important part is the &#8220;background-image: url(&#8220;http://www.maverickwebcreations.com/track/s.php?id=X&#8221;);&#8221; code, which loads 1 of the 2 images in the background of the pop over page.</p>
<p><strong>The Pop Over Window</strong></p>
<p><a href="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/pop-over-window.jpg"><img class="alignnone size-full wp-image-1441" title="Pop Over Window" src="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/pop-over-window.jpg" alt="Pop Over Window" width="647" height="375" /></a></p>
<p>If you look at the 2 pictures above, you won&#8217;t see a form section in it. The form was added to it by HTML code. The <a href="http://www.bigsellingoptins.com/blog/download-optinpop-wordpress-plug-in/" rel="nofollow" >OptinPop  plugin</a> requires a HTML file with the content of your pop over window.</p>
<p>Here&#8217;s the HTML code of my pop over window&#8230;</p>
<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
&lt;title&gt;&lt;/title&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&quot; href=&quot;/wp-content/themes/mwc1/style.css&quot; /&gt;
&lt;/head&gt;
&nbsp;
&lt;body onload=&quot;document.getElementById('FormValue_CustomField2').focus()&quot;&gt;
&nbsp;
&lt;div id=&quot;popover&quot;&gt;
&nbsp;
	&lt;div id=&quot;popover_form&quot;&gt;
		&lt;form action=&quot;http://www.mavericknewsletters.com/subscribe.php&quot; method=&quot;post&quot;&gt;
		&lt;input type=&quot;hidden&quot; name=&quot;FormValue_ListID&quot; value=&quot;2&quot; id=&quot;FormValue_ListID&quot; /&gt;
		&lt;input type=&quot;hidden&quot; name=&quot;FormValue_Command&quot; value=&quot;Subscriber.Add&quot; id=&quot;FormValue_Command&quot; /&gt;
		&lt;label&gt;First Name:&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;FormValue_Fields[CustomField2]&quot; value=&quot;&quot; id=&quot;FormValue_CustomField2&quot; class=&quot;popover_form_textbox&quot; /&gt;&lt;br /&gt;
		&lt;label&gt;Email Address:&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;FormValue_Fields[EmailAddress]&quot; value=&quot;&quot; id=&quot;FormValue_EmailAddress&quot; class=&quot;popover_form_textbox&quot; /&gt;&lt;br /&gt;
		&lt;label&gt;&lt;/label&gt;&lt;input type=&quot;submit&quot; name=&quot;FormButton_Subscribe&quot; value=&quot;Yes, Please send me the eBook&quot; id=&quot;FormButton_Subscribe&quot; class=&quot;popover_form_button&quot; /&gt;
		&lt;/form&gt;
	&lt;/div&gt;
&nbsp;
&lt;/div&gt;
&nbsp;
&lt;/body&gt;
&nbsp;
&lt;/html&gt;</pre></div></div>
<p><strong>The OptinPop Plugin</strong></p>
<p><img class="alignnone size-full wp-image-1443" title="optinpop" src="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/optinpop.jpg" alt="How to Split Test Your Pop Over Window in WordPress" width="558" height="292" /></p>
<p>The OptIn plugin has a URL field for you to enter your pop over window&#8217;s URL. Once you save this, the pop over window will start showing up on your WordPress web site.</p>
<p><strong>Stats from Dynatracker</strong></p>
<p><a href="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/dynatracker.jpg"><img class="alignnone size-full wp-image-1444" title="dynatracker" src="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/dynatracker.jpg" alt="How to Split Test Your Pop Over Window in WordPress" width="472" height="49" /></a></p>
<p>I added a small piece of code to the &#8220;subscribed&#8221; page of my newsletter system to keep track of the number of opt-ins. In Dynatracker, this will show up as an &#8220;action&#8221;.</p>
<p>Over time, I will have a clear indication on which pop over window is doing better. I will remove the least performing pop over window and keep the best one. Then, I will create another version of the pop over window to split test it against the existing pop over window again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2010/06/14/split-test-pop-over-wordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery or MooTools in WordPress?</title>
		<link>http://www.maverickwebcreations.com/2010/06/10/jquery-or-mootools-in-wordpress.html</link>
		<comments>http://www.maverickwebcreations.com/2010/06/10/jquery-or-mootools-in-wordpress.html#comments</comments>
		<pubDate>Thu, 10 Jun 2010 13:15:29 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=1392</guid>
		<description><![CDATA[<p>I have recently ditched the MooTools Javascript library in favour of the jQuery Javascript library. What that means is I have removed the <a href="http://www.maverickwebcreations.com/2008/10/20/how-to-add-mootabs-to-your-wordpress-theme.html">MooTabs</a> and <a href="http://www.maverickwebcreations.com/2008/10/18/how-to-integrate-smoothgallery-into-wordpress.html">SmoothGallery</a> from this web site and replaced them with jQuery scripts instead.</p>
<p>My reasons for giving up MooTools&#8230;</p>
WordPress uses the jQuery Javascript<p>&#8230; <a href="http://www.maverickwebcreations.com/2010/06/10/jquery-or-mootools-in-wordpress.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-1393 alignleft" style="margin-right: 5px;" title="jquery vs mootools" src="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/jquery-vs-mootools.gif" alt="jquery vs mootools" width="184" height="100" />I have recently ditched the MooTools Javascript library in favour of the jQuery Javascript library. What that means is I have removed the <a href="http://www.maverickwebcreations.com/2008/10/20/how-to-add-mootabs-to-your-wordpress-theme.html">MooTabs</a> and <a href="http://www.maverickwebcreations.com/2008/10/18/how-to-integrate-smoothgallery-into-wordpress.html">SmoothGallery</a> from this web site and replaced them with jQuery scripts instead.</p>
<p>My reasons for giving up MooTools&#8230;</p>
<ol>
<li>WordPress uses the jQuery Javascript library in the admin pages. In fact, you will find the jQuery files in the &#8220;wp-includes/js/jquery&#8221; directory.</li>
<li>WordPress has built-in support for the jQuery library. The <a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script" rel="nofollow" >wp enqueue script</a> function has a list of supported jQuery libraries and widgets but none for MooTools.</li>
<li>Some of my favourite WordPress plugins like the NextGen gallery use jQuery so I have to load the jQuery library on my web site.</li>
<li>I didn&#8217;t want to have 2 different Javascript libraries on my web site because it would increase the loading time of my pages.</li>
<li>I found better and simpler jQuery scripts to replace <a href="../2008/10/20/how-to-add-mootabs-to-your-wordpress-theme.html" rel="nofollow" >MooTabs</a> and <a href="../2008/10/18/how-to-integrate-smoothgallery-into-wordpress.html" rel="nofollow" >SmoothGallery</a> on my web site.</li>
</ol>
<p>Since jQuery is so well integrated into the WordPress platform, I don&#8217;t wish to reinvent the wheel and use MooTools on top of jQuery.</p>
<p>I found this blog post by Figo explaining the differences between <a href="http://figo.tandolin.co.za/javascript/jquery-vs-mootools-which-one-is-the-best.htm" rel="nofollow" >jQuery and MooTools</a>:</p>
<blockquote><p><em>MooTools is aimed more at JavaScript developers, while jQuery is more for people who want to implement JavaScript functionality in the easiest possible way.</em></p>
<p><em>jQuery is for people who aren’t necessarily interested in delving deep into JavaScript while MooTools provides an object-oriented framework for hardcore JavaScript development. This is why most people find MooTools harder to use in comparison to jQuery.</em></p></blockquote>
<p>As a web developer, I personally find jQuery a lot easier to work with than MooTools. It  really makes coding in Javascript and creating cool effects a lot  easier. jQuery suits my needs better than MooTools because I only use it to create some special effects on web sites and I have no desire or need to learn very advanced Javascript.</p>
<p>Another personal reason for using jQuery is I can create Flash-like effects without using Flash, which is expensive to create because of the expensive software required. For examples on how jQuery is beating the pants off Flash, check out Lam&#8217;s great post, <a href="http://aext.net/2010/03/javascript-jquery-killing-flash-tutorial-jquery-plugin/" rel="nofollow" >How jQuery is Killing Flash</a>.</p>
<p>On the <a href="http://jqueryvsmootools.com/#mottos" rel="nofollow" >jQueryVsMooTools.com</a> web site, the author points out about the fundamental differences between jQuery and MooTools:</p>
<blockquote><p><em>jQuery&#8217;s description of itself talks about HTML, events, animations, Ajax, and web development. MooTools talks about object oriented-ness and writing powerful and flexible code. jQuery aspires to &#8220;change the way you write JavaScript&#8221; while MooTools is designed for the intermediate to advanced JavaScript developer.</em></p>
<p><em>Part of this consideration is the notion of a framework vs a toolkit. MooTools is a framework that attempts to implement JavaScript as it should be (according to MooTools&#8217; authors). The aim is to implement an API that feels like JavaScript and enhances everything; not just the DOM. jQuery is a toolkit that gives you an easy to use collection of methods in a self-contained system designed to make the DOM itself more pleasant. It just so happens that the DOM is where most people focus their effort when writing JavaScript, so in many cases, jQuery is all you need.</em></p></blockquote>
<p>At the end of the day, it isn&#8217;t a matter of which one is better or worse but which one of the 2 Javascript library suits your needs and Javascript coding level.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2010/06/10/jquery-or-mootools-in-wordpress.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Speed Up WordPress Part 1: Plugins</title>
		<link>http://www.maverickwebcreations.com/2010/06/10/how-to-speed-up-wordpress-part-1-plugins.html</link>
		<comments>http://www.maverickwebcreations.com/2010/06/10/how-to-speed-up-wordpress-part-1-plugins.html#comments</comments>
		<pubDate>Thu, 10 Jun 2010 09:34:45 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[minify]]></category>
		<category><![CDATA[speed up wordpress]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP Super Cache]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=1370</guid>
		<description><![CDATA[<p>I recently made some changes to my web site to try to speed up the loading time of my pages. After installing loads of WordPress plugins and other social networking widgets, my web site loading time became rather slow because of all the extra CSS and Javascript code that came&#8230; <a href="http://www.maverickwebcreations.com/2010/06/10/how-to-speed-up-wordpress-part-1-plugins.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>I recently made some changes to my web site to try to speed up the loading time of my pages. After installing loads of WordPress plugins and other social networking widgets, my web site loading time became rather slow because of all the extra CSS and Javascript code that came with them.</p>
<p><strong>Where Can I Improve the Speed of My WordPress Web Site?</strong></p>
<p>There are 5 general areas where you could improve the performance of your WordPress web site:</p>
<ol>
<li>PHP code</li>
<li>HTML code</li>
<li>CSS code</li>
<li>Javascript code</li>
<li>MySQL database</li>
</ol>
<p>It would take a lot more than a single blog post for me to go through all of this in great detail. One of the easiest ways to speed up your WordPress is install a bunch of caching and &#8220;code minimizing&#8221; WordPress plugins.</p>
<p><strong>WordPress Plugins That Speed Up WordPress</strong></p>
<p>I tested the following WordPress plugins and measured the impact of the plugins on the loading times of my web site.</p>
<ol>
<li><a href="http://ocaoimh.ie/wp-super-cache/" rel="nofollow" >WP Super Cache</a> &#8211; Generates html files that are served directly by Apache without  processing comparatively heavy PHP scripts.</li>
<li><a href="http://omninoggin.com/wordpress-plugins/wp-minify-wordpress-plugin/" rel="nofollow" >WP Minify</a> &#8211; Combines and compresses Javascript and CSS files to improve page load time.</li>
<li><a href="http://www.ruhanirabin.com/wp-optimize/" rel="nofollow" >WP Optimize</a> &#8211; A database clean up and optimization tool that allows you to remove post revisions,  comments in the spam queue and unapproved comments.</li>
<li><a href="http://dialect.ca/code/wp-smushit/" rel="nofollow" >WP Smush.it</a> &#8211; Reduce image file sizes.</li>
<li><a href="http://www.poradnik-webmastera.com/projekty/db_cache_reloaded/" rel="nofollow" >DB Cache Reloaded</a> &#8211; Caches every MySQL database query to improve performance.</li>
<li><a href="http://www.mittineague.com/dev/co.php" rel="nofollow" >Clean Options</a> &#8211; Removed redundant database entries in the &#8220;wp_options&#8221; database table caused by uninstalled plugins and themes.</li>
</ol>
<p>The plugins above eliminate the need for you to edit source code or fiddle with images to reduce their sizes. This is a great start to optimizing your WordPress for speed but more improvements can be done by tweaking the source code of your PHP, Javascript and CSS files.</p>
<p><strong>Case Study: MaverickWebCreations.com Before WordPress Speed Optimization</strong></p>
<p>I should have disabled my WP Super Cache plugin before the test. What you&#8217;re seeing here is the effect of all the plugins above except for the WP Super Cache plugin.</p>
<p><img class="size-full wp-image-1381 alignnone" title="Speed Up WordPress - Before 1" src="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/speed-up-wordpress-before1.gif" alt="Speed Up WordPress - Before 1" width="614" height="402" /></p>
<p>This is a screen shot of the web page speed report I got at WebSiteOptimization.com. As you can see, I have 73 HTTP requests with a total page loading size of 881972 bytes or 861.30 kilobytes (KB). I am embarrassed that my web site got so big!</p>
<p><strong>Case Study: MaverickWebCreations.com After WordPress Speed  Optimization</strong></p>
<p><img class="alignnone size-full wp-image-1378" title="Speed Up WordPress - After 1" src="http://www.maverickwebcreations.com/wp-content/uploads/2010/06/speed-up-wordpress-after1.gif" alt="Speed Up WordPress - After 1" width="613" height="405" /></p>
<p>Previously, I had 73 HTTP requests and a total size of 881972 bytes or 861.30 KB. Now, I&#8217;ve got 52 HTTP requests and a total size of 694141 bytes or 677.87 KB. That&#8217;s a reduction of 21 HTTP requests and a 183.43 KB reduction in file size. That&#8217;s a nice 21.3% reduction in page size!</p>
<p>Your results will vary depending on how your web site is set up. Optimizing WordPress for speed was something I did not put a lot of emphasis on before I discovered how bad things can get over time. These plugins are relatively easy to install and configure. Give them a try and you will wonder how you got by without them for so long!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2010/06/10/how-to-speed-up-wordpress-part-1-plugins.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import/Export Posts from WordPress to WordPress</title>
		<link>http://www.maverickwebcreations.com/2009/11/26/importexport-posts-from-wordpress-to-wordpress.html</link>
		<comments>http://www.maverickwebcreations.com/2009/11/26/importexport-posts-from-wordpress-to-wordpress.html#comments</comments>
		<pubDate>Thu, 26 Nov 2009 06:03:12 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=1213</guid>
		<description><![CDATA[<p>I recently did an export of most of the posts of my internet marketing blog to this blog. It was quite simple actually. Simply click on the Tools -&#62; Export link on the left of the WordPress admin sidebar to export all the content from a WordPress blog to a&#8230; <a href="http://www.maverickwebcreations.com/2009/11/26/importexport-posts-from-wordpress-to-wordpress.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>I recently did an export of most of the posts of my internet marketing blog to this blog. It was quite simple actually. Simply click on the Tools -&gt; Export link on the left of the WordPress admin sidebar to export all the content from a WordPress blog to a XML file.</p>
<div class="ngg-galleryoverview" id="ngg-gallery-51-1213">
	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.maverickwebcreations.com/2009/11/26/importexport-posts-from-wordpress-to-wordpress.html?show=slide">
			[Show as slideshow]		</a>
	</div>
	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://www.maverickwebcreations.com/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=51&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	<!-- Thumbnails -->
	<div id="ngg-image-473" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/wordpress-to-wordpress/wordpress-to-wordpress1.jpg" title=" " class="thickbox" rel="set_51" >
								<img title="wordpress-to-wordpress1" alt="Import/Export Posts from WordPress to WordPress" src="http://www.maverickwebcreations.com/wp-content/gallery/wordpress-to-wordpress/thumbs/thumbs_wordpress-to-wordpress1.jpg" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-474" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/wordpress-to-wordpress/wordpress-to-wordpress2.jpg" title=" " class="thickbox" rel="set_51" >
								<img title="wordpress-to-wordpress2" alt="Import/Export Posts from WordPress to WordPress" src="http://www.maverickwebcreations.com/wp-content/gallery/wordpress-to-wordpress/thumbs/thumbs_wordpress-to-wordpress2.jpg" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-475" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/wordpress-to-wordpress/wordpress-to-wordpress3.jpg" title=" " class="thickbox" rel="set_51" >
								<img title="wordpress-to-wordpress3" alt="Import/Export Posts from WordPress to WordPress" src="http://www.maverickwebcreations.com/wp-content/gallery/wordpress-to-wordpress/thumbs/thumbs_wordpress-to-wordpress3.jpg" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-476" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/wordpress-to-wordpress/wordpress-to-wordpress4.jpg" title=" " class="thickbox" rel="set_51" >
								<img title="wordpress-to-wordpress4" alt="Import/Export Posts from WordPress to WordPress" src="http://www.maverickwebcreations.com/wp-content/gallery/wordpress-to-wordpress/thumbs/thumbs_wordpress-to-wordpress4.jpg" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-477" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/wordpress-to-wordpress/wordpress-to-wordpress5.jpg" title=" " class="thickbox" rel="set_51" >
								<img title="wordpress-to-wordpress5" alt="Import/Export Posts from WordPress to WordPress" src="http://www.maverickwebcreations.com/wp-content/gallery/wordpress-to-wordpress/thumbs/thumbs_wordpress-to-wordpress5.jpg" width="180" height="150" />
							</a>
		</div>
	</div>
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
</div>
<p>I had a feeling it would not be so easy but I thought it would be worth a try because I get to move the attachment, tags, comments and pages to my destination blog.</p>
<p>At my Maverick Web Creations&#8217; blog, I selected the Tools -&gt; Import link. I had to upload the XML file I got from the export to import the content. After the long wait, I could see that over 400 posts/pages were moved over!</p>
<p>The hard part was sorting out the categories and delete the unwanted posts/pages. I should have deleted the useless content before exporting/importing content from my previous WordPress blog to this WordPress blog. That would have saved me a lot of time.</p>
<div class="zemanta-pixie"><a href="http://reblog.zemanta.com/zemified/ab29d735-8990-4169-afbc-b5f6c94dc7f4/" rel="nofollow" class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" ><img class="zemanta-pixie-img" src="http://img.zemanta.com/reblog_b.png?x-id=ab29d735-8990-4169-afbc-b5f6c94dc7f4" alt="Reblog this post [with Zemanta]" title="Import/Export Posts from WordPress to WordPress" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2009/11/26/importexport-posts-from-wordpress-to-wordpress.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Customize the Google Friend Connect WordPress Plugin&#8217;s CSS &amp; Make It XHTML Compliant</title>
		<link>http://www.maverickwebcreations.com/2009/03/18/how-to-customize-the-google-friend-connect-wordpress-plugins-css-make-it-xhtml-compliant.html</link>
		<comments>http://www.maverickwebcreations.com/2009/03/18/how-to-customize-the-google-friend-connect-wordpress-plugins-css-make-it-xhtml-compliant.html#comments</comments>
		<pubDate>Wed, 18 Mar 2009 13:57:40 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[Friend Connect]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[XHTML]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=574</guid>
		<description><![CDATA[<p>This is a follow up to my previous post on <a href="http://www.maverickwebcreations.com/2009/03/17/how-to-install-the-google-friend-connect-wordpress-plugin.html">how to install the Google Friend Connect WordPress plugin</a>. This plugin by Google is really rough on the edges and it requires some tweaks for people concerned with the XHTML code and CSS design.</p>
<p><strong>Fixing the Google Friend Connect</strong>&#8230; <a href="http://www.maverickwebcreations.com/2009/03/18/how-to-customize-the-google-friend-connect-wordpress-plugins-css-make-it-xhtml-compliant.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.maverickwebcreations.com/wp-content/uploads/2009/03/google_friend_connect_diagram-299x300.gif" alt="Google Friend Connect" title="Google Friend Connect" width="299" height="300" class="alignright size-medium wp-image-577" />This is a follow up to my previous post on <a href="http://www.maverickwebcreations.com/2009/03/17/how-to-install-the-google-friend-connect-wordpress-plugin.html">how to install the Google Friend Connect WordPress plugin</a>. This plugin by Google is really rough on the edges and it requires some tweaks for people concerned with the XHTML code and CSS design.</p>
<p><strong>Fixing the Google Friend Connect WordPress Plugin&#8217;s XHTML Errors</strong></p>
<p>The Google Friend Connect WordPress Plugin has a few XHTML errors.</p>
<ul>
<li>It uses the &lt;br&gt; tag, which has been depreciated and the &lt;br /&gt; tag should be used instead.</li>
<li>It uses the &lt;b&gt; tag, which is depreciated and the &lt;strong&gt; tag should be used instead.</li>
<li>There is an unnecessary &lt;br&gt; tag in the fc_wp_comment_form() function. This may cause your comment form to look weird.</li>
<li>1 of the img tags does not have the closing />.
</ul>
<p>To fix these errors, you need to make the following changes.</p>
<p>Original code:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>144
145
146
147
148
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #0000ff;">'&lt;img align=&quot;left&quot; src=&quot;'</span> <span style="color: #339933;">+</span>  viewer<span style="color: #339933;">.</span>getField<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;thumbnailUrl&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot;&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;b&gt;Hello '</span> <span style="color: #339933;">+</span>  viewer<span style="color: #339933;">.</span>getField<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;displayName&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'!&lt;/b&gt;&lt;br&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;a href=&quot;#&quot; onclick=&quot;google.friendconnect.requestSettings()&quot;&gt;Settings&lt;/a&gt;&lt;br&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;a href=&quot;#&quot; onclick=&quot;google.friendconnect.requestInvite()&quot;&gt;Invite&lt;/a&gt;&lt;br&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;div id=&quot;loadprof&quot;&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>74
75
76
77
78
79
80
81
82
83
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">// The fc_wp_comment_form function
// This just creates a div tag that will be replaced by the javascript code
// when the page gets loaded
function fc_wp_comment_form() {
 ?&gt;
   &lt;br&gt;
   &lt;div id=&quot;profile&quot;&gt;
   &lt;/div&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>
<p>Edited code:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>144
145
146
147
148
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #0000ff;">'&lt;img align=&quot;left&quot; src=&quot;'</span> <span style="color: #339933;">+</span>  viewer<span style="color: #339933;">.</span>getField<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;thumbnailUrl&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; /&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;strong&gt;Hello '</span> <span style="color: #339933;">+</span>  viewer<span style="color: #339933;">.</span>getField<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;displayName&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'!&lt;/strong&gt;&lt;br /&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;a href=&quot;#&quot; onclick=&quot;google.friendconnect.requestSettings()&quot;&gt;Settings&lt;/a&gt;&lt;br /&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;a href=&quot;#&quot; onclick=&quot;google.friendconnect.requestInvite()&quot;&gt;Invite&lt;/a&gt;&lt;br /&gt;'</span> <span style="color: #339933;">+</span>
<span style="color: #0000ff;">'&lt;div id=&quot;loadprof&quot;&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>74
75
76
77
78
79
80
81
82
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">// The fc_wp_comment_form function
// This just creates a div tag that will be replaced by the javascript code
// when the page gets loaded
function fc_wp_comment_form() {
 ?&gt;
   &lt;div id=&quot;profile&quot;&gt;
   &lt;/div&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>
<ol>
<li>Replace all &lt;br&gt; tags with &lt;br /&gt;.</li>
<li>Replace all  &lt;b&gt; tags with &lt;strong&gt;.</li>
<li>Remove the  &lt;br&gt; tag in the fc_wp_comment_form() function on line 49.</li>
<li>Add a back slash to the &lt;img&gt; tag on line 150.</li>
</ol>
<p><strong>Editing the CSS of Google Friend Connect WordPress Plugin&#8217;s Sign In Box</strong></p>
<p>Original code:</p>
<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#profile</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">blue</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#E5ECF9</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>
<p>Edited code:</p>
<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#profile</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>
<p>This really depends on how you want the sign in box to look like. I hate the blue border and how it was aligned to the centre of the page. So I removed the border and margin/padding space.</p>
<p>You might also encounter CSS problems with the code below:</p>
<p>Original code:</p>
<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
body <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
h2 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#3366CC</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">&#125;</span>
h3 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">&#125;</span>
h4 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> grey<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">11px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">&#125;</span></pre></div></div>
<p>Google adds this code to your WordPress site whether you like it or not. This to me, is very sloppy coding from Google. They could have added classes instead of forcing all h2, h3, h4 tags to look the way they want it to. Lucky for me, I use CSS classes to control how my h2, h3 and h4 tags so I am not affected by this code. However, if you use a general h2, h3, h4 without any classes or IDs, then good luck!</p>
<p>Edited code:</p>
<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
body <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&nbsp;
h2 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#3366CC</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">18px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">&#125;</span>
h3 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">13px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">&#125;</span>
h4 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> grey<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">11px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">&#125;</span></pre></div></div>
<p>I found that it was okay for me to remove the body code and it did not affect the sign in box.</p>
<p>Hopefully we will see some improvements to Google&#8217;s plugin in the future. It is still rather buggy at the moment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2009/03/18/how-to-customize-the-google-friend-connect-wordpress-plugins-css-make-it-xhtml-compliant.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Install the Google Friend Connect WordPress Plugin</title>
		<link>http://www.maverickwebcreations.com/2009/03/17/how-to-install-the-google-friend-connect-wordpress-plugin.html</link>
		<comments>http://www.maverickwebcreations.com/2009/03/17/how-to-install-the-google-friend-connect-wordpress-plugin.html#comments</comments>
		<pubDate>Tue, 17 Mar 2009 11:17:09 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Friend Connect]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=559</guid>
		<description><![CDATA[<p>I am still very new to this <a href="http://www.google.com/friendconnect/" rel="nofollow" >Google Friend Connect</a> phenomenon. I decided to take a closer look at Google Friend Connect after reading <a href="http://googlingsocial.com/?p=189" rel="nofollow" >Chris Lang&#8217;s post about the Google Friend Connect WordPress plugin</a>. It seems like a new way to get traffic and&#8230; <a href="http://www.maverickwebcreations.com/2009/03/17/how-to-install-the-google-friend-connect-wordpress-plugin.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>I am still very new to this <a href="http://www.google.com/friendconnect/" rel="nofollow" >Google Friend Connect</a> phenomenon. I decided to take a closer look at Google Friend Connect after reading <a href="http://googlingsocial.com/?p=189" rel="nofollow" >Chris Lang&#8217;s post about the Google Friend Connect WordPress plugin</a>. It seems like a new way to get traffic and promote user participation on your web site.</p>
<p>Chris Lang&#8217;s instructions are pretty good but I plan to go deeper into the installation process to make it even easier for you. <a href="http://code.google.com/p/google-friend-connect-plugins/wiki/WordPressPlugin" rel="nofollow" >Google&#8217;s Friend Connect instructions</a> are horrible and they need to work on it as soon as possible before they put off more people from Google Friend Connect.</p>
<p><strong>Step 1: Join Google Friend Connect</strong></p>
<div class="ngg-galleryoverview" id="ngg-gallery-13-559">
	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.maverickwebcreations.com/2009/03/17/how-to-install-the-google-friend-connect-wordpress-plugin.html?show=slide">
			[Show as slideshow]		</a>
	</div>
	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://www.maverickwebcreations.com/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=13&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	<!-- Thumbnails -->
	<div id="ngg-image-64" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect1/google-friend-connect1.png" title=" " class="thickbox" rel="set_13" >
								<img title="google-friend-connect1.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect1/thumbs/thumbs_google-friend-connect1.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-75" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect1/google-friend-connect2.png" title=" " class="thickbox" rel="set_13" >
								<img title="google-friend-connect2.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect1/thumbs/thumbs_google-friend-connect2.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-81" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect1/google-friend-connect3.png" title=" " class="thickbox" rel="set_13" >
								<img title="google-friend-connect3.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect1/thumbs/thumbs_google-friend-connect3.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-82" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect1/google-friend-connect4.png" title=" " class="thickbox" rel="set_13" >
								<img title="google-friend-connect4.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect1/thumbs/thumbs_google-friend-connect4.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
</div>
<p>You need to have a Google account to add your web site to the Google Friend Connect database. I shall not go through the Google signup process. Once you have a Google account, click on the huge &#8220;Set up a new site&#8221; button to get started.</p>
<p><strong>Step 2: Set Up a New Site at Google Friend Connect</strong></p>
<div class="ngg-galleryoverview" id="ngg-gallery-14-559">
	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.maverickwebcreations.com/2009/03/17/how-to-install-the-google-friend-connect-wordpress-plugin.html?show=slide">
			[Show as slideshow]		</a>
	</div>
	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://www.maverickwebcreations.com/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=14&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	<!-- Thumbnails -->
	<div id="ngg-image-83" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect2/google-friend-connect5.png" title=" " class="thickbox" rel="set_14" >
								<img title="google-friend-connect5.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect2/thumbs/thumbs_google-friend-connect5.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-84" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect2/google-friend-connect6.png" title=" " class="thickbox" rel="set_14" >
								<img title="google-friend-connect6.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect2/thumbs/thumbs_google-friend-connect6.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-85" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect2/google-friend-connect7.png" title=" " class="thickbox" rel="set_14" >
								<img title="google-friend-connect7.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect2/thumbs/thumbs_google-friend-connect7.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-86" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect2/google-friend-connect8.png" title=" " class="thickbox" rel="set_14" >
								<img title="google-friend-connect8.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect2/thumbs/thumbs_google-friend-connect8.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-87" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect2/google-friend-connect9.png" title=" " class="thickbox" rel="set_14" >
								<img title="google-friend-connect9.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect2/thumbs/thumbs_google-friend-connect9.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
</div>
<ul>
<li>For WordPress sites, click on the &#8220;Friend Connect for standard web sites&#8221; link.</li>
<li>Click on the &#8220;Continue&#8221; link to skip the overview page.</li>
<li>Enter your web site&#8217;s title and URL and click on the &#8220;Continue&#8221; link.</li>
<li>Click on the &#8220;rpc_relay.html&#8221; button and save the file into your web site&#8217;s local  root folder.</li>
<li>Click on the &#8220;canvas.html&#8221; button and save the file into your web site&#8217;s local root folder.</li>
<li>Click on the &#8220;Continue&#8221; link to proceed to the next page.</li>
<li>Upload &#8220;rpc_relay.html&#8221; and &#8220;canvas.html&#8221; to your web site&#8217;s root folder on your web host.</li>
<li>Click on the &#8220;Test to finalize setup&#8221; button to complete your web site&#8217;s submission to Google Friend Connect!</li>
</ul>
<p><strong>Step 3: Download, Edit, Upload and Activate the Google Friend Connect WordPress Plugin</strong></p>
<div class="ngg-galleryoverview" id="ngg-gallery-15-559">
	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.maverickwebcreations.com/2009/03/17/how-to-install-the-google-friend-connect-wordpress-plugin.html?show=slide">
			[Show as slideshow]		</a>
	</div>
	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://www.maverickwebcreations.com/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=15&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	<!-- Thumbnails -->
	<div id="ngg-image-65" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/google-friend-connect10.png" title=" " class="thickbox" rel="set_15" >
								<img title="google-friend-connect10.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/thumbs/thumbs_google-friend-connect10.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-66" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/google-friend-connect11.png" title=" " class="thickbox" rel="set_15" >
								<img title="google-friend-connect11.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/thumbs/thumbs_google-friend-connect11.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-67" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/google-friend-connect12.png" title=" " class="thickbox" rel="set_15" >
								<img title="google-friend-connect12.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/thumbs/thumbs_google-friend-connect12.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-68" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/google-friend-connect13.png" title=" " class="thickbox" rel="set_15" >
								<img title="google-friend-connect13.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/thumbs/thumbs_google-friend-connect13.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-69" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/google-friend-connect14.png" title=" " class="thickbox" rel="set_15" >
								<img title="google-friend-connect14.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/thumbs/thumbs_google-friend-connect14.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-70" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/google-friend-connect15.png" title=" " class="thickbox" rel="set_15" >
								<img title="google-friend-connect15.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/thumbs/thumbs_google-friend-connect15.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-71" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/google-friend-connect16.png" title=" " class="thickbox" rel="set_15" >
								<img title="google-friend-connect16.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/thumbs/thumbs_google-friend-connect16.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-72" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/google-friend-connect17.png" title=" " class="thickbox" rel="set_15" >
								<img title="google-friend-connect17.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/thumbs/thumbs_google-friend-connect17.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-73" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/google-friend-connect18.png" title=" " class="thickbox" rel="set_15" >
								<img title="google-friend-connect18.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/thumbs/thumbs_google-friend-connect18.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-74" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/google-friend-connect19.png" title=" " class="thickbox" rel="set_15" >
								<img title="google-friend-connect19.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/thumbs/thumbs_google-friend-connect19.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-76" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/google-friend-connect20.png" title=" " class="thickbox" rel="set_15" >
								<img title="google-friend-connect20.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/thumbs/thumbs_google-friend-connect20.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-77" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/google-friend-connect21.png" title=" " class="thickbox" rel="set_15" >
								<img title="google-friend-connect21.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect3/thumbs/thumbs_google-friend-connect21.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
</div>
<p>This is the toughest part of the whole process. Google did not release a very user-friendly WordPress plugin. You will have to extract the plugin files into a specific folder, edit the source code and upload the plugin files before it will work.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>40
41
42
43
44
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Please modify the following function to return a value that</span>
<span style="color: #666666; font-style: italic;">// you obtain after registering your site with FriendConnect</span>
<span style="color: #000000; font-weight: bold;">function</span> fc_get_site_id <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'14868846668007632003'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>109
110
111
112
113
114
115
116
117
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;!-- Initialize the Google Friend Connect OpenSocial API. --&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
   var SITE_ID = &quot;<span style="color: #000000; font-weight: bold;">&lt;?</span><span style="color: #b1b100;">echo</span> fc_get_site_id<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;
   google.friendconnect.container.setParentUrl('/' /* location of rpc_relay.html and canvas.html */);
   google.friendconnect.container.initOpenSocialApi({
   site: SITE_ID,
   onload: function(securityToken) { initAllData(securityToken); }
  });
&lt;/script&gt;</pre></td></tr></table></div>
<ul>
<li>Click on the &#8220;Plugins&#8221; link on your Google Friend Connect page.</li>
<li>Click on the &#8220;WordPress&#8221; link.</li>
<li>Click on the &#8220;Downloads&#8221; tab of the Google Code page.</li>
<li>Click on the &#8220;wordpress.zip&#8221; file to download it to your computer.</li>
<li>Create a folder with the name &#8220;fc_plugin&#8221; in your web site&#8217;s local &#8220;wp-content/plugins/&#8221;.</li>
<li>Extract the files in the &#8220;src&#8221; folder of &#8220;wordpress.zip&#8221; into the new &#8220;fc_plugin&#8221; folder.</li>
<li>Open the file &#8220;fc_plugin.php&#8221; with your favourite HTML editor.</li>
<li>Go to line 43. It should have something like return &#8216;XXXXXX&#8217;, where &#8216;XXXXXX&#8217; is the default Site ID number Google added into the file.</li>
<li>Get your site ID by checking out your address bar when you are browsing your Google Friend Connect page. There should be something like &#8220;id=xxxxxx&#8221;. The numbers after the &#8220;id=&#8221; is your Site ID. I have not idea why Google does not display this prominently in the Google Friend Connect area.</li>
<li>Replace the Site ID in &#8220;fc_plugin.php&#8221; with your Site ID.</li>
<li>Go to line 112. Remove everything in the bracket and leave only &#8216;/&#8217;. This is for letting the plugin know your 2 HTML files are in the root folder.</li>
<li>Upload the &#8220;fc_plugin&#8221; folder to your web site&#8217;s &#8220;wp-content/plugins&#8221; folder on your web host.</li>
<li>Activate the plugin at your WordPress plugins page.</li>
</ul>
<p><strong>Step 4: Test the Google Friend Connect WordPress Plugin</strong></p>
<div class="ngg-galleryoverview" id="ngg-gallery-16-559">
	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.maverickwebcreations.com/2009/03/17/how-to-install-the-google-friend-connect-wordpress-plugin.html?show=slide">
			[Show as slideshow]		</a>
	</div>
	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://www.maverickwebcreations.com/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=16&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	<!-- Thumbnails -->
	<div id="ngg-image-78" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect4/google-friend-connect22.png" title=" " class="thickbox" rel="set_16" >
								<img title="google-friend-connect22.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect4/thumbs/thumbs_google-friend-connect22.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<div id="ngg-image-79" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect4/google-friend-connect23.png" title=" " class="thickbox" rel="set_16" >
								<img title="google-friend-connect23.png" alt="How to Install the Google Friend Connect WordPress Plugin" src="http://www.maverickwebcreations.com/wp-content/gallery/google-friend-connect4/thumbs/thumbs_google-friend-connect23.png" width="180" height="150" />
							</a>
		</div>
	</div>
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
</div>
<p>You should see a Google Friend Connect sign in box at the comment box of every single post. Try signing in and posting a comment to see if it works. It it works, then you&#8217;ve done everything right. If it doesn&#8217;t, check out line 43 and 112 to see if you entered the right code.</p>
<p><strong>Problems with the Google Friend Connect WordPress Plugin</strong></p>
<p>I am not sure how to edit the positioning and design of the sign in box. It looks pretty ugly at the moment. This plugin adds a lot of extra CSS code to your web site, which may mess up your web site&#8217;s design. I will post a tutorial on how to edit the Google Friend Connect WordPress plugin once I have figured out how to do it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2009/03/17/how-to-install-the-google-friend-connect-wordpress-plugin.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
