<?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>image &#8211; Thesis Docs</title>
	<atom:link href="https://diythemes.com/thesis/rtfm/tag/image/feed/" rel="self" type="application/rss+xml" />
	<link>https://diythemes.com/thesis/rtfm</link>
	<description>Documentation, How-tos, and Best Practices for the Thesis WordPress Theme System</description>
	<lastBuildDate>Wed, 28 Aug 2019 16:47:35 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>
	<item>
		<title>Retrieve Post Image or Thumbnail</title>
		<link>https://diythemes.com/thesis/rtfm/retrieve-post-image-thumbnail/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Wed, 10 Feb 2010 16:07:28 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[post images]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[thumbnails]]></category>
		<guid isPermaLink="false">https://diythemes.com/answers/?p=672</guid>

					<description><![CDATA[Code snippet to retrieve the post image or thumbnail.]]></description>
										<content:encoded><![CDATA[<p>Code snippet to retrieve the post image or thumbnail (renders default output):</p>
<pre class="php">
// Post Image

$post_image = thesis_post_image_info('image');
echo $post_image['output'];

// Thumbnail

$post_image = thesis_post_image_info('thumb');
echo $post_image['output'];
</pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Aspect Ratios for Image Rotator</title>
		<link>https://diythemes.com/thesis/rtfm/aspect-ratios-image-rotator/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Tue, 01 Dec 2009 18:20:01 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<category><![CDATA[aspect]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[image box]]></category>
		<category><![CDATA[ratio]]></category>
		<category><![CDATA[rotator]]></category>
		<category><![CDATA[size]]></category>
		<guid isPermaLink="false">https://diythemes.com/answers/?p=547</guid>

					<description><![CDATA[A list of the image aspect ratios which work best with the Thesis rotator.]]></description>
										<content:encoded><![CDATA[<p>To ensure the best results when adding your own images to the <code>/custom/rotator</code> folder, make sure they fit into one of the following aspect ratios:</p>
<ul class="aspect">
<li><strong>1:1</strong> <span class="range">from 0.9950 to 1.0050</span></li>
<li><strong>1:2</strong> <span class="range">from 0.4980 to 0.5020</span></li>
<li><strong>2:1</strong> <span class="range">from 1.9810 to 2.0190</span></li>
<li><strong>2:3</strong> <span class="range">from 0.6587 to 0.6746</span></li>
<li><strong>3:2</strong> <span class="range">from 1.4737 to 1.5273</span></li>
<li><strong>3:4</strong> <span class="range">from 0.7412 to 0.7590</span></li>
<li><strong>4:3</strong> <span class="range">from 1.3125 to 1.3548</span></li>
<li><strong>4:5</strong> <span class="range">from 0.7925 to 0.8077</span></li>
<li><strong>5:4</strong> <span class="range">from 1.2353 to 1.2651</span></li>
<li><strong>9:16</strong> <span class="range">from 0.5558 to 0.5693</span></li>
<li><strong>16:9</strong> <span class="range">from 1.7406 to 1.8166</span></li>
</ul>
<p>To compute the aspect ratio of your image, divide the width by the height. For example, an image which is 420px wide by 280px high has an aspect ratio of 3:2:</p>
<p><code>420 &divide; 280 = 1.5 = <strong>3:2</strong></code></p>
<h3 id="calculator">Aspect Ratio Calculator <a href="#calculator" title="Link to this section">∞</a></h3>
<style type="text/css">
#calculator input[type="text"] {
    background-color: #fff;
    padding:0.308em; 
    width:10%;
}
#calculator input[type="submit"] {
    font-size:1em;
    padding:0.308em; 
    margin-left:1em;
    width:10%;
}
#calculator label {
    padding:0.508em; 
    width:20%;
}
pre#result {
	font-size:1.5em;
	background-color: #fff;
	color: #9B0505;
	border:none;
	padding-left:3em;
}
</style>
<p>If you&#8217;re having some trouble figuring out your image&#8217;s ratio &#8211; or you just never got over your dislike of math! &#8211; try out our handy calculator.</p>
<p>Enter the width and height of your image, and the calculator will tell you which Thesis Aspect Ratio your image matches (or, if your image&#8217;s size is not supported, you&#8217;ll get a message to that effect instead).</p>
<form id="calculator" onSubmit="return displayRatio();">
<label for="width" class="width">Width</label>
<input type="text" id="width" />
<label for="height" class="height">Height</label>
<input type="text" id="height" />
<input type="submit" class="form_submit" value="Calculate" />
</form>
<pre id="result"></pre>]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Add Post Image Attribution</title>
		<link>https://diythemes.com/thesis/rtfm/add-post-image-attribution/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Mon, 03 Aug 2009 16:03:15 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<category><![CDATA[attribution]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[source]]></category>
		<guid isPermaLink="false">https://diythemes.com/answers/?p=473</guid>

					<description><![CDATA[An easy way to add an attribution link to posts which include Post Images.]]></description>
										<content:encoded><![CDATA[<p>On the <strong>Edit post</strong> panel, at the bottom of the <em>Custom Fields</em> section, click &#8220;Enter new&#8221;.</p>
<p>In the &#8220;Name&#8221; field, type <code>image_source</code>, and in the &#8220;Value&#8221; field, paste the URL you wish to use to link to as the attribution/source.</p>
<p>Click the &#8220;Add Custom Field&#8221; button; and then the &#8220;Publish/Update Post&#8221; button.</p>
<p>Then, place this code in <code>custom_functions.php</code>:</p>
<pre>
function image_source() {
global $post;
$source = get_post_meta($post-&gt;ID, 'image_source', true);
  if ($source)
    echo '&lt;p&gt;&lt;a href=&quot;' . $source . '&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Image Source&lt;/a&gt;&lt;/p&gt;';
}

add_action('thesis_hook_after_post','image_source');
</pre>
<p>Note: After the first time you add the <code>image_source</code> custom field to a post, you&#8217;ll then be able to simply choose it from the drop down selector under &#8220;Add new custom field&#8221;, rather than having to choose &#8220;Enter new&#8221; again.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Style Widgets</title>
		<link>https://diythemes.com/thesis/rtfm/style-widgets/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Tue, 07 Jul 2009 16:55:51 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<category><![CDATA[h3]]></category>
		<category><![CDATA[headings]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[widgets]]></category>
		<guid isPermaLink="false">https://diythemes.com/answers/?p=447</guid>

					<description><![CDATA[<ul>
<li>Apply Styles to All Widgets</li>
<li>Apply Styles to Individual Widgets</li>
<li>Style Archive Drop Down Widget</li>
<li>Specify Image as Heading</li>
</ul>]]></description>
										<content:encoded><![CDATA[<h3 id="all_widgets">Apply Styles to All Widgets <a href="#all_widgets" title="Link to this section">∞</a></h3>
<p>Standard Widgets all receive the class of <code>.widget</code> assigned to them, so this can be used whenever you want to apply the same styles to every widget. Here are some examples:</p>
<pre class="css">
/* Make all widget headings red */
.custom .widget h3 {
   color: red;
}

/* Specify bottom padding on all widgets */
.custom li.widget {
   padding-bottom: 15px;
}

/* Specify bottom margin on all widgets */
.custom li.widget {
   margin-bottom: 2.769em;
}
</pre>
<h3 id="individual_widgets">Apply Styles to Individual Widgets <a href="#individual_widgets" title="Link to this section">∞</a></h3>
<p>To style individual widgets, first determine their unique class or ID by viewing the source code of a page on your site (or using FireBug). For example, here&#8217;s the opening code for the Categories widget on the Answers blog:</p>
<pre class="html">
&lt;li class=&quot;widget widget_categories&quot; id=&quot;categories-411758441&quot;&gt;&lt;h3&gt;Categories&lt;/h3&gt;
</pre>
<p>So, to style that specific widget, we can reference it like this in custom.css:</p>
<pre class="css">
.custom li.widget_categories h3 {
   color: green;
}
</pre>
<p>Or, we could alternatively use the unique ID:</p>
<pre class="css">
.custom li#categories-411758441.widget h3 {
   color: green;
}
</pre>
<p>The ID method is particularly useful when you have multiple text widgets on the page, and need to distinguish between each one. Here&#8217;s an example of the opening code for a text widget:</p>
<pre class="html">
&lt;li class=&quot;widget widget_text&quot; id=&quot;text-280006071&quot;&gt;&lt;h3&gt;Random Text Widget&lt;/h3&gt;
</pre>
<p>So, to style that text widget in custom.css, we&#8217;d use this:</p>
<pre class="css">
.custom li#text-280006071.widget h3 {
   color: yellow;
}
</pre>
<h3 id="archive_dropdown">Style Archive Drop Down Widget <a href="#archive_dropdown" title="Link to this section">∞</a></h3>
<p>Place this code in <code>custom.css</code>, and adjust to your requirements:</p>
<pre class="css">
.custom li.widget_archive select {
   border: 1px solid red;
   color: blue;
   font-size: 1.5em;
}
</pre>
<h3 id="image_heading">Specify Image as Heading <a href="#image_heading" title="Link to this section">∞</a></h3>
<p>This is an example using the ID of the Random Text Widget from above:</p>
<pre class="css">
.custom li#text-280006071.widget h3 {
   height: 46px;
   background: url(images/twitter.png) no-repeat;
   text-indent: -9999px;
}
</pre>
<p>Note that the image is being stored in the <code>custom/images/</code> folder.</p>
<p>Also, remember that you&#8217;ll still need to determine the unique class or ID for each widget, as noted under <a href="#individual_widgets" title="Apply Styles to Individual Widgets">Apply Styles to Individual Widgets</a>, and use it in the selector name in your CSS rule.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
