<?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>Thoughts on WordPress &#187; Accordion</title>
	<atom:link href="http://wp.michaelwalsh.org/tag/accordion/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.michaelwalsh.org</link>
	<description>Stuff of interest to me for WordPress developers</description>
	<lastBuildDate>Thu, 11 Mar 2010 03:13:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery, jQueryUI, jQuery UI widgets and theme options</title>
		<link>http://wp.michaelwalsh.org/2009/09/09/jquery-jqueryui-jquery-ui-widgets-and-theme-options/</link>
		<comments>http://wp.michaelwalsh.org/2009/09/09/jquery-jqueryui-jquery-ui-widgets-and-theme-options/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 19:25:57 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[Accordion]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery UI]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://wp.michaelwalsh.org/2009/09/09/jquery-jqueryui-jquery-ui-widgets-and-theme-options/</guid>
		<description><![CDATA[Over the past few days I have been dinking around with jQuery, in particular some of the jQuery UI widgets.&#160; I am working on a revamp of a LEGO WordPress theme and I wanted to allow the theme to support multiple color schemes and custom headers.&#160; This is a learning project for some other themes [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past few days I have been dinking around with <a href="http://www.jquery.com">jQuery</a>, in particular some of the <a href="http://www.jqueryui.com">jQuery UI</a> widgets.&#160; I am working on a revamp of a LEGO WordPress theme and I wanted to allow the theme to support multiple color schemes and custom headers.&#160; This is a learning project for some other themes I want to update (e.g. Swim Team and Soccer).</p>
<p>For the header I wanted the user to select 1-3 images from the media library to use in the header.&#160; I also wanted to allow some styling control over the blog title and tagline and lastly choose a color scheme from a selection of 10-12 choices.&#160; All of this information would make for a very busy theme options page so I decided to make use of the <a href="http://jqueryui.com/demos/accordion/">jQuery UI Accordion widget</a> to logically group information into sections.</p>
<p>My theme development area was still running on WordPress 2.7.1 which includes jQuery 1.6 which is not the most recent version.&#160; I should have upgraded WordPress before embarking on my Accordion experiments, I would have saved myself a bunch of time!</p>
<p>As it turns out, Accordion isn’t shipped with WordPress so I have to download it and install it as part of my theme and then load it.&#160; This isn’t a big deal, there are lots of posts across numerous blogs that explain how to load Javascript correctly.&#160; No matter what I did, I couldn’t get it to work.&#160; I played around with jQuery UI Accordion and half a dozen similar solutions trying to get it to work but I could only get one solution partially working.&#160; In the end, I decided to try updating WordPress and start with the latest and greatest.</p>
<p>What do you know?&#160; My Accordion worked perfectly!&#160; So after wasting the better part of two days trying to work with what I had installed, simply updating WordPress was the right answer.&#160; I think the real change was in the jQuery UI ui-core component as at one point I had Accordion working in the older version but only when I loaded the custom packed jQuery download.&#160; When I loaded just the Accordion source file it wouldn’t work.&#160; The custom packed file included something out of jQuery UI ui-core, what I don’t know but it made a difference.&#160; When I looked at the jQuery code in the 2.8.4 release I noticed the ui-core component also had this function where as the 2.7.1 did not.&#160; So something was definitely different and it make a big difference.</p>
<p>Now that I have the Accordion working I am back to making progress on my theme options page.&#160;&#160; I have played with jQuery just a bit, this is the first real jQuery application I have worked on.&#160; It is pretty powerful, I can see why it has gotten so much traction.</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.michaelwalsh.org/2009/09/09/jquery-jqueryui-jquery-ui-widgets-and-theme-options/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

