<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: How to leverage the Theme Customizer in your own themes</title>
	<atom:link href="http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/feed/" rel="self" type="application/rss+xml" />
	<link>http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/</link>
	<description>You have to use an Ottopress to get fresh squeezed Otto.</description>
	<lastBuildDate>Fri, 17 May 2013 22:57:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6-beta3-24284</generator>
	<item>
		<title>By: Josh Pollock</title>
		<link>http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/comment-page-3/#comment-11805</link>
		<dc:creator>Josh Pollock</dc:creator>
		<pubDate>Thu, 25 Apr 2013 03:32:41 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=789#comment-11805</guid>
		<description><![CDATA[Has anyone ever figured out a simple way to create a setting to add classes to a container when a check box control is checked? I&#039;m trying to come up with a way to add push and pull classes to my main content area and sidebar to swap the sidebar from left to right. The best I&#039;ve come up with so far is to add a script that uses jQuery append() to add them the push pull classes where needed and wrap the enqueue for that script in a conditional statement that checks if a that checkbox is checked. That seems like an awfully complicated method though...]]></description>
		<content:encoded><![CDATA[<p>Has anyone ever figured out a simple way to create a setting to add classes to a container when a check box control is checked? I&#8217;m trying to come up with a way to add push and pull classes to my main content area and sidebar to swap the sidebar from left to right. The best I&#8217;ve come up with so far is to add a script that uses jQuery append() to add them the push pull classes where needed and wrap the enqueue for that script in a conditional statement that checks if a that checkbox is checked. That seems like an awfully complicated method though&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aside &#124; Evan&#039;s Doc</title>
		<link>http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/comment-page-3/#comment-11800</link>
		<dc:creator>Aside &#124; Evan&#039;s Doc</dc:creator>
		<pubDate>Tue, 23 Apr 2013 06:56:55 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=789#comment-11800</guid>
		<description><![CDATA[[...] Theme and plugin developers interested in adding new options to a theme&#8217;s Theme Customization page should see the documentation on the Theme Customization API. Additional tutorials on the Theme Customization API are available at theOttopress.com website. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Theme and plugin developers interested in adding new options to a theme&#8217;s Theme Customization page should see the documentation on the Theme Customization API. Additional tutorials on the Theme Customization API are available at theOttopress.com website. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vail</title>
		<link>http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/comment-page-2/#comment-11760</link>
		<dc:creator>vail</dc:creator>
		<pubDate>Thu, 11 Apr 2013 12:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=789#comment-11760</guid>
		<description><![CDATA[You would need 3 options for these, with a setting and control each, so one for the headings link color, one for the menu background, and one for the menu links. Then in your javascript section, you have three items for each defining the selectors, ie:
[php]
                wp.customize(&#039;my_navigation_hover&#039;,function( value ) {
			value.bind(function(to) {
				jQuery(&#039;ul#nav li a&#039;).css({&#039;color&#039;: to});
			});
		});
[/php]

When building your style.php, you can use multiple selectors at once per normal practice:
[php]
h1, h2, h3{color:&lt;?php echo get_option(&#039;my_title_color&#039;); ?&gt;;}
[/php]]]></description>
		<content:encoded><![CDATA[<p>You would need 3 options for these, with a setting and control each, so one for the headings link color, one for the menu background, and one for the menu links. Then in your javascript section, you have three items for each defining the selectors, ie:</p>
<pre class="brush: php; title: ; notranslate">
                wp.customize('my_navigation_hover',function( value ) {
			value.bind(function(to) {
				jQuery('ul#nav li a').css({'color': to});
			});
		});
</pre>
<p>When building your style.php, you can use multiple selectors at once per normal practice:</p>
<pre class="brush: php; title: ; notranslate">
h1, h2, h3{color:&lt;?php echo get_option('my_title_color'); ?&gt;;}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hassan</title>
		<link>http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/comment-page-3/#comment-11759</link>
		<dc:creator>Hassan</dc:creator>
		<pubDate>Thu, 11 Apr 2013 08:47:28 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=789#comment-11759</guid>
		<description><![CDATA[Otto I&#039;m wondering does the WP_Customize_Image_Control stores other information about the image as well? Width and height maybe?]]></description>
		<content:encoded><![CDATA[<p>Otto I&#8217;m wondering does the WP_Customize_Image_Control stores other information about the image as well? Width and height maybe?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A Guide To The Options For WordPress Theme Development - Wordpress Premium Themes &#38; Tutorials</title>
		<link>http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/comment-page-3/#comment-11755</link>
		<dc:creator>A Guide To The Options For WordPress Theme Development - Wordpress Premium Themes &#38; Tutorials</dc:creator>
		<pubDate>Mon, 08 Apr 2013 23:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=789#comment-11755</guid>
		<description><![CDATA[[...] For more information, take a look at Otto on WordPress’ video tutorial or guide to integrating the theme customizer into your own themes. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] For more information, take a look at Otto on WordPress’ video tutorial or guide to integrating the theme customizer into your own themes. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A Guide To The Options For WordPress Theme Development</title>
		<link>http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/comment-page-3/#comment-11749</link>
		<dc:creator>A Guide To The Options For WordPress Theme Development</dc:creator>
		<pubDate>Sun, 07 Apr 2013 08:57:54 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=789#comment-11749</guid>
		<description><![CDATA[[...] For more information, take a look at Otto on WordPress&#8217; video tutorial or guide to integrating the theme customizer into your own themes. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] For more information, take a look at Otto on WordPress&rsquo; video tutorial or guide to integrating the theme customizer into your own themes. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Custom Controls in WP Admin &#124; prakashmca007</title>
		<link>http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/comment-page-3/#comment-11738</link>
		<dc:creator>Custom Controls in WP Admin &#124; prakashmca007</dc:creator>
		<pubDate>Sat, 30 Mar 2013 06:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=789#comment-11738</guid>
		<description><![CDATA[[...] (Hey WP core developers, customise is spelled with a damn s!) it yet. All I could find was this description of the beta version. Also there doesn’t seem to be an API yet, it must be coming in a [...]]]></description>
		<content:encoded><![CDATA[<p>[...] (Hey WP core developers, customise is spelled with a damn s!) it yet. All I could find was this description of the beta version. Also there doesn’t seem to be an API yet, it must be coming in a [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Considering Various Approaches: A Guide To WordPress Theme Options &#124; Boxx Media</title>
		<link>http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/comment-page-3/#comment-11726</link>
		<dc:creator>Considering Various Approaches: A Guide To WordPress Theme Options &#124; Boxx Media</dc:creator>
		<pubDate>Mon, 25 Mar 2013 12:13:07 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=789#comment-11726</guid>
		<description><![CDATA[[...] For more information, take a look at Otto on WordPress’ video tutorial or guide to integrating the theme customizer into your own themes. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] For more information, take a look at Otto on WordPress’ video tutorial or guide to integrating the theme customizer into your own themes. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Otto</title>
		<link>http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/comment-page-3/#comment-11699</link>
		<dc:creator>Otto</dc:creator>
		<pubDate>Thu, 14 Mar 2013 14:42:51 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=789#comment-11699</guid>
		<description><![CDATA[I wrote that when it was still in beta, it changed before final release.]]></description>
		<content:encoded><![CDATA[<p>I wrote that when it was still in beta, it changed before final release.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/comment-page-3/#comment-11696</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Thu, 14 Mar 2013 10:10:22 +0000</pubDate>
		<guid isPermaLink="false">http://ottopress.com/?p=789#comment-11696</guid>
		<description><![CDATA[Hi Otto,
In the line &lt;code&gt;$(&#039;.posttitle&#039;).css(&#039;color&#039;, to ? &#039;#&#039; + to : &#039;&#039; );&lt;/code&gt;, you add a # to the color value. I couldn&#039;t make the code work, and realised it is because WP already returns the hex value prefixed with a #. The line works if I change it to &lt;code&gt;$(&#039;.posttitle&#039;).css(&#039;color&#039;, to ? to : &#039;&#039; );&lt;/code&gt;. Hope that helps people!]]></description>
		<content:encoded><![CDATA[<p>Hi Otto,<br />
In the line <code>$('.posttitle').css('color', to ? '#' + to : '' );</code>, you add a # to the color value. I couldn&#8217;t make the code work, and realised it is because WP already returns the hex value prefixed with a #. The line works if I change it to <code>$('.posttitle').css('color', to ? to : '' );</code>. Hope that helps people!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Object Caching 416/446 objects using xcache

 Served from: ottodestruct.com @ 2013-05-19 09:51:25 by W3 Total Cache -->