<?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>Thesis Docs</title>
	<atom:link href="https://diythemes.com/thesis/rtfm/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>Sun, 06 Oct 2019 15:46:53 +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>Display the Excerpt on Home Page</title>
		<link>https://diythemes.com/thesis/rtfm/display-excerpt-home-page/</link>
		
		<dc:creator><![CDATA[Chris Pearson]]></dc:creator>
		<pubDate>Thu, 15 Nov 2012 17:53:05 +0000</pubDate>
				<category><![CDATA[Thesis 2]]></category>
		<guid isPermaLink="false">https://diythemes.com/thesis/rtfm/?p=9987</guid>

					<description><![CDATA[This tutorial was originally written for Thesis 2.0. As of Thesis 2.1, the information contained on this page is deprecated. Go to Skin Editor &#8594; HTML. Make sure your Home template is displaying (if not, then click the name of the currently displayed template to access the Template Manager, and then click &#8220;Home&#8221; to select [&#8230;]]]></description>
										<content:encoded><![CDATA[<p class="alert">This tutorial was originally written for Thesis 2.0. As of Thesis 2.1, the information contained on this page is <strong>deprecated</strong>.</p>
<ol>
<li>Go to <strong>Skin Editor</strong> &rarr; <strong>HTML</strong>.</li>
<li>Make sure your <strong>Home</strong> template is displaying (if not, then click the name of the currently displayed template to access the Template Manager, and then click &#8220;Home&#8221; to select it).</li>
<li>Within the <strong>WP Loop</strong> box, locate the <strong>Post Box</strong>; hover over this box until the plus sign appears to its right, then click that to expand the box.</li>
<li>Click <strong>show tray &darr;</strong> to view the list of dependent Boxes.</li>
<li>Click <strong>Post Box &#8594; Excerpt</strong> to add it to the active area of the <strong>Post Box</strong>; then drag it into your preferred location within that Box.</li>
<li>Use shift+drag to remove <strong>Post Box &#8594; Content</strong> from the template (by dropping it into the gray box on the top right side of the screen).</li>
<li>Click <strong>Save Template</strong> to save your changes.</li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Create an Archives Page (Template + Box)</title>
		<link>https://diythemes.com/thesis/rtfm/create-archives-page-template-box/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Mon, 12 Nov 2012 14:27:45 +0000</pubDate>
				<category><![CDATA[Thesis 2]]></category>
		<guid isPermaLink="false">https://diythemes.com/thesis/rtfm/?p=3460</guid>

					<description><![CDATA[An Archives Page displays a summary of the available archives on your site (i.e., a list of all your monthly archives by month, a list of all your category archives by category, and so on). Install the Templates Listing Box ∞ Download tc_archives_page_listing.zip. Upload the .zip file via Thesis > Boxes > Select Boxes > [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>An Archives Page displays a summary of the available archives on your site (i.e., a list of all your monthly archives by month, a list of all your category archives by category, and so on).</p>
<h3 id="install_box">Install the Templates Listing Box <a href="#install_box" title="Link to this section">∞</a></h3>
<ol>
<li>Download <code>tc_archives_page_listing.zip</code>.</li>
<li>Upload the <code>.zip</code> file via <strong>Thesis > Boxes > Select Boxes > Upload Box</strong>.</li>
<li>Once the box has been uploaded and appears in the list of available boxes, select its checkbox and then click <strong>Save Boxes</strong>.</li>
</ol>
<h3 id="create_template">Create the Archives Page Template <a href="#create_template" title="Link to this section">∞</a></h3>
<ol>
<li>Go to <strong>Skin Editor > HTML</strong>.</li>
<li>Click <strong>Home</strong> (i.e., the name of the currently displayed template) to access the Template Manager (<a href="http://f.cl.ly/items/2Z0Q1v2x15373D3B3N1n/select_template.png">screenshot</a>), then click <strong>Add New</strong>.</li>
<li>Enter &#8220;Archives Page&#8221; as the <code>New Template Name</code>, then click <strong>Create Template</strong> (you&#8217;ll be redirected to the new template after it&#8217;s been created).</li>
<li>Click <strong>Archives Page</strong>, then select <code>Page</code> in the <em>Copy from Template</em> drop down menu.</li>
<li>Click <strong>Copy Template</strong>, then click <strong>OK</strong> in the confirmation pop-up window.</li>
<li>Using shift+drag, add the <code>Archives Page Listing</code> box to the Archives template, so that it is located inside the <code>Post Box</code> (<a href="http://f.cl.ly/items/0o130J2i3k2U2l2V471C/archives_template_80735.jpg">example screenshot</a>).
<li>Using shift+drag, remove the <code>Post Box → Content</code> box from the template.
<li>Save the template.</li>
</ol>
<h3 id="create_page">Create the Archives Page <a href="#create_page" title="Link to this section">∞</a></h3>
<ol>
<li>Go to <strong>Pages > Add New</strong>.</li>
<li>Give a title to the Page (such as <em>Archives</em>).</li>
<li>Under <em>Thesis Skin Custom Template</em>, choose <code>Archives Page</code> from the drop down menu.</li>
<li>Publish the Page.</li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Make Two-Column Teasers Using the Query Box</title>
		<link>https://diythemes.com/thesis/rtfm/how-to-make-teasers-query-box/</link>
		
		<dc:creator><![CDATA[godhammer]]></dc:creator>
		<pubDate>Sat, 27 Oct 2012 23:30:55 +0000</pubDate>
				<category><![CDATA[Thesis 2]]></category>
		<guid isPermaLink="false">https://diythemes.com/thesis/rtfm/?p=3400</guid>

					<description><![CDATA[This User Guide entry was originally written for Thesis 2.0. In Thesis 2.1, this tutorial is recommended only for those using a Static Front Page. Using &#8220;teasers&#8221; was a popular configuration in earlier versions of the Thesis theme. Teasers consist of several things: the title of a post, the author and date byline, an excerpt [&#8230;]]]></description>
										<content:encoded><![CDATA[<p class="alert">This User Guide entry was originally written for Thesis <strong>2.0</strong>. In Thesis <strong>2.1</strong>, this tutorial is recommended only for those using a <strong>Static Front Page</strong>.</p>
<p>Using &#8220;teasers&#8221; was a popular configuration in earlier versions of the Thesis theme.</p>
<p>Teasers consist of several things: the title of a post, the author and date byline, an excerpt of the post, and a &#8220;thumbnail&#8221; image assigned to the post.</p>
<p>By default, Thesis teasers were &#8220;two across&#8221; &#8212; there were two teasers per horizontal row.  CSS changes could also create &#8220;teasers one across&#8221; &#8212; one teaser per row.</p>
<p>While teasers are not a default display type in Thesis 2.0, they can be created using the flexibility and ease of the 2.0 interface &#8212; no PHP needed!</p>
<p>How?  Let&#8217;s build some &#8220;teasers&#8221; in Thesis 2.0 &#8212; in fact, let&#8217;s get teasers in both one- and two-column formats, where the only difference is one line of basic CSS.</p>
<h2>Two Different Teaser Layouts</h2>
<p>Before we get too deep into this, let&#8217;s set a &#8220;before&#8221; and &#8220;after&#8221; goal.  Before the addition of teasers, we&#8217;ll presume a single &#8220;full&#8221; post on the home page.</p>
<p>First we&#8217;ll build a set of teasers using the Thesis wp_query box, and then we&#8217;ll examine the differences between one-column and two-column teasers.</p>
<p>First up, the &#8220;before&#8221; picture &#8212; this is a Thesis 2.0 site running the &#8220;Classic&#8221; skin:</p>
<p><a href="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-001-large.png"><img fetchpriority="high" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-001.png" alt="Thesis 2.0 Site with no Teasers" width="300" height="315" class="aligncenter" /></a></p>
<p>Below is a &#8220;one-across&#8221; teaser layout, complete with thumbnails.  While &#8220;taller&#8221; vertically than a two-column teaser layout, usability studies suggest that &#8220;teasers&#8221; in a one-per-line format are minimally disruptive to eye-scanning down the page.</p>
<p><a href="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-002-large.png"><img decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-002.png" alt="Thesis 2.0 Site with One Across per Row Teasers and Thumbnails" width="300" height="614" class="aligncenter" /></a></p>
<p>Finally, we have a two-column teaser layout.  More compact than one-across, in part because the third teaser has been removed for reasons of space here, this format was extremely popular in the Thesis 1.x software.</p>
<p>Note, however, that a two-column layout for the content column is not ideal for most site designs &#8212; in short, skimming non-linear content is more difficult for your visitors.</p>
<p><a href="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-003-large.png"><img decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-003.png" alt="Thesis 2.0 Site with Teasers in Two Columns per Row" width="300" height="451" class="aligncenter" /></a></p>
<p>To include teasers, this tutorial assumes a minimum of four (4) posts live on the site.  This presumption allows for the current, full post &#8212; and then also the additional posts that will be pulled-in to create the &#8220;teaser&#8221; components &#8212; the post title, byline, thumbnail image, and excerpt.</p>
<p>Also, the posts we&#8217;ll be calling <i>must</i> have an assigned thumbnail image.  We&#8217;ll use the Thesis thumbnail in this example, and the assigned thumbnails would be added via this process: <code>WP Admin > Posts > Edit > Thesis Thumbnail > Browse</code>.</p>
<p>Uploading a thumbnail image from your desktop is a simple click-and-go process:</p>
<p><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-004.png" alt="Uploading a Manual Thumbnail Image in Thesis 2.0 Posts" width="484" height="321" class="aligncenter" /></p>
<p>With a set of &#8220;thumbnail assigned&#8221; posts to use in our teasers, it&#8217;s time to dig in!</p>
<h2>Using the Thesis Skin Editor to Create a WP_Query Box</h2>
<p>As with anything &#8220;2.0&#8221; there are various methods and approaches that can achieve a desired outcome.</p>
<p>For this tutorial, we&#8217;re going to use one method&#8230; the &#8220;Query Box&#8221; in the Thesis Skin Editor&#8217;s HTML tab.  Here&#8217;s one way to get there:</p>
<p><code>WP Admin > Thesis > Skin Editor ></code></p>
<p>You should now be on the <code>Home</code> core template.</p>
<p><b>Optional</b>.  To change the number of posts that display on your home page, simply hover on the <code>Home</code> text, click the gear icon, in the pop-up, click the <code>WP Loop</code> and adjust the value of <code>Number of Posts to Show</code>.  The images in this tutorial are based on a value of 1 in this area, but you can show as many &#8220;normal&#8221; posts as you like.</p>
<p><a href="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-005-large.png"><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-005.png" alt="Changing Core Template Posts per Page" width="500" height="181" class="aligncenter" /></a></p>
<p>Still on the Home core template of the Skin Editor, look to the lower-right.  In the <code>Add Boxes</code> section, click the dropdown, select <code>Query Box</code>, then name your box whatever makes sense to you, such as &#8220;My Teasers&#8221; in the below. Click the blue <code>Add Box</code> button.</p>
<p><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-006.png" alt="Creating a Query Box in the Thesis 2.0 Skin Editor" width="452" height="326" class="aligncenter" /></p>
<p>You now have a <code>Query Box</code> &#8212; this will create the HTML and database interactions that make a &#8220;teaser&#8221; &#8212; but don&#8217;t worry, you won&#8217;t see a drop of PHP or HTML, because Thesis 2.0 does the heavy lifting for you.</p>
<p class="alert">Follow the next step carefully. Confirm that your &#8220;Teasers&#8221; Query Box is not inside the WP Loop Box. If you add a Query Box inside the WP Loop area, your teasers will cycle after each post in the WP Loop.</p>
<p>Now to shift+drag this Query Box into position. We&#8217;re going to demonstrate our teasers after the primary content &#8212; the WP Loop &#8212; so we&#8217;ll drag the My Teasers box into position in the container of the WP Loop area, and let go:</p>
<p><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-007.png" alt="Shift Drag the Query Box into Position" width="600" height="151" class="aligncenter" /></p>
<p>A second quick drag will get your <code>Query Box</code> under the main loop, ending here:</p>
<p><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-008.png" alt="Final Position of Query Box in Core Template" width="600" height="152" class="aligncenter" /></p>
<p>You can see the &#8220;gear&#8221; in the above.  Click it, and you&#8217;ll get the following pop-up, where the image below shows &#8220;everything&#8221; you can do &#8212; but the primary areas of interest are denoted with arrows.  More on those arrows and associated settings after (you can click to see a larger edition) you&#8217;ve had a chance to look this over:</p>
<p><a href="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-009-large.png"><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-009.png" alt="Query Box Configuration Options" width="300" height="657" class="aligncenter" /></a></p>
<p>Areas of note: you can change this to suit your needs, but we&#8217;re choosing &#8220;Posts&#8221; and &#8220;Recent Posts&#8221; as well as the number &#8220;3&#8221; &#8212; this will be how many &#8220;teasers&#8221; we plan to display.</p>
<p>For single-author blogs, the author and other filters are straightforward.  A &#8220;div&#8221; tag is chosen, and &#8212; this is an important one &#8212; we manually add the following as our HTML class, or in this case, classes:</p>
<pre>teasers_home post_box</pre>
<p>One of these, <code>teasers_home</code>, will be used for CSS adjustments in a CSS Package we&#8217;ll create.  The second class is pre-existing, and the use of <code>post_box</code> &#8212; it formats home page posts &#8212; reduces the CSS needed to make the teasers match the site.</p>
<p>Next, we&#8217;ll rearrange and add &#8220;green box&#8221; items from the tray to get the elements needed for teasers.  We&#8217;ll want a headline, author, date, categories the post is assigned to, the Thesis thumbnail image, and the post excerpt.</p>
<p>Once everything is dragged into place, it should look like this.  As indicated by the first arrow, begin clicking through each item to assign values, which we&#8217;ll review briefly after this image:</p>
<p><a href="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-010-large.png"><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-010.png" alt="Adding Green Boxes of Tray Options to the Query Box" width="600" height="270" class="aligncenter" /></a></p>
<p><code>Headline</code> &#8220;gear&#8221; icon settings: HTML tag: H3.  And &#8220;Yes&#8221; you want to link the headline to the article page.</p>
<p><code>Author</code> &#8220;gear&#8221; icon settings: The Intro text is up to you; in this example we used <code>Written by...</code> as our intro.  The two checkboxes were checked.  This is your choice, and selecting or not selecting these will have little impact for tutorial purposes.</p>
<p><code>Date</code> &#8220;gear&#8221; icon settings: Intro text used was <code>on...</code> and this as well as other settings here is your choice.</p>
<p><code>Categories</code> &#8220;gear&#8221; icon settings: HTML tag: span.  Intro text used was <code>in...</code> and the rest is your choice.</p>
<p>The <code>Thumbnail</code> and <code>Excerpt</code> do not have settings worth mention for our purposes in this example.</p>
<h2>CSS Packages for Teasers in Thesis 2.0</h2>
<p>Guess what?  Minus a bit of formatting, your teasers are done!</p>
<p>To get the final touches on making these look great, let&#8217;s visit the CSS section of the Skin Editor and add a Package.</p>
<p>In fact, let&#8217;s add three &#8220;Single Element Styles&#8221; to give absolute control over this teasers area &#8212; here&#8217;s one, where the dropdown was clicked, <code>Single Element Styles</code> was chosen, and the blue <code>Add Package</code> was clicked, bringing a pop-up of the <code>Single Element Styles</code> which will get some additional attention momentarily:</p>
<p><a href="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-011-large.png"><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-011.png" alt="Single Element Style - Thesis CSS Skin Editor" width="300" height="292" class="aligncenter" /></a></p>
<p><b>Package Number One</b> &#8212; note the &#8220;reference&#8221; of <code>teaser_title</code>, as this will be added to the left area as <code>&amp;teaser_title</code> along with the other two Packages we&#8217;ll create.</p>
<p>The above CSS Package is included here primarily as an enabler.  It controls the headline font &#8212; the linked title of the teaser &#8212; and you can make adjustments to your taste using the central <code>Options</code> tab.</p>
<p>The only changes made to <code>&amp;teaser_title</code> in order to attain the results in this tutorial were: <code>Top Margin</code>: 1px and <code>Top Padding</code>: 1px.</p>
<p><b>Package Number Two</b> &#8212; same steps of <code>Single Element Styles</code>, click the blue <code>Add Package</code>, then work with <code>Single Element Styles</code> where the <code>Package</code> tab was assigned a <code>Reference</code> of <code>thumb_link</code> and the <code>CSS Selector</code> is <code>.thumb_link</code>.</p>
<p>The <code>Options</code> tab of the thumbnail Package were minimal: <code>Top Margin</code> 28px and <code>Right Margin</code> 18px and done.</p>
<p>Finally, the <code>Additional CSS</code> tab gets a single line of code so that our thumbnail &#8220;floats&#8221; into position to the left of the excerpt:</p>
<pre>.thumb_link { float:left; }</pre>
<p>To ensure our teasers and thumbnails are still on track, you should be ending in this tab, with this code, and remembering to save:</p>
<p><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-012.png" alt="Creation of Teasers with Additional CSS tab of a custom Package" width="463" height="256" class="aligncenter" /></p>
<p><b>Package Number Three</b> &#8212; last one!  As before, same steps, where the &#8220;reference&#8221; is <code>teaser_excerpt</code> and the only adjustment for this tutorial&#8217;s purpose was to change, under <code>Options</code>, the <code>Bottom Margin</code> to 22px.</p>
<p><b>Final Steps in the CSS Tab</b> &#8212; now to make sure our three Packages are compiled as active CSS code for the Home core template.  Remember the &#8220;references&#8221; created when you made these Packages?</p>
<p>Simply add an ampersand &#8212; &amp; &#8212; before the reference name and type these items into the <code>Skin CSS</code>, hit the green <code>Save CSS</code> button &#8212; and just like that, it&#8217;s all over:</p>
<p><a href="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-013-large.png"><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-013.png" alt="Adding CSS Packages to the Thesis 2.0 Compiler Queue" width="300" height="142" class="aligncenter" /></a></p>
<p>These three Packages are shown &#8220;high up&#8221; in the image above for instructional purposes.  However, it makes better sense to add these Packages farther down to maintain top to bottom ordering.</p>
<p>If you&#8217;ve been following this tutorial such that you have the exact same references, you&#8217;d add this to the Skin CSS area:</p>
<pre>
&amp;teaser_title
&amp;thumb_link
&amp;teaser_excerpt
</pre>
<p>Save CSS, and at that point, you should have three &#8220;one across&#8221; teasers &#8212; a single post&#8217;s worth of thumbnail images and excerpts per row &#8212; live on your site:</p>
<p><a href="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-002-large.png"><img decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-002.png" alt="Thesis 2.0 Site with One Across per Row Teasers and Thumbnails" width="300" height="614" class="aligncenter" /></a></p>
<p>But what about the &#8220;old&#8221; two-column teasers from Thesis 1.x series?</p>
<h2>Teasers Two Across in Thesis 2.0</h2>
<p>This, friends, is where a fundamental &#8220;oooh!&#8221; of Thesis 2.0 should be evident.</p>
<p>Yes, it took some work to get these custom teasers established.</p>
<p>But in doing so, you&#8217;ve set the stage for <i>total</i> control.</p>
<p>At this point, additional formatting changes are easy.  Title font?  Excerpt font size, color, background?  Margins?  All &#8220;interface easy&#8221; &#8212; simply adjust the three Packages.</p>
<p>And if you want Teasers &#8220;two across&#8221; &#8212; it will take only this one line of CSS:</p>
<pre>
.teasers_home { float:left; width:275px; margin:0px 16px; }
</pre>
<p>This code can be entered in several areas of the CSS tab in the Skin Editor.</p>
<p>In this tutorial, the CSS was added to an existing Package created earlier in this guide &#8212; the &#8220;Additional CSS&#8221; tab of the <code>&amp;teaser_title</code> package, as shown below:</p>
<p><a href="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-014-large.png"><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-014.png" alt="Adding CSS to Generate Two Columns of Teasers in Thesis 2.0 with Thumbs" width="600" height="248" class="aligncenter" /></a></p>
<p>Done. Note that a width of <code>275px</code> represents a value that you can adjust to get the desired look on your site.</p>
<p>Add one line of Additional CSS, and you&#8217;re rocking two-column teasers, with thumbnails!</p>
<p><a href="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-003-large.png"><img decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/10/thesis-2-how-to-make-teasers-thumbnails-003.png" alt="Thesis 2.0 Site with Teasers in Two Columns per Row" width="300" height="451" class="aligncenter" /></a></p>
<p>Excellent!</p>
<p>As you&#8217;ve probably realized by now, the Thesis 2.0 <code>Query Box</code> &#8212; combined with CSS Packages &#8212; opens the door to <i>far</i> more than teasers.</p>
<p>So have some fun &#8212; it&#8217;s time to let your creativity take over!</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Restore Corrupted Design Options</title>
		<link>https://diythemes.com/thesis/rtfm/restore-corrupted-design-options/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Fri, 06 Apr 2012 15:04:52 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<guid isPermaLink="false">https://diythemes.com/thesis/rtfm/?p=3305</guid>

					<description><![CDATA[If you are running the W3 Total Cache plugin, then start with Step 1. If you are not running the W3 Total Cache plugin, then start with Step 2. Disable Object Cache in W3 Total Cache&#8217;s configuration settings. Go to Thesis &#62; Design Options and note all of the current settings there (you&#8217;ll need to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p class="alert">If you <strong>are</strong> running the W3 Total Cache plugin, then start with Step 1. If you <strong>are not</strong> running the W3 Total Cache plugin, then start with Step 2.</p>
<ol>
<li>Disable <strong>Object Cache</strong> in W3 Total Cache&#8217;s configuration settings.</li>
<li>Go to <strong>Thesis &gt; Design Options</strong> and note all of the current settings there (you&#8217;ll need to refer to them in Step 4).</li>
<li>Go to <strong>Thesis &gt; Manage Options</strong> and click &#8220;Restore Default Design Options&#8221;.</li>
<li>Go back to <strong>Thesis &gt; Design Options</strong>, and manually reconfigure the settings you noted from Step 2 (remember to click the SAVE button).</li>
</ol>
<h3 id="forward">Going Forward</h3>
<ul>
<li>Be sure to periodically download <a href="/thesis/rtfm/backup-thesis-database-options/">backups</a> of your Thesis Options &#8212; that way, if this issue comes up again, you can use &#8220;Upload Options&#8221; to restore the last &#8220;clean&#8221; (i.e., non-corrupted) Design Options backup file you have (in lieu of Steps 3 and 4 above).</li>
<li>Make sure you&#8217;re using the latest version of Thesis &#8212; changes were made as of 1.8.4 in an attempt to reduce the chances for this issue to recur.</li>
</ul>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Thesis Skin Starter Template</title>
		<link>https://diythemes.com/thesis/rtfm/thesis-skin-starter-template/</link>
		
		<dc:creator><![CDATA[mattonomics]]></dc:creator>
		<pubDate>Fri, 02 Mar 2012 17:16:01 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<guid isPermaLink="false">https://diythemes.com/thesis/rtfm/?p=3253</guid>

					<description><![CDATA[Thesis makes building unique, custom designs easier than ever. This tutorial will show you just how simple it is. Before we get started, however, please familiarize yourself with the basic concepts of the Thesis Custom Loop API. Basic Template Let&#8217;s start with a very basic example. The first file you see is the one line [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Thesis makes building unique, custom designs easier than ever. This tutorial will show you just how simple it is. Before we get started, however, please familiarize yourself with the basic concepts of the <a title="Thesis Custom Loop API" href="/thesis/rtfm/custom-loop-api/">Thesis Custom Loop API</a>.</p>
<h2>Basic Template</h2>
<p>Let&#8217;s start with a very basic example.</p>
<p>The first file you see is the one line of CSS for our basic example. We&#8217;ll be changing the body background to #000 (black). That is primarily there so we can see that we have successfully forced Thesis to regenerate the CSS.</p>
<p>The next file is the barebones custom_functions.php file. This is a skeleton class that will force Thesis to regenerate the CSS when the skin is initially installed. It is important to point out that this will only happen <strong>once</strong>.</p>
<ol>
<li>Copy/paste custom.css and custom_functions.php to your files in the custom folder</li>
<li>Once you&#8217;ve installed everything, visit any page on the admin side.</li>
<li>Look at your site. The body background should have changed to black.</li>
</ol>
<div id="gist1936022" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-custom-css" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-css  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="custom.css content, created by mattonomics on 11:21PM on February 28, 2012."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank" rel="nofollow">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn" rel="nofollow">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="8" data-paste-markdown-skip data-tagsearch-path="custom.css">
        <tr>
          <td id="file-custom-css-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-custom-css-LC1" class="blob-code blob-code-inner js-file-line">/*---:[ body ]:---*/</td>
        </tr>
        <tr>
          <td id="file-custom-css-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-custom-css-LC2" class="blob-code blob-code-inner js-file-line">body.custom { background: #000; }</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/mattonomics/1936022/raw/64c06b741a7a8c2280472fec1e160d5c2b9756b9/custom.css" style="float:right" class="Link--inTextBlock" rel="nofollow">view raw</a>
        <a href="https://gist.github.com/mattonomics/1936022#file-custom-css" class="Link--inTextBlock" rel="nofollow">
          custom.css
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com" rel="nofollow">GitHub</a>
      </div>
    </div>
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-custom_functions-php" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-php  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="custom_functions.php content, created by mattonomics on 11:21PM on February 28, 2012."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank" rel="nofollow">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn" rel="nofollow">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="8" data-paste-markdown-skip data-tagsearch-path="custom_functions.php">
        <tr>
          <td id="file-custom_functions-php-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-custom_functions-php-LC1" class="blob-code blob-code-inner js-file-line">&lt;?php</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-custom_functions-php-LC2" class="blob-code blob-code-inner js-file-line">// deny direct access</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-custom_functions-php-LC3" class="blob-code blob-code-inner js-file-line">if (! defined(&#39;ABSPATH&#39;))</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-custom_functions-php-LC4" class="blob-code blob-code-inner js-file-line">	die(&#39;Please do not directly access this file&#39;);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-custom_functions-php-LC5" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-custom_functions-php-LC6" class="blob-code blob-code-inner js-file-line">class thesis_skin_example extends thesis_custom_loop {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-custom_functions-php-LC7" class="blob-code blob-code-inner js-file-line">	public function __construct() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-custom_functions-php-LC8" class="blob-code blob-code-inner js-file-line">		parent::__construct(); // this &quot;activates&quot; the Custom Loop API</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-custom_functions-php-LC9" class="blob-code blob-code-inner js-file-line">		add_action(&#39;init&#39;, array($this, &#39;init&#39;));</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-custom_functions-php-LC10" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-custom_functions-php-LC11" class="blob-code blob-code-inner js-file-line">	public function init() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-custom_functions-php-LC12" class="blob-code blob-code-inner js-file-line">		$this-&gt;actions();</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-custom_functions-php-LC13" class="blob-code blob-code-inner js-file-line">		$this-&gt;filters();</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-custom_functions-php-LC14" class="blob-code blob-code-inner js-file-line">		$this-&gt;switch_skin();</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L15" class="blob-num js-line-number js-blob-rnum" data-line-number="15"></td>
          <td id="file-custom_functions-php-LC15" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L16" class="blob-num js-line-number js-blob-rnum" data-line-number="16"></td>
          <td id="file-custom_functions-php-LC16" class="blob-code blob-code-inner js-file-line">	public function actions() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L17" class="blob-num js-line-number js-blob-rnum" data-line-number="17"></td>
          <td id="file-custom_functions-php-LC17" class="blob-code blob-code-inner js-file-line">		// add and remove actions here</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L18" class="blob-num js-line-number js-blob-rnum" data-line-number="18"></td>
          <td id="file-custom_functions-php-LC18" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L19" class="blob-num js-line-number js-blob-rnum" data-line-number="19"></td>
          <td id="file-custom_functions-php-LC19" class="blob-code blob-code-inner js-file-line">	public function filters() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L20" class="blob-num js-line-number js-blob-rnum" data-line-number="20"></td>
          <td id="file-custom_functions-php-LC20" class="blob-code blob-code-inner js-file-line">		// add and remove filters here</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L21" class="blob-num js-line-number js-blob-rnum" data-line-number="21"></td>
          <td id="file-custom_functions-php-LC21" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L22" class="blob-num js-line-number js-blob-rnum" data-line-number="22"></td>
          <td id="file-custom_functions-php-LC22" class="blob-code blob-code-inner js-file-line">	private function switch_skin() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L23" class="blob-num js-line-number js-blob-rnum" data-line-number="23"></td>
          <td id="file-custom_functions-php-LC23" class="blob-code blob-code-inner js-file-line">		//	Since after_switch_theme won&#39;t run, let&#39;s make sure that we generate the CSS</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L24" class="blob-num js-line-number js-blob-rnum" data-line-number="24"></td>
          <td id="file-custom_functions-php-LC24" class="blob-code blob-code-inner js-file-line">		if (is_admin() &amp;&amp; ! get_option(__CLASS__ . &#39;_generate&#39;)) {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L25" class="blob-num js-line-number js-blob-rnum" data-line-number="25"></td>
          <td id="file-custom_functions-php-LC25" class="blob-code blob-code-inner js-file-line">			thesis_generate_css();</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L26" class="blob-num js-line-number js-blob-rnum" data-line-number="26"></td>
          <td id="file-custom_functions-php-LC26" class="blob-code blob-code-inner js-file-line">			update_option(__CLASS__ . &#39;_generate&#39;, 1);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L27" class="blob-num js-line-number js-blob-rnum" data-line-number="27"></td>
          <td id="file-custom_functions-php-LC27" class="blob-code blob-code-inner js-file-line">			wp_cache_flush(); // flush the cache so things don&#39;t break!</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L28" class="blob-num js-line-number js-blob-rnum" data-line-number="28"></td>
          <td id="file-custom_functions-php-LC28" class="blob-code blob-code-inner js-file-line">		}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L29" class="blob-num js-line-number js-blob-rnum" data-line-number="29"></td>
          <td id="file-custom_functions-php-LC29" class="blob-code blob-code-inner js-file-line">		else return null;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L30" class="blob-num js-line-number js-blob-rnum" data-line-number="30"></td>
          <td id="file-custom_functions-php-LC30" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L31" class="blob-num js-line-number js-blob-rnum" data-line-number="31"></td>
          <td id="file-custom_functions-php-LC31" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L32" class="blob-num js-line-number js-blob-rnum" data-line-number="32"></td>
          <td id="file-custom_functions-php-LC32" class="blob-code blob-code-inner js-file-line">	// below this line, use methods from the Custom Loop API.</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L33" class="blob-num js-line-number js-blob-rnum" data-line-number="33"></td>
          <td id="file-custom_functions-php-LC33" class="blob-code blob-code-inner js-file-line">	public function home() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L34" class="blob-num js-line-number js-blob-rnum" data-line-number="34"></td>
          <td id="file-custom_functions-php-LC34" class="blob-code blob-code-inner js-file-line">		thesis_loop::home(); // remove this line and put your own home loop here</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L35" class="blob-num js-line-number js-blob-rnum" data-line-number="35"></td>
          <td id="file-custom_functions-php-LC35" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L36" class="blob-num js-line-number js-blob-rnum" data-line-number="36"></td>
          <td id="file-custom_functions-php-LC36" class="blob-code blob-code-inner js-file-line">	public function archive() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L37" class="blob-num js-line-number js-blob-rnum" data-line-number="37"></td>
          <td id="file-custom_functions-php-LC37" class="blob-code blob-code-inner js-file-line">		thesis_loop::archive(); // remove this line and put your own archive loop here</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L38" class="blob-num js-line-number js-blob-rnum" data-line-number="38"></td>
          <td id="file-custom_functions-php-LC38" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L39" class="blob-num js-line-number js-blob-rnum" data-line-number="39"></td>
          <td id="file-custom_functions-php-LC39" class="blob-code blob-code-inner js-file-line">}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L40" class="blob-num js-line-number js-blob-rnum" data-line-number="40"></td>
          <td id="file-custom_functions-php-LC40" class="blob-code blob-code-inner js-file-line">new thesis_skin_example;</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/mattonomics/1936022/raw/64c06b741a7a8c2280472fec1e160d5c2b9756b9/custom_functions.php" style="float:right" class="Link--inTextBlock" rel="nofollow">view raw</a>
        <a href="https://gist.github.com/mattonomics/1936022#file-custom_functions-php" class="Link--inTextBlock" rel="nofollow">
          custom_functions.php
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com" rel="nofollow">GitHub</a>
      </div>
    </div>
</div>

<h2>Advanced Template</h2>
<p>Obviously, a barebones skin class doesn&#8217;t really do much for the imagination. So, let&#8217;s take a look at a more advanced customization. Please read the notes in the code!</p>
<ol>
<li>Copy/paste custom.css and custom_functions.php to your files in the custom folder</li>
<li>Once everything is installed, visit any page on the admin side.</li>
</ol>
<p>This class does a few things:</p>
<ul>
<li>strips the container from the nav menu</li>
<li>removes the default Thesis style.css</li>
<li>excludes the default &#8220;uncategorized&#8221; category from the home page</li>
<li>filters out some of the css related to the nav colors</li>
<li>applies a simple CSS reset ($this-&gt;css_reset) that is now a default part of the thesis_custom_loop class</li>
</ul>
<div id="gist1942457" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-custom-css" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-css  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="custom.css content, created by mattonomics on 04:59PM on February 29, 2012."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank" rel="nofollow">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn" rel="nofollow">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="8" data-paste-markdown-skip data-tagsearch-path="custom.css">
        <tr>
          <td id="file-custom-css-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-custom-css-LC1" class="blob-code blob-code-inner js-file-line">/*---:[ body ]:---*/</td>
        </tr>
        <tr>
          <td id="file-custom-css-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-custom-css-LC2" class="blob-code blob-code-inner js-file-line">body { background: #000; }</td>
        </tr>
        <tr>
          <td id="file-custom-css-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-custom-css-LC3" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom-css-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-custom-css-LC4" class="blob-code blob-code-inner js-file-line">/*---:[ menu ]:---*/</td>
        </tr>
        <tr>
          <td id="file-custom-css-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-custom-css-LC5" class="blob-code blob-code-inner js-file-line">.menu { list-style: none; }</td>
        </tr>
        <tr>
          <td id="file-custom-css-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-custom-css-LC6" class="blob-code blob-code-inner js-file-line">	.menu li { float: left; }</td>
        </tr>
        <tr>
          <td id="file-custom-css-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-custom-css-LC7" class="blob-code blob-code-inner js-file-line">		.menu li a { text-decoration: none; display: block; }</td>
        </tr>
        <tr>
          <td id="file-custom-css-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-custom-css-LC8" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom-css-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-custom-css-LC9" class="blob-code blob-code-inner js-file-line">/*---:[ post image fix from @kristarella ]:---*/</td>
        </tr>
        <tr>
          <td id="file-custom-css-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-custom-css-LC10" class="blob-code blob-code-inner js-file-line">.post_image { max-width: 100%; height: auto; }</td>
        </tr>
        <tr>
          <td id="file-custom-css-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-custom-css-LC11" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom-css-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-custom-css-LC12" class="blob-code blob-code-inner js-file-line">/*---:[ widget lists ]:---*/</td>
        </tr>
        <tr>
          <td id="file-custom-css-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-custom-css-LC13" class="blob-code blob-code-inner js-file-line">.sidebar_list { list-style: none; }</td>
        </tr>
        <tr>
          <td id="file-custom-css-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-custom-css-LC14" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom-css-L15" class="blob-num js-line-number js-blob-rnum" data-line-number="15"></td>
          <td id="file-custom-css-LC15" class="blob-code blob-code-inner js-file-line">/*---:[ clearfixes ]---*/</td>
        </tr>
        <tr>
          <td id="file-custom-css-L16" class="blob-num js-line-number js-blob-rnum" data-line-number="16"></td>
          <td id="file-custom-css-LC16" class="blob-code blob-code-inner js-file-line">#content_box:after, .menu:after { visibility: hidden; display: block; content: &quot;&quot;; clear: both; height: 0; }</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/mattonomics/1942457/raw/e36cda7cf305662942f663c75b4aabe150a6d5f1/custom.css" style="float:right" class="Link--inTextBlock" rel="nofollow">view raw</a>
        <a href="https://gist.github.com/mattonomics/1942457#file-custom-css" class="Link--inTextBlock" rel="nofollow">
          custom.css
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com" rel="nofollow">GitHub</a>
      </div>
    </div>
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-custom_functions-php" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-php  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="custom_functions.php content, created by mattonomics on 04:59PM on February 29, 2012."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank" rel="nofollow">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn" rel="nofollow">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="8" data-paste-markdown-skip data-tagsearch-path="custom_functions.php">
        <tr>
          <td id="file-custom_functions-php-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-custom_functions-php-LC1" class="blob-code blob-code-inner js-file-line">&lt;?php</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-custom_functions-php-LC2" class="blob-code blob-code-inner js-file-line">// Initial sanity check</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-custom_functions-php-LC3" class="blob-code blob-code-inner js-file-line">if (! defined(&#39;ABSPATH&#39;))</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-custom_functions-php-LC4" class="blob-code blob-code-inner js-file-line">	die(&#39;Please do not directly access this file&#39;);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-custom_functions-php-LC5" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-custom_functions-php-LC6" class="blob-code blob-code-inner js-file-line">// classes are a VERY important part of 2.0, so you need to be familiar with them.</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-custom_functions-php-LC7" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-custom_functions-php-LC8" class="blob-code blob-code-inner js-file-line">class thesis_skin_example extends thesis_custom_loop {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-custom_functions-php-LC9" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-custom_functions-php-LC10" class="blob-code blob-code-inner js-file-line">	public function __construct() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-custom_functions-php-LC11" class="blob-code blob-code-inner js-file-line">		// run the parent constructor so we can access the thesis custom loop api</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-custom_functions-php-LC12" class="blob-code blob-code-inner js-file-line">		parent::__construct();</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-custom_functions-php-LC13" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-custom_functions-php-LC14" class="blob-code blob-code-inner js-file-line">		// run the main init</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L15" class="blob-num js-line-number js-blob-rnum" data-line-number="15"></td>
          <td id="file-custom_functions-php-LC15" class="blob-code blob-code-inner js-file-line">		add_action(&#39;init&#39;, array($this, &#39;init&#39;));</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L16" class="blob-num js-line-number js-blob-rnum" data-line-number="16"></td>
          <td id="file-custom_functions-php-LC16" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L17" class="blob-num js-line-number js-blob-rnum" data-line-number="17"></td>
          <td id="file-custom_functions-php-LC17" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L18" class="blob-num js-line-number js-blob-rnum" data-line-number="18"></td>
          <td id="file-custom_functions-php-LC18" class="blob-code blob-code-inner js-file-line">	public function init() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L19" class="blob-num js-line-number js-blob-rnum" data-line-number="19"></td>
          <td id="file-custom_functions-php-LC19" class="blob-code blob-code-inner js-file-line">		// actions and filters that will run on init. you could put other things here if you need.</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L20" class="blob-num js-line-number js-blob-rnum" data-line-number="20"></td>
          <td id="file-custom_functions-php-LC20" class="blob-code blob-code-inner js-file-line">		$this-&gt;actions();</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L21" class="blob-num js-line-number js-blob-rnum" data-line-number="21"></td>
          <td id="file-custom_functions-php-LC21" class="blob-code blob-code-inner js-file-line">		$this-&gt;filters();</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L22" class="blob-num js-line-number js-blob-rnum" data-line-number="22"></td>
          <td id="file-custom_functions-php-LC22" class="blob-code blob-code-inner js-file-line">		$this-&gt;switch_skin();</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L23" class="blob-num js-line-number js-blob-rnum" data-line-number="23"></td>
          <td id="file-custom_functions-php-LC23" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L24" class="blob-num js-line-number js-blob-rnum" data-line-number="24"></td>
          <td id="file-custom_functions-php-LC24" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L25" class="blob-num js-line-number js-blob-rnum" data-line-number="25"></td>
          <td id="file-custom_functions-php-LC25" class="blob-code blob-code-inner js-file-line">	public function actions() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L26" class="blob-num js-line-number js-blob-rnum" data-line-number="26"></td>
          <td id="file-custom_functions-php-LC26" class="blob-code blob-code-inner js-file-line">		// add and remove actions here</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L27" class="blob-num js-line-number js-blob-rnum" data-line-number="27"></td>
          <td id="file-custom_functions-php-LC27" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L28" class="blob-num js-line-number js-blob-rnum" data-line-number="28"></td>
          <td id="file-custom_functions-php-LC28" class="blob-code blob-code-inner js-file-line">		// modify the nav menu to exclude the div wrapper that WP defaults to</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L29" class="blob-num js-line-number js-blob-rnum" data-line-number="29"></td>
          <td id="file-custom_functions-php-LC29" class="blob-code blob-code-inner js-file-line">		remove_action(&#39;thesis_hook_before_header&#39;, &#39;thesis_nav_menu&#39;);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L30" class="blob-num js-line-number js-blob-rnum" data-line-number="30"></td>
          <td id="file-custom_functions-php-LC30" class="blob-code blob-code-inner js-file-line">		add_action(&#39;thesis_hook_before_header&#39;, array($this, &#39;nav&#39;));</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L31" class="blob-num js-line-number js-blob-rnum" data-line-number="31"></td>
          <td id="file-custom_functions-php-LC31" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L32" class="blob-num js-line-number js-blob-rnum" data-line-number="32"></td>
          <td id="file-custom_functions-php-LC32" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L33" class="blob-num js-line-number js-blob-rnum" data-line-number="33"></td>
          <td id="file-custom_functions-php-LC33" class="blob-code blob-code-inner js-file-line">	public function filters() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L34" class="blob-num js-line-number js-blob-rnum" data-line-number="34"></td>
          <td id="file-custom_functions-php-LC34" class="blob-code blob-code-inner js-file-line">		// add and remove filters here</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L35" class="blob-num js-line-number js-blob-rnum" data-line-number="35"></td>
          <td id="file-custom_functions-php-LC35" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L36" class="blob-num js-line-number js-blob-rnum" data-line-number="36"></td>
          <td id="file-custom_functions-php-LC36" class="blob-code blob-code-inner js-file-line">		/* </td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L37" class="blob-num js-line-number js-blob-rnum" data-line-number="37"></td>
          <td id="file-custom_functions-php-LC37" class="blob-code blob-code-inner js-file-line">		*	Filter out the standard thesis style.css. </td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L38" class="blob-num js-line-number js-blob-rnum" data-line-number="38"></td>
          <td id="file-custom_functions-php-LC38" class="blob-code blob-code-inner js-file-line">		*	Run this with a priority of 11 if you want to make sure the gravity forms css gets added.</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L39" class="blob-num js-line-number js-blob-rnum" data-line-number="39"></td>
          <td id="file-custom_functions-php-LC39" class="blob-code blob-code-inner js-file-line">		*/</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L40" class="blob-num js-line-number js-blob-rnum" data-line-number="40"></td>
          <td id="file-custom_functions-php-LC40" class="blob-code blob-code-inner js-file-line">		add_filter(&#39;thesis_css&#39;, array($this, &#39;css&#39;), 11, 4);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L41" class="blob-num js-line-number js-blob-rnum" data-line-number="41"></td>
          <td id="file-custom_functions-php-LC41" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L42" class="blob-num js-line-number js-blob-rnum" data-line-number="42"></td>
          <td id="file-custom_functions-php-LC42" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L43" class="blob-num js-line-number js-blob-rnum" data-line-number="43"></td>
          <td id="file-custom_functions-php-LC43" class="blob-code blob-code-inner js-file-line">	public function css($contents, $thesis_css, $style, $multisite) {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L44" class="blob-num js-line-number js-blob-rnum" data-line-number="44"></td>
          <td id="file-custom_functions-php-LC44" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L45" class="blob-num js-line-number js-blob-rnum" data-line-number="45"></td>
          <td id="file-custom_functions-php-LC45" class="blob-code blob-code-inner js-file-line">		// filter the Thesis generated css. in this example we&#39;re removing all the nav styles related to color</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L46" class="blob-num js-line-number js-blob-rnum" data-line-number="46"></td>
          <td id="file-custom_functions-php-LC46" class="blob-code blob-code-inner js-file-line">		$generated_css = $this-&gt;filter_css($thesis_css-&gt;css);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L47" class="blob-num js-line-number js-blob-rnum" data-line-number="47"></td>
          <td id="file-custom_functions-php-LC47" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L48" class="blob-num js-line-number js-blob-rnum" data-line-number="48"></td>
          <td id="file-custom_functions-php-LC48" class="blob-code blob-code-inner js-file-line">		/* </td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L49" class="blob-num js-line-number js-blob-rnum" data-line-number="49"></td>
          <td id="file-custom_functions-php-LC49" class="blob-code blob-code-inner js-file-line">		*	You can access the thesis_css object, which contains a variety of settings. </td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L50" class="blob-num js-line-number js-blob-rnum" data-line-number="50"></td>
          <td id="file-custom_functions-php-LC50" class="blob-code blob-code-inner js-file-line">		*	As an example, I&#39;ll show you how to access nav text color.</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L51" class="blob-num js-line-number js-blob-rnum" data-line-number="51"></td>
          <td id="file-custom_functions-php-LC51" class="blob-code blob-code-inner js-file-line">		*	Remember that you can always do this in custom.css if you don&#39;t care about users having control over the colors </td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L52" class="blob-num js-line-number js-blob-rnum" data-line-number="52"></td>
          <td id="file-custom_functions-php-LC52" class="blob-code blob-code-inner js-file-line">		*/</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L53" class="blob-num js-line-number js-blob-rnum" data-line-number="53"></td>
          <td id="file-custom_functions-php-LC53" class="blob-code blob-code-inner js-file-line">		$my_css = &quot;n/*---:[ my nav menu styles ]:---*/n&quot; // it&#39;s always a good idea to add in comments as to what you&#39;re adding</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L54" class="blob-num js-line-number js-blob-rnum" data-line-number="54"></td>
          <td id="file-custom_functions-php-LC54" class="blob-code blob-code-inner js-file-line">			. &quot;.menu li a { color: #{$thesis_css-&gt;nav[&#39;link&#39;][&#39;color&#39;]} }n&quot;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L55" class="blob-num js-line-number js-blob-rnum" data-line-number="55"></td>
          <td id="file-custom_functions-php-LC55" class="blob-code blob-code-inner js-file-line">			. &quot;.menu li a:hover { color: #{$thesis_css-&gt;nav[&#39;link&#39;][&#39;hover&#39;]} }nn&quot;;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L56" class="blob-num js-line-number js-blob-rnum" data-line-number="56"></td>
          <td id="file-custom_functions-php-LC56" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L57" class="blob-num js-line-number js-blob-rnum" data-line-number="57"></td>
          <td id="file-custom_functions-php-LC57" class="blob-code blob-code-inner js-file-line">		// put in everything except the main thesis style.css. also add an initial css reset</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L58" class="blob-num js-line-number js-blob-rnum" data-line-number="58"></td>
          <td id="file-custom_functions-php-LC58" class="blob-code blob-code-inner js-file-line">		$css = $thesis_css-&gt;fonts_to_import . $this-&gt;css_reset . $generated_css . $my_css;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L59" class="blob-num js-line-number js-blob-rnum" data-line-number="59"></td>
          <td id="file-custom_functions-php-LC59" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L60" class="blob-num js-line-number js-blob-rnum" data-line-number="60"></td>
          <td id="file-custom_functions-php-LC60" class="blob-code blob-code-inner js-file-line">		// return it</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L61" class="blob-num js-line-number js-blob-rnum" data-line-number="61"></td>
          <td id="file-custom_functions-php-LC61" class="blob-code blob-code-inner js-file-line">		return $css;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L62" class="blob-num js-line-number js-blob-rnum" data-line-number="62"></td>
          <td id="file-custom_functions-php-LC62" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L63" class="blob-num js-line-number js-blob-rnum" data-line-number="63"></td>
          <td id="file-custom_functions-php-LC63" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L64" class="blob-num js-line-number js-blob-rnum" data-line-number="64"></td>
          <td id="file-custom_functions-php-LC64" class="blob-code blob-code-inner js-file-line">	public function filter_css($css) {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L65" class="blob-num js-line-number js-blob-rnum" data-line-number="65"></td>
          <td id="file-custom_functions-php-LC65" class="blob-code blob-code-inner js-file-line">		if (! empty($css)) {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L66" class="blob-num js-line-number js-blob-rnum" data-line-number="66"></td>
          <td id="file-custom_functions-php-LC66" class="blob-code blob-code-inner js-file-line">			</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L67" class="blob-num js-line-number js-blob-rnum" data-line-number="67"></td>
          <td id="file-custom_functions-php-LC67" class="blob-code blob-code-inner js-file-line">			// remove the nav colors</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L68" class="blob-num js-line-number js-blob-rnum" data-line-number="68"></td>
          <td id="file-custom_functions-php-LC68" class="blob-code blob-code-inner js-file-line">			if (preg_match(&#39;|/*---:[ nav colors ]:---*/|i&#39;, $css))</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L69" class="blob-num js-line-number js-blob-rnum" data-line-number="69"></td>
          <td id="file-custom_functions-php-LC69" class="blob-code blob-code-inner js-file-line">				$css = preg_replace(&#39;|/*---:[ nav colors ]:---*/(n.+){7}|i&#39;, &#39;&#39;, $css);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L70" class="blob-num js-line-number js-blob-rnum" data-line-number="70"></td>
          <td id="file-custom_functions-php-LC70" class="blob-code blob-code-inner js-file-line">			</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L71" class="blob-num js-line-number js-blob-rnum" data-line-number="71"></td>
          <td id="file-custom_functions-php-LC71" class="blob-code blob-code-inner js-file-line">			// you could add more filtering here</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L72" class="blob-num js-line-number js-blob-rnum" data-line-number="72"></td>
          <td id="file-custom_functions-php-LC72" class="blob-code blob-code-inner js-file-line">		}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L73" class="blob-num js-line-number js-blob-rnum" data-line-number="73"></td>
          <td id="file-custom_functions-php-LC73" class="blob-code blob-code-inner js-file-line">		return $css;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L74" class="blob-num js-line-number js-blob-rnum" data-line-number="74"></td>
          <td id="file-custom_functions-php-LC74" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L75" class="blob-num js-line-number js-blob-rnum" data-line-number="75"></td>
          <td id="file-custom_functions-php-LC75" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L76" class="blob-num js-line-number js-blob-rnum" data-line-number="76"></td>
          <td id="file-custom_functions-php-LC76" class="blob-code blob-code-inner js-file-line">	public function nav() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L77" class="blob-num js-line-number js-blob-rnum" data-line-number="77"></td>
          <td id="file-custom_functions-php-LC77" class="blob-code blob-code-inner js-file-line">		// we&#39;re doing this so we can remove the default container div output by WordPress</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L78" class="blob-num js-line-number js-blob-rnum" data-line-number="78"></td>
          <td id="file-custom_functions-php-LC78" class="blob-code blob-code-inner js-file-line">		global $thesis_site;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L79" class="blob-num js-line-number js-blob-rnum" data-line-number="79"></td>
          <td id="file-custom_functions-php-LC79" class="blob-code blob-code-inner js-file-line">		if (function_exists(&#39;wp_nav_menu&#39;) &amp;&amp; $thesis_site-&gt;nav[&#39;type&#39;] == &#39;wp&#39;) { #wp</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L80" class="blob-num js-line-number js-blob-rnum" data-line-number="80"></td>
          <td id="file-custom_functions-php-LC80" class="blob-code blob-code-inner js-file-line">			$args = array(</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L81" class="blob-num js-line-number js-blob-rnum" data-line-number="81"></td>
          <td id="file-custom_functions-php-LC81" class="blob-code blob-code-inner js-file-line">				&#39;theme_location&#39; =&gt; &#39;primary&#39;,</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L82" class="blob-num js-line-number js-blob-rnum" data-line-number="82"></td>
          <td id="file-custom_functions-php-LC82" class="blob-code blob-code-inner js-file-line">				&#39;container&#39; =&gt; &#39;&#39;,</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L83" class="blob-num js-line-number js-blob-rnum" data-line-number="83"></td>
          <td id="file-custom_functions-php-LC83" class="blob-code blob-code-inner js-file-line">				&#39;fallback_cb&#39; =&gt; &#39;thesis_nav_default&#39;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L84" class="blob-num js-line-number js-blob-rnum" data-line-number="84"></td>
          <td id="file-custom_functions-php-LC84" class="blob-code blob-code-inner js-file-line">			);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L85" class="blob-num js-line-number js-blob-rnum" data-line-number="85"></td>
          <td id="file-custom_functions-php-LC85" class="blob-code blob-code-inner js-file-line">			wp_nav_menu($args); #wp</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L86" class="blob-num js-line-number js-blob-rnum" data-line-number="86"></td>
          <td id="file-custom_functions-php-LC86" class="blob-code blob-code-inner js-file-line">			echo &quot;n&quot;;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L87" class="blob-num js-line-number js-blob-rnum" data-line-number="87"></td>
          <td id="file-custom_functions-php-LC87" class="blob-code blob-code-inner js-file-line">		}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L88" class="blob-num js-line-number js-blob-rnum" data-line-number="88"></td>
          <td id="file-custom_functions-php-LC88" class="blob-code blob-code-inner js-file-line">		else</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L89" class="blob-num js-line-number js-blob-rnum" data-line-number="89"></td>
          <td id="file-custom_functions-php-LC89" class="blob-code blob-code-inner js-file-line">			thesis_nav_default();</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L90" class="blob-num js-line-number js-blob-rnum" data-line-number="90"></td>
          <td id="file-custom_functions-php-LC90" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L91" class="blob-num js-line-number js-blob-rnum" data-line-number="91"></td>
          <td id="file-custom_functions-php-LC91" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L92" class="blob-num js-line-number js-blob-rnum" data-line-number="92"></td>
          <td id="file-custom_functions-php-LC92" class="blob-code blob-code-inner js-file-line">	public function switch_skin() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L93" class="blob-num js-line-number js-blob-rnum" data-line-number="93"></td>
          <td id="file-custom_functions-php-LC93" class="blob-code blob-code-inner js-file-line">		//	Since after_switch_theme won&#39;t run, let&#39;s make sure that we generate the CSS</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L94" class="blob-num js-line-number js-blob-rnum" data-line-number="94"></td>
          <td id="file-custom_functions-php-LC94" class="blob-code blob-code-inner js-file-line">		if (is_admin() &amp;&amp; ! get_option(__CLASS__ . &#39;_generate&#39;)) {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L95" class="blob-num js-line-number js-blob-rnum" data-line-number="95"></td>
          <td id="file-custom_functions-php-LC95" class="blob-code blob-code-inner js-file-line">			thesis_generate_css();</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L96" class="blob-num js-line-number js-blob-rnum" data-line-number="96"></td>
          <td id="file-custom_functions-php-LC96" class="blob-code blob-code-inner js-file-line">			update_option(__CLASS__ . &#39;_generate&#39;, 1);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L97" class="blob-num js-line-number js-blob-rnum" data-line-number="97"></td>
          <td id="file-custom_functions-php-LC97" class="blob-code blob-code-inner js-file-line">			wp_cache_flush();</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L98" class="blob-num js-line-number js-blob-rnum" data-line-number="98"></td>
          <td id="file-custom_functions-php-LC98" class="blob-code blob-code-inner js-file-line">		}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L99" class="blob-num js-line-number js-blob-rnum" data-line-number="99"></td>
          <td id="file-custom_functions-php-LC99" class="blob-code blob-code-inner js-file-line">		else return null;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L100" class="blob-num js-line-number js-blob-rnum" data-line-number="100"></td>
          <td id="file-custom_functions-php-LC100" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L101" class="blob-num js-line-number js-blob-rnum" data-line-number="101"></td>
          <td id="file-custom_functions-php-LC101" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L102" class="blob-num js-line-number js-blob-rnum" data-line-number="102"></td>
          <td id="file-custom_functions-php-LC102" class="blob-code blob-code-inner js-file-line">	public function home() {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L103" class="blob-num js-line-number js-blob-rnum" data-line-number="103"></td>
          <td id="file-custom_functions-php-LC103" class="blob-code blob-code-inner js-file-line">		// this is really just what thesis normally does, except we are excluding posts in &quot;uncategorized&quot;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L104" class="blob-num js-line-number js-blob-rnum" data-line-number="104"></td>
          <td id="file-custom_functions-php-LC104" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L105" class="blob-num js-line-number js-blob-rnum" data-line-number="105"></td>
          <td id="file-custom_functions-php-LC105" class="blob-code blob-code-inner js-file-line">		$post_count = 1;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L106" class="blob-num js-line-number js-blob-rnum" data-line-number="106"></td>
          <td id="file-custom_functions-php-LC106" class="blob-code blob-code-inner js-file-line">		$teaser_count = 1;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L107" class="blob-num js-line-number js-blob-rnum" data-line-number="107"></td>
          <td id="file-custom_functions-php-LC107" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L108" class="blob-num js-line-number js-blob-rnum" data-line-number="108"></td>
          <td id="file-custom_functions-php-LC108" class="blob-code blob-code-inner js-file-line">		$args = array(</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L109" class="blob-num js-line-number js-blob-rnum" data-line-number="109"></td>
          <td id="file-custom_functions-php-LC109" class="blob-code blob-code-inner js-file-line">			&#39;category__not_in&#39; =&gt; array(1) // pass an array of cat ids you DON&#39;T want</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L110" class="blob-num js-line-number js-blob-rnum" data-line-number="110"></td>
          <td id="file-custom_functions-php-LC110" class="blob-code blob-code-inner js-file-line">		);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L111" class="blob-num js-line-number js-blob-rnum" data-line-number="111"></td>
          <td id="file-custom_functions-php-LC111" class="blob-code blob-code-inner js-file-line">		$home_query = new WP_Query($args); // stick that in the WP_Query class</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L112" class="blob-num js-line-number js-blob-rnum" data-line-number="112"></td>
          <td id="file-custom_functions-php-LC112" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L113" class="blob-num js-line-number js-blob-rnum" data-line-number="113"></td>
          <td id="file-custom_functions-php-LC113" class="blob-code blob-code-inner js-file-line">		while ($home_query-&gt;have_posts()) { // I do my while loops in brackets cuz I&#39;m a rebel like that</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L114" class="blob-num js-line-number js-blob-rnum" data-line-number="114"></td>
          <td id="file-custom_functions-php-LC114" class="blob-code blob-code-inner js-file-line">			$home_query-&gt;the_post();</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L115" class="blob-num js-line-number js-blob-rnum" data-line-number="115"></td>
          <td id="file-custom_functions-php-LC115" class="blob-code blob-code-inner js-file-line">			</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L116" class="blob-num js-line-number js-blob-rnum" data-line-number="116"></td>
          <td id="file-custom_functions-php-LC116" class="blob-code blob-code-inner js-file-line">			if (apply_filters(&#39;thesis_is_teaser&#39;, thesis_is_teaser($post_count))) {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L117" class="blob-num js-line-number js-blob-rnum" data-line-number="117"></td>
          <td id="file-custom_functions-php-LC117" class="blob-code blob-code-inner js-file-line">				if (($teaser_count % 2) == 1) {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L118" class="blob-num js-line-number js-blob-rnum" data-line-number="118"></td>
          <td id="file-custom_functions-php-LC118" class="blob-code blob-code-inner js-file-line">					$top = ($post_count == 1) ? &#39; top&#39; : &#39;&#39;;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L119" class="blob-num js-line-number js-blob-rnum" data-line-number="119"></td>
          <td id="file-custom_functions-php-LC119" class="blob-code blob-code-inner js-file-line">					$open_box = &#39;&lt;div class=&quot;teasers_box$top&quot;&gt;&#39;;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L120" class="blob-num js-line-number js-blob-rnum" data-line-number="120"></td>
          <td id="file-custom_functions-php-LC120" class="blob-code blob-code-inner js-file-line">					$close_box = &#39;&#39;;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L121" class="blob-num js-line-number js-blob-rnum" data-line-number="121"></td>
          <td id="file-custom_functions-php-LC121" class="blob-code blob-code-inner js-file-line">					$right = false;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L122" class="blob-num js-line-number js-blob-rnum" data-line-number="122"></td>
          <td id="file-custom_functions-php-LC122" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L123" class="blob-num js-line-number js-blob-rnum" data-line-number="123"></td>
          <td id="file-custom_functions-php-LC123" class="blob-code blob-code-inner js-file-line">				else {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L124" class="blob-num js-line-number js-blob-rnum" data-line-number="124"></td>
          <td id="file-custom_functions-php-LC124" class="blob-code blob-code-inner js-file-line">					$open_box = &#39;&#39;;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L125" class="blob-num js-line-number js-blob-rnum" data-line-number="125"></td>
          <td id="file-custom_functions-php-LC125" class="blob-code blob-code-inner js-file-line">					$close_box = &quot;&lt;/div&gt;&quot;;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L126" class="blob-num js-line-number js-blob-rnum" data-line-number="126"></td>
          <td id="file-custom_functions-php-LC126" class="blob-code blob-code-inner js-file-line">					$right = true;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L127" class="blob-num js-line-number js-blob-rnum" data-line-number="127"></td>
          <td id="file-custom_functions-php-LC127" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L128" class="blob-num js-line-number js-blob-rnum" data-line-number="128"></td>
          <td id="file-custom_functions-php-LC128" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L129" class="blob-num js-line-number js-blob-rnum" data-line-number="129"></td>
          <td id="file-custom_functions-php-LC129" class="blob-code blob-code-inner js-file-line">				if ($open_box != &#39;&#39;) {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L130" class="blob-num js-line-number js-blob-rnum" data-line-number="130"></td>
          <td id="file-custom_functions-php-LC130" class="blob-code blob-code-inner js-file-line">					echo $open_box;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L131" class="blob-num js-line-number js-blob-rnum" data-line-number="131"></td>
          <td id="file-custom_functions-php-LC131" class="blob-code blob-code-inner js-file-line">					thesis_hook_before_teasers_box($post_count);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L132" class="blob-num js-line-number js-blob-rnum" data-line-number="132"></td>
          <td id="file-custom_functions-php-LC132" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L133" class="blob-num js-line-number js-blob-rnum" data-line-number="133"></td>
          <td id="file-custom_functions-php-LC133" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L134" class="blob-num js-line-number js-blob-rnum" data-line-number="134"></td>
          <td id="file-custom_functions-php-LC134" class="blob-code blob-code-inner js-file-line">				thesis_teaser($classes, $post_count, $right);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L135" class="blob-num js-line-number js-blob-rnum" data-line-number="135"></td>
          <td id="file-custom_functions-php-LC135" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L136" class="blob-num js-line-number js-blob-rnum" data-line-number="136"></td>
          <td id="file-custom_functions-php-LC136" class="blob-code blob-code-inner js-file-line">				if ($close_box != &#39;&#39;) {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L137" class="blob-num js-line-number js-blob-rnum" data-line-number="137"></td>
          <td id="file-custom_functions-php-LC137" class="blob-code blob-code-inner js-file-line">					echo $close_box;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L138" class="blob-num js-line-number js-blob-rnum" data-line-number="138"></td>
          <td id="file-custom_functions-php-LC138" class="blob-code blob-code-inner js-file-line">					thesis_hook_after_teasers_box($post_count);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L139" class="blob-num js-line-number js-blob-rnum" data-line-number="139"></td>
          <td id="file-custom_functions-php-LC139" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L140" class="blob-num js-line-number js-blob-rnum" data-line-number="140"></td>
          <td id="file-custom_functions-php-LC140" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L141" class="blob-num js-line-number js-blob-rnum" data-line-number="141"></td>
          <td id="file-custom_functions-php-LC141" class="blob-code blob-code-inner js-file-line">				$teaser_count++;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L142" class="blob-num js-line-number js-blob-rnum" data-line-number="142"></td>
          <td id="file-custom_functions-php-LC142" class="blob-code blob-code-inner js-file-line">			}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L143" class="blob-num js-line-number js-blob-rnum" data-line-number="143"></td>
          <td id="file-custom_functions-php-LC143" class="blob-code blob-code-inner js-file-line">			else {</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L144" class="blob-num js-line-number js-blob-rnum" data-line-number="144"></td>
          <td id="file-custom_functions-php-LC144" class="blob-code blob-code-inner js-file-line">				$classes = &#39;post_box&#39;;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L145" class="blob-num js-line-number js-blob-rnum" data-line-number="145"></td>
          <td id="file-custom_functions-php-LC145" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L146" class="blob-num js-line-number js-blob-rnum" data-line-number="146"></td>
          <td id="file-custom_functions-php-LC146" class="blob-code blob-code-inner js-file-line">				if ($post_count == 1)</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L147" class="blob-num js-line-number js-blob-rnum" data-line-number="147"></td>
          <td id="file-custom_functions-php-LC147" class="blob-code blob-code-inner js-file-line">					$classes .= &#39; top&#39;;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L148" class="blob-num js-line-number js-blob-rnum" data-line-number="148"></td>
          <td id="file-custom_functions-php-LC148" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L149" class="blob-num js-line-number js-blob-rnum" data-line-number="149"></td>
          <td id="file-custom_functions-php-LC149" class="blob-code blob-code-inner js-file-line">				thesis_post_box($classes, $post_count);</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L150" class="blob-num js-line-number js-blob-rnum" data-line-number="150"></td>
          <td id="file-custom_functions-php-LC150" class="blob-code blob-code-inner js-file-line">			}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L151" class="blob-num js-line-number js-blob-rnum" data-line-number="151"></td>
          <td id="file-custom_functions-php-LC151" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L152" class="blob-num js-line-number js-blob-rnum" data-line-number="152"></td>
          <td id="file-custom_functions-php-LC152" class="blob-code blob-code-inner js-file-line">			$post_count++;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L153" class="blob-num js-line-number js-blob-rnum" data-line-number="153"></td>
          <td id="file-custom_functions-php-LC153" class="blob-code blob-code-inner js-file-line">		}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L154" class="blob-num js-line-number js-blob-rnum" data-line-number="154"></td>
          <td id="file-custom_functions-php-LC154" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L155" class="blob-num js-line-number js-blob-rnum" data-line-number="155"></td>
          <td id="file-custom_functions-php-LC155" class="blob-code blob-code-inner js-file-line">		if ((($teaser_count - 1) % 2) == 1)</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L156" class="blob-num js-line-number js-blob-rnum" data-line-number="156"></td>
          <td id="file-custom_functions-php-LC156" class="blob-code blob-code-inner js-file-line">			echo &quot;&lt;/div&gt;&quot;;</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L157" class="blob-num js-line-number js-blob-rnum" data-line-number="157"></td>
          <td id="file-custom_functions-php-LC157" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L158" class="blob-num js-line-number js-blob-rnum" data-line-number="158"></td>
          <td id="file-custom_functions-php-LC158" class="blob-code blob-code-inner js-file-line">}</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L159" class="blob-num js-line-number js-blob-rnum" data-line-number="159"></td>
          <td id="file-custom_functions-php-LC159" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-custom_functions-php-L160" class="blob-num js-line-number js-blob-rnum" data-line-number="160"></td>
          <td id="file-custom_functions-php-LC160" class="blob-code blob-code-inner js-file-line">new thesis_skin_example;</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/mattonomics/1942457/raw/e36cda7cf305662942f663c75b4aabe150a6d5f1/custom_functions.php" style="float:right" class="Link--inTextBlock" rel="nofollow">view raw</a>
        <a href="https://gist.github.com/mattonomics/1942457#file-custom_functions-php" class="Link--inTextBlock" rel="nofollow">
          custom_functions.php
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com" rel="nofollow">GitHub</a>
      </div>
    </div>
</div>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Thesis Child Theme Starter Template</title>
		<link>https://diythemes.com/thesis/rtfm/thesis-child-theme-starter-template/</link>
		
		<dc:creator><![CDATA[mattonomics]]></dc:creator>
		<pubDate>Fri, 02 Mar 2012 17:15:55 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<guid isPermaLink="false">https://diythemes.com/thesis/rtfm/?p=3235</guid>

					<description><![CDATA[Does Thesis support child themes? That is a question many users have. The answer is definitively &#8220;yes&#8221;. This tutorial will show you the best way to make a child theme for Thesis. We&#8217;ll start with a barebones class, then add in some flair to show you the possibilities. I think you&#8217;ll be delighted by how [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Does Thesis support child themes? That is a question many users have. The answer is definitively &#8220;yes&#8221;.</p>
<p>This tutorial will show you the best way to make a child theme for Thesis. We&#8217;ll start with a barebones class, then add in some flair to show you the possibilities. I think you&#8217;ll be delighted by how simple making a child theme with Thesis really is.</p>
<p>If you aren&#8217;t familiar with the <a title="Thesis Custom Loop API" href="/thesis/rtfm/custom-loop-api/">Thesis Custom Loop API</a>, quickly run over it as it is the foundation for what we&#8217;ll cover here.</p>
<h2>The Basics</h2>
<p>Every child theme needs to have, at the very least, a style.css. In theory, your whole child theme could simply be that one file. The basic example includes the necessary header information and one line of CSS.</p>
<p>The functions.php file, though not required by WordPress, is where all of your Thesis child theme customizations should occur. Do not include a custom folder with child themes! Thesis custom folders belong to Thesis, not the child theme.</p>
<p>It is important to point out that WordPress treats child themes in an interesting way. The child theme&#8217;s functions.php file is actually included before the parent theme&#8217;s. That means that each Thesis child theme must first include Thesis&#8217; functions.php file in order to access the yummy Thesis goodness contained within.</p>
<p>You may also notice that we are using a class instead of a bunch of disparate functions. This is for a few reasons:</p>
<ol>
<li>To use the Custom Loop API</li>
<li>Better organization</li>
<li>Classes are how you will interact with Thesis 2.0, so you need to understand them</li>
</ol>
<p>To use the child theme:</p>
<ol>
<li>Create a folder in the themes directory</li>
<li>Create a style.css file and a functions.php file</li>
<li>Copy/paste the code below to the relevant file</li>
<li>Navigate to Appearance &gt; Themes and Switch to the child theme</li>
<li>Visit your home page. The background should be black.</li>
</ol>
<div id="gist1950500" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-functions-php" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-php  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="functions.php content, created by mattonomics on 03:25PM on March 01, 2012."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank" rel="nofollow">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn" rel="nofollow">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="8" data-paste-markdown-skip data-tagsearch-path="functions.php">
        <tr>
          <td id="file-functions-php-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-functions-php-LC1" class="blob-code blob-code-inner js-file-line">&lt;?php</td>
        </tr>
        <tr>
          <td id="file-functions-php-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-functions-php-LC2" class="blob-code blob-code-inner js-file-line">// Iinitial sanity check</td>
        </tr>
        <tr>
          <td id="file-functions-php-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-functions-php-LC3" class="blob-code blob-code-inner js-file-line">if (! defined(&#39;ABSPATH&#39;))</td>
        </tr>
        <tr>
          <td id="file-functions-php-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-functions-php-LC4" class="blob-code blob-code-inner js-file-line">	die(&#39;Please do not directly access this file&#39;);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-functions-php-LC5" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-functions-php-LC6" class="blob-code blob-code-inner js-file-line">// Bring in the main functions file so we have access to all the yummy Thesis goodness</td>
        </tr>
        <tr>
          <td id="file-functions-php-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-functions-php-LC7" class="blob-code blob-code-inner js-file-line">include_once(TEMPLATEPATH . &#39;/functions.php&#39;);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-functions-php-LC8" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-functions-php-LC9" class="blob-code blob-code-inner js-file-line">// we encourage you to set up a class. classes are a VERY important part of 2.0, so you need to be familiar with them.</td>
        </tr>
        <tr>
          <td id="file-functions-php-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-functions-php-LC10" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-functions-php-LC11" class="blob-code blob-code-inner js-file-line">class thesis_child_theme_example extends thesis_custom_loop {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-functions-php-LC12" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-functions-php-LC13" class="blob-code blob-code-inner js-file-line">	public function __construct() {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-functions-php-LC14" class="blob-code blob-code-inner js-file-line">		// run the parent constructor so we can access the thesis custom loop api</td>
        </tr>
        <tr>
          <td id="file-functions-php-L15" class="blob-num js-line-number js-blob-rnum" data-line-number="15"></td>
          <td id="file-functions-php-LC15" class="blob-code blob-code-inner js-file-line">		parent::__construct();</td>
        </tr>
        <tr>
          <td id="file-functions-php-L16" class="blob-num js-line-number js-blob-rnum" data-line-number="16"></td>
          <td id="file-functions-php-LC16" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L17" class="blob-num js-line-number js-blob-rnum" data-line-number="17"></td>
          <td id="file-functions-php-LC17" class="blob-code blob-code-inner js-file-line">		// run the main init</td>
        </tr>
        <tr>
          <td id="file-functions-php-L18" class="blob-num js-line-number js-blob-rnum" data-line-number="18"></td>
          <td id="file-functions-php-LC18" class="blob-code blob-code-inner js-file-line">		add_action(&#39;init&#39;, array($this, &#39;init&#39;));</td>
        </tr>
        <tr>
          <td id="file-functions-php-L19" class="blob-num js-line-number js-blob-rnum" data-line-number="19"></td>
          <td id="file-functions-php-LC19" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L20" class="blob-num js-line-number js-blob-rnum" data-line-number="20"></td>
          <td id="file-functions-php-LC20" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-functions-php-L21" class="blob-num js-line-number js-blob-rnum" data-line-number="21"></td>
          <td id="file-functions-php-LC21" class="blob-code blob-code-inner js-file-line">	public function init() {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L22" class="blob-num js-line-number js-blob-rnum" data-line-number="22"></td>
          <td id="file-functions-php-LC22" class="blob-code blob-code-inner js-file-line">		// actions and filters that will run on init. you could put other things here if you need.</td>
        </tr>
        <tr>
          <td id="file-functions-php-L23" class="blob-num js-line-number js-blob-rnum" data-line-number="23"></td>
          <td id="file-functions-php-LC23" class="blob-code blob-code-inner js-file-line">		$this-&gt;actions();</td>
        </tr>
        <tr>
          <td id="file-functions-php-L24" class="blob-num js-line-number js-blob-rnum" data-line-number="24"></td>
          <td id="file-functions-php-LC24" class="blob-code blob-code-inner js-file-line">		$this-&gt;filters();</td>
        </tr>
        <tr>
          <td id="file-functions-php-L25" class="blob-num js-line-number js-blob-rnum" data-line-number="25"></td>
          <td id="file-functions-php-LC25" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L26" class="blob-num js-line-number js-blob-rnum" data-line-number="26"></td>
          <td id="file-functions-php-LC26" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-functions-php-L27" class="blob-num js-line-number js-blob-rnum" data-line-number="27"></td>
          <td id="file-functions-php-LC27" class="blob-code blob-code-inner js-file-line">	public function actions() {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L28" class="blob-num js-line-number js-blob-rnum" data-line-number="28"></td>
          <td id="file-functions-php-LC28" class="blob-code blob-code-inner js-file-line">		// add and remove actions here</td>
        </tr>
        <tr>
          <td id="file-functions-php-L29" class="blob-num js-line-number js-blob-rnum" data-line-number="29"></td>
          <td id="file-functions-php-LC29" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L30" class="blob-num js-line-number js-blob-rnum" data-line-number="30"></td>
          <td id="file-functions-php-LC30" class="blob-code blob-code-inner js-file-line">		// this will force thesis to generate CSS when the user switches to the child</td>
        </tr>
        <tr>
          <td id="file-functions-php-L31" class="blob-num js-line-number js-blob-rnum" data-line-number="31"></td>
          <td id="file-functions-php-LC31" class="blob-code blob-code-inner js-file-line">		add_action(&#39;after_switch_theme&#39;, &#39;thesis_generate_css&#39;);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L32" class="blob-num js-line-number js-blob-rnum" data-line-number="32"></td>
          <td id="file-functions-php-LC32" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L33" class="blob-num js-line-number js-blob-rnum" data-line-number="33"></td>
          <td id="file-functions-php-LC33" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-functions-php-L34" class="blob-num js-line-number js-blob-rnum" data-line-number="34"></td>
          <td id="file-functions-php-LC34" class="blob-code blob-code-inner js-file-line">	public function filters() {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L35" class="blob-num js-line-number js-blob-rnum" data-line-number="35"></td>
          <td id="file-functions-php-LC35" class="blob-code blob-code-inner js-file-line">		// add and remove filters here</td>
        </tr>
        <tr>
          <td id="file-functions-php-L36" class="blob-num js-line-number js-blob-rnum" data-line-number="36"></td>
          <td id="file-functions-php-LC36" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L37" class="blob-num js-line-number js-blob-rnum" data-line-number="37"></td>
          <td id="file-functions-php-LC37" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-functions-php-L38" class="blob-num js-line-number js-blob-rnum" data-line-number="38"></td>
          <td id="file-functions-php-LC38" class="blob-code blob-code-inner js-file-line">	public function home() {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L39" class="blob-num js-line-number js-blob-rnum" data-line-number="39"></td>
          <td id="file-functions-php-LC39" class="blob-code blob-code-inner js-file-line">		thesis_loop::home(); // remove this line and enter your custom loop</td>
        </tr>
        <tr>
          <td id="file-functions-php-L40" class="blob-num js-line-number js-blob-rnum" data-line-number="40"></td>
          <td id="file-functions-php-LC40" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L41" class="blob-num js-line-number js-blob-rnum" data-line-number="41"></td>
          <td id="file-functions-php-LC41" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L42" class="blob-num js-line-number js-blob-rnum" data-line-number="42"></td>
          <td id="file-functions-php-LC42" class="blob-code blob-code-inner js-file-line">	public function archive() {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L43" class="blob-num js-line-number js-blob-rnum" data-line-number="43"></td>
          <td id="file-functions-php-LC43" class="blob-code blob-code-inner js-file-line">		thesis_loop::archive(); // remove this line and enter your custom loop</td>
        </tr>
        <tr>
          <td id="file-functions-php-L44" class="blob-num js-line-number js-blob-rnum" data-line-number="44"></td>
          <td id="file-functions-php-LC44" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L45" class="blob-num js-line-number js-blob-rnum" data-line-number="45"></td>
          <td id="file-functions-php-LC45" class="blob-code blob-code-inner js-file-line">}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L46" class="blob-num js-line-number js-blob-rnum" data-line-number="46"></td>
          <td id="file-functions-php-LC46" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L47" class="blob-num js-line-number js-blob-rnum" data-line-number="47"></td>
          <td id="file-functions-php-LC47" class="blob-code blob-code-inner js-file-line">new thesis_child_theme_example;</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/mattonomics/1950500/raw/9d8281ef1419e3aaf4933b5732d40aa7e88e511d/functions.php" style="float:right" class="Link--inTextBlock" rel="nofollow">view raw</a>
        <a href="https://gist.github.com/mattonomics/1950500#file-functions-php" class="Link--inTextBlock" rel="nofollow">
          functions.php
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com" rel="nofollow">GitHub</a>
      </div>
    </div>
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-style-css" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-css  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="style.css content, created by mattonomics on 03:25PM on March 01, 2012."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank" rel="nofollow">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn" rel="nofollow">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="8" data-paste-markdown-skip data-tagsearch-path="style.css">
        <tr>
          <td id="file-style-css-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-style-css-LC1" class="blob-code blob-code-inner js-file-line">/*</td>
        </tr>
        <tr>
          <td id="file-style-css-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-style-css-LC2" class="blob-code blob-code-inner js-file-line">Theme Name:     Thesis Theme Example Child</td>
        </tr>
        <tr>
          <td id="file-style-css-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-style-css-LC3" class="blob-code blob-code-inner js-file-line">Theme URI:      http://diythemes.com/plans/</td>
        </tr>
        <tr>
          <td id="file-style-css-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-style-css-LC4" class="blob-code blob-code-inner js-file-line">Description:    Child theme for the Thesis</td>
        </tr>
        <tr>
          <td id="file-style-css-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-style-css-LC5" class="blob-code blob-code-inner js-file-line">Author:         DIYthemes - Matt Gross</td>
        </tr>
        <tr>
          <td id="file-style-css-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-style-css-LC6" class="blob-code blob-code-inner js-file-line">Author URI:     http://diythemes.com</td>
        </tr>
        <tr>
          <td id="file-style-css-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-style-css-LC7" class="blob-code blob-code-inner js-file-line">Template:       thesis_184</td>
        </tr>
        <tr>
          <td id="file-style-css-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-style-css-LC8" class="blob-code blob-code-inner js-file-line">Version:        1.0</td>
        </tr>
        <tr>
          <td id="file-style-css-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-style-css-LC9" class="blob-code blob-code-inner js-file-line">*/</td>
        </tr>
        <tr>
          <td id="file-style-css-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-style-css-LC10" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-style-css-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-style-css-LC11" class="blob-code blob-code-inner js-file-line">/*---:[ body ]:---*/</td>
        </tr>
        <tr>
          <td id="file-style-css-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-style-css-LC12" class="blob-code blob-code-inner js-file-line">body { background: #000; }</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/mattonomics/1950500/raw/9d8281ef1419e3aaf4933b5732d40aa7e88e511d/style.css" style="float:right" class="Link--inTextBlock" rel="nofollow">view raw</a>
        <a href="https://gist.github.com/mattonomics/1950500#file-style-css" class="Link--inTextBlock" rel="nofollow">
          style.css
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com" rel="nofollow">GitHub</a>
      </div>
    </div>
</div>

<h2>Advanced Customization</h2>
<p>Now that we&#8217;ve covered the basics, lets dive into some real customization. Basically, what we&#8217;re doing here is:</p>
<ul>
<li>forcing Thesis to regenerate CSS</li>
<li>exclude the Thesis style.css and include the child&#8217;s style.css</li>
<li>filter out styles related to the nav coloring, then adding our own back int</li>
<li>remove the containing div from around the nav menu</li>
</ul>
<p>Be sure to copy/paste the code below to the correct files.</p>
<div id="gist1950695" class="gist">
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-functions-php" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-php  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="functions.php content, created by mattonomics on 03:58PM on March 01, 2012."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank" rel="nofollow">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn" rel="nofollow">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="8" data-paste-markdown-skip data-tagsearch-path="functions.php">
        <tr>
          <td id="file-functions-php-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-functions-php-LC1" class="blob-code blob-code-inner js-file-line">&lt;?php</td>
        </tr>
        <tr>
          <td id="file-functions-php-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-functions-php-LC2" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-functions-php-LC3" class="blob-code blob-code-inner js-file-line">if (! defined(&#39;ABSPATH&#39;))</td>
        </tr>
        <tr>
          <td id="file-functions-php-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-functions-php-LC4" class="blob-code blob-code-inner js-file-line">	die(&#39;Please do not directly access this file&#39;);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-functions-php-LC5" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-functions-php-LC6" class="blob-code blob-code-inner js-file-line">include_once(TEMPLATEPATH . &#39;/functions.php&#39;);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-functions-php-LC7" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-functions-php-LC8" class="blob-code blob-code-inner js-file-line">class thesis_child_theme_example extends thesis_custom_loop {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-functions-php-LC9" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-functions-php-LC10" class="blob-code blob-code-inner js-file-line">	public function __construct() {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-functions-php-LC11" class="blob-code blob-code-inner js-file-line">		parent::__construct();</td>
        </tr>
        <tr>
          <td id="file-functions-php-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-functions-php-LC12" class="blob-code blob-code-inner js-file-line">		add_action(&#39;init&#39;, array($this, &#39;init&#39;));</td>
        </tr>
        <tr>
          <td id="file-functions-php-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-functions-php-LC13" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-functions-php-LC14" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-functions-php-L15" class="blob-num js-line-number js-blob-rnum" data-line-number="15"></td>
          <td id="file-functions-php-LC15" class="blob-code blob-code-inner js-file-line">	public function init() {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L16" class="blob-num js-line-number js-blob-rnum" data-line-number="16"></td>
          <td id="file-functions-php-LC16" class="blob-code blob-code-inner js-file-line">		// actions and filters that will run on init. you could put other things here if you need.</td>
        </tr>
        <tr>
          <td id="file-functions-php-L17" class="blob-num js-line-number js-blob-rnum" data-line-number="17"></td>
          <td id="file-functions-php-LC17" class="blob-code blob-code-inner js-file-line">		$this-&gt;actions();</td>
        </tr>
        <tr>
          <td id="file-functions-php-L18" class="blob-num js-line-number js-blob-rnum" data-line-number="18"></td>
          <td id="file-functions-php-LC18" class="blob-code blob-code-inner js-file-line">		$this-&gt;filters();</td>
        </tr>
        <tr>
          <td id="file-functions-php-L19" class="blob-num js-line-number js-blob-rnum" data-line-number="19"></td>
          <td id="file-functions-php-LC19" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L20" class="blob-num js-line-number js-blob-rnum" data-line-number="20"></td>
          <td id="file-functions-php-LC20" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-functions-php-L21" class="blob-num js-line-number js-blob-rnum" data-line-number="21"></td>
          <td id="file-functions-php-LC21" class="blob-code blob-code-inner js-file-line">	public function actions() {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L22" class="blob-num js-line-number js-blob-rnum" data-line-number="22"></td>
          <td id="file-functions-php-LC22" class="blob-code blob-code-inner js-file-line">		// add and remove actions here</td>
        </tr>
        <tr>
          <td id="file-functions-php-L23" class="blob-num js-line-number js-blob-rnum" data-line-number="23"></td>
          <td id="file-functions-php-LC23" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L24" class="blob-num js-line-number js-blob-rnum" data-line-number="24"></td>
          <td id="file-functions-php-LC24" class="blob-code blob-code-inner js-file-line">		// this will force thesis to generate CSS when the user switches to the child</td>
        </tr>
        <tr>
          <td id="file-functions-php-L25" class="blob-num js-line-number js-blob-rnum" data-line-number="25"></td>
          <td id="file-functions-php-LC25" class="blob-code blob-code-inner js-file-line">		add_action(&#39;after_switch_theme&#39;, &#39;thesis_generate_css&#39;);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L26" class="blob-num js-line-number js-blob-rnum" data-line-number="26"></td>
          <td id="file-functions-php-LC26" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L27" class="blob-num js-line-number js-blob-rnum" data-line-number="27"></td>
          <td id="file-functions-php-LC27" class="blob-code blob-code-inner js-file-line">		// modify the nav menu to exclude the div wrapper that WP defaults to</td>
        </tr>
        <tr>
          <td id="file-functions-php-L28" class="blob-num js-line-number js-blob-rnum" data-line-number="28"></td>
          <td id="file-functions-php-LC28" class="blob-code blob-code-inner js-file-line">		remove_action(&#39;thesis_hook_before_header&#39;, &#39;thesis_nav_menu&#39;);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L29" class="blob-num js-line-number js-blob-rnum" data-line-number="29"></td>
          <td id="file-functions-php-LC29" class="blob-code blob-code-inner js-file-line">		add_action(&#39;thesis_hook_before_header&#39;, array($this, &#39;nav&#39;));</td>
        </tr>
        <tr>
          <td id="file-functions-php-L30" class="blob-num js-line-number js-blob-rnum" data-line-number="30"></td>
          <td id="file-functions-php-LC30" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L31" class="blob-num js-line-number js-blob-rnum" data-line-number="31"></td>
          <td id="file-functions-php-LC31" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-functions-php-L32" class="blob-num js-line-number js-blob-rnum" data-line-number="32"></td>
          <td id="file-functions-php-LC32" class="blob-code blob-code-inner js-file-line">	public function filters() {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L33" class="blob-num js-line-number js-blob-rnum" data-line-number="33"></td>
          <td id="file-functions-php-LC33" class="blob-code blob-code-inner js-file-line">		// add and remove filters here</td>
        </tr>
        <tr>
          <td id="file-functions-php-L34" class="blob-num js-line-number js-blob-rnum" data-line-number="34"></td>
          <td id="file-functions-php-LC34" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L35" class="blob-num js-line-number js-blob-rnum" data-line-number="35"></td>
          <td id="file-functions-php-LC35" class="blob-code blob-code-inner js-file-line">		/* </td>
        </tr>
        <tr>
          <td id="file-functions-php-L36" class="blob-num js-line-number js-blob-rnum" data-line-number="36"></td>
          <td id="file-functions-php-LC36" class="blob-code blob-code-inner js-file-line">		*	Filter out the standard thesis style.css. </td>
        </tr>
        <tr>
          <td id="file-functions-php-L37" class="blob-num js-line-number js-blob-rnum" data-line-number="37"></td>
          <td id="file-functions-php-LC37" class="blob-code blob-code-inner js-file-line">		*	Run this with a priority of 11 if you want to make sure the gravity forms css gets added.</td>
        </tr>
        <tr>
          <td id="file-functions-php-L38" class="blob-num js-line-number js-blob-rnum" data-line-number="38"></td>
          <td id="file-functions-php-LC38" class="blob-code blob-code-inner js-file-line">		*/</td>
        </tr>
        <tr>
          <td id="file-functions-php-L39" class="blob-num js-line-number js-blob-rnum" data-line-number="39"></td>
          <td id="file-functions-php-LC39" class="blob-code blob-code-inner js-file-line">		add_filter(&#39;thesis_css&#39;, array($this, &#39;css&#39;), 11, 5);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L40" class="blob-num js-line-number js-blob-rnum" data-line-number="40"></td>
          <td id="file-functions-php-LC40" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L41" class="blob-num js-line-number js-blob-rnum" data-line-number="41"></td>
          <td id="file-functions-php-LC41" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-functions-php-L42" class="blob-num js-line-number js-blob-rnum" data-line-number="42"></td>
          <td id="file-functions-php-LC42" class="blob-code blob-code-inner js-file-line">	public function css($contents, $thesis_css, $style, $multisite, $child) {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L43" class="blob-num js-line-number js-blob-rnum" data-line-number="43"></td>
          <td id="file-functions-php-LC43" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L44" class="blob-num js-line-number js-blob-rnum" data-line-number="44"></td>
          <td id="file-functions-php-LC44" class="blob-code blob-code-inner js-file-line">		// filter the Thesis generated css. in this example we&#39;re removing all the nav styles related to color</td>
        </tr>
        <tr>
          <td id="file-functions-php-L45" class="blob-num js-line-number js-blob-rnum" data-line-number="45"></td>
          <td id="file-functions-php-LC45" class="blob-code blob-code-inner js-file-line">		$generated_css = $this-&gt;filter_css($thesis_css-&gt;css);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L46" class="blob-num js-line-number js-blob-rnum" data-line-number="46"></td>
          <td id="file-functions-php-LC46" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L47" class="blob-num js-line-number js-blob-rnum" data-line-number="47"></td>
          <td id="file-functions-php-LC47" class="blob-code blob-code-inner js-file-line">		/* </td>
        </tr>
        <tr>
          <td id="file-functions-php-L48" class="blob-num js-line-number js-blob-rnum" data-line-number="48"></td>
          <td id="file-functions-php-LC48" class="blob-code blob-code-inner js-file-line">		*	You can access the thesis_css object, which contains a variety of settings. </td>
        </tr>
        <tr>
          <td id="file-functions-php-L49" class="blob-num js-line-number js-blob-rnum" data-line-number="49"></td>
          <td id="file-functions-php-LC49" class="blob-code blob-code-inner js-file-line">		*	As an example, I&#39;ll show you how to access nav text color.</td>
        </tr>
        <tr>
          <td id="file-functions-php-L50" class="blob-num js-line-number js-blob-rnum" data-line-number="50"></td>
          <td id="file-functions-php-LC50" class="blob-code blob-code-inner js-file-line">		*	Remember that you can always do this in style.css if you don&#39;t care about users having control over the colors </td>
        </tr>
        <tr>
          <td id="file-functions-php-L51" class="blob-num js-line-number js-blob-rnum" data-line-number="51"></td>
          <td id="file-functions-php-LC51" class="blob-code blob-code-inner js-file-line">		*/</td>
        </tr>
        <tr>
          <td id="file-functions-php-L52" class="blob-num js-line-number js-blob-rnum" data-line-number="52"></td>
          <td id="file-functions-php-LC52" class="blob-code blob-code-inner js-file-line">		$my_css = &quot;n/*---:[ my nav menu styles ]:---*/n&quot; // it&#39;s always a good idea to add in comments as to what you&#39;re adding</td>
        </tr>
        <tr>
          <td id="file-functions-php-L53" class="blob-num js-line-number js-blob-rnum" data-line-number="53"></td>
          <td id="file-functions-php-LC53" class="blob-code blob-code-inner js-file-line">				. &quot;.menu li a { color: #{$thesis_css-&gt;nav[&#39;link&#39;][&#39;color&#39;]} }n&quot;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L54" class="blob-num js-line-number js-blob-rnum" data-line-number="54"></td>
          <td id="file-functions-php-LC54" class="blob-code blob-code-inner js-file-line">				. &quot;.menu li a:hover { color: #{$thesis_css-&gt;nav[&#39;link&#39;][&#39;hover&#39;]} }nn&quot;;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L55" class="blob-num js-line-number js-blob-rnum" data-line-number="55"></td>
          <td id="file-functions-php-LC55" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L56" class="blob-num js-line-number js-blob-rnum" data-line-number="56"></td>
          <td id="file-functions-php-LC56" class="blob-code blob-code-inner js-file-line">		// put in everything except the main thesis style.css. also add an initial css reset</td>
        </tr>
        <tr>
          <td id="file-functions-php-L57" class="blob-num js-line-number js-blob-rnum" data-line-number="57"></td>
          <td id="file-functions-php-LC57" class="blob-code blob-code-inner js-file-line">		$css = $thesis_css-&gt;fonts_to_import . $this-&gt;css_reset . $generated_css . $my_css . $child;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L58" class="blob-num js-line-number js-blob-rnum" data-line-number="58"></td>
          <td id="file-functions-php-LC58" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L59" class="blob-num js-line-number js-blob-rnum" data-line-number="59"></td>
          <td id="file-functions-php-LC59" class="blob-code blob-code-inner js-file-line">		// return it</td>
        </tr>
        <tr>
          <td id="file-functions-php-L60" class="blob-num js-line-number js-blob-rnum" data-line-number="60"></td>
          <td id="file-functions-php-LC60" class="blob-code blob-code-inner js-file-line">		return $css;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L61" class="blob-num js-line-number js-blob-rnum" data-line-number="61"></td>
          <td id="file-functions-php-LC61" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L62" class="blob-num js-line-number js-blob-rnum" data-line-number="62"></td>
          <td id="file-functions-php-LC62" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-functions-php-L63" class="blob-num js-line-number js-blob-rnum" data-line-number="63"></td>
          <td id="file-functions-php-LC63" class="blob-code blob-code-inner js-file-line">	public function filter_css($css) {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L64" class="blob-num js-line-number js-blob-rnum" data-line-number="64"></td>
          <td id="file-functions-php-LC64" class="blob-code blob-code-inner js-file-line">		if (! empty($css)) {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L65" class="blob-num js-line-number js-blob-rnum" data-line-number="65"></td>
          <td id="file-functions-php-LC65" class="blob-code blob-code-inner js-file-line">			</td>
        </tr>
        <tr>
          <td id="file-functions-php-L66" class="blob-num js-line-number js-blob-rnum" data-line-number="66"></td>
          <td id="file-functions-php-LC66" class="blob-code blob-code-inner js-file-line">			// remove the nav colors</td>
        </tr>
        <tr>
          <td id="file-functions-php-L67" class="blob-num js-line-number js-blob-rnum" data-line-number="67"></td>
          <td id="file-functions-php-LC67" class="blob-code blob-code-inner js-file-line">			if (preg_match(&#39;|/*---:[ nav colors ]:---*/(n.+){7}|i&#39;, $css))</td>
        </tr>
        <tr>
          <td id="file-functions-php-L68" class="blob-num js-line-number js-blob-rnum" data-line-number="68"></td>
          <td id="file-functions-php-LC68" class="blob-code blob-code-inner js-file-line">				$css = preg_replace(&#39;|/*---:[ nav colors ]:---*/(n.+){7}|i&#39;, &#39;&#39;, $css);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L69" class="blob-num js-line-number js-blob-rnum" data-line-number="69"></td>
          <td id="file-functions-php-LC69" class="blob-code blob-code-inner js-file-line">			</td>
        </tr>
        <tr>
          <td id="file-functions-php-L70" class="blob-num js-line-number js-blob-rnum" data-line-number="70"></td>
          <td id="file-functions-php-LC70" class="blob-code blob-code-inner js-file-line">			// you could add more filtering here</td>
        </tr>
        <tr>
          <td id="file-functions-php-L71" class="blob-num js-line-number js-blob-rnum" data-line-number="71"></td>
          <td id="file-functions-php-LC71" class="blob-code blob-code-inner js-file-line">		}		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L72" class="blob-num js-line-number js-blob-rnum" data-line-number="72"></td>
          <td id="file-functions-php-LC72" class="blob-code blob-code-inner js-file-line">		return $css;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L73" class="blob-num js-line-number js-blob-rnum" data-line-number="73"></td>
          <td id="file-functions-php-LC73" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L74" class="blob-num js-line-number js-blob-rnum" data-line-number="74"></td>
          <td id="file-functions-php-LC74" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-functions-php-L75" class="blob-num js-line-number js-blob-rnum" data-line-number="75"></td>
          <td id="file-functions-php-LC75" class="blob-code blob-code-inner js-file-line">	public function nav() {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L76" class="blob-num js-line-number js-blob-rnum" data-line-number="76"></td>
          <td id="file-functions-php-LC76" class="blob-code blob-code-inner js-file-line">		global $thesis_site;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L77" class="blob-num js-line-number js-blob-rnum" data-line-number="77"></td>
          <td id="file-functions-php-LC77" class="blob-code blob-code-inner js-file-line">		if (function_exists(&#39;wp_nav_menu&#39;) &amp;&amp; $thesis_site-&gt;nav[&#39;type&#39;] == &#39;wp&#39;) { #wp</td>
        </tr>
        <tr>
          <td id="file-functions-php-L78" class="blob-num js-line-number js-blob-rnum" data-line-number="78"></td>
          <td id="file-functions-php-LC78" class="blob-code blob-code-inner js-file-line">			$args = array(</td>
        </tr>
        <tr>
          <td id="file-functions-php-L79" class="blob-num js-line-number js-blob-rnum" data-line-number="79"></td>
          <td id="file-functions-php-LC79" class="blob-code blob-code-inner js-file-line">				&#39;theme_location&#39; =&gt; &#39;primary&#39;,</td>
        </tr>
        <tr>
          <td id="file-functions-php-L80" class="blob-num js-line-number js-blob-rnum" data-line-number="80"></td>
          <td id="file-functions-php-LC80" class="blob-code blob-code-inner js-file-line">				&#39;container&#39; =&gt; &#39;&#39;,</td>
        </tr>
        <tr>
          <td id="file-functions-php-L81" class="blob-num js-line-number js-blob-rnum" data-line-number="81"></td>
          <td id="file-functions-php-LC81" class="blob-code blob-code-inner js-file-line">				&#39;fallback_cb&#39; =&gt; &#39;thesis_nav_default&#39;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L82" class="blob-num js-line-number js-blob-rnum" data-line-number="82"></td>
          <td id="file-functions-php-LC82" class="blob-code blob-code-inner js-file-line">			);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L83" class="blob-num js-line-number js-blob-rnum" data-line-number="83"></td>
          <td id="file-functions-php-LC83" class="blob-code blob-code-inner js-file-line">			wp_nav_menu($args); #wp</td>
        </tr>
        <tr>
          <td id="file-functions-php-L84" class="blob-num js-line-number js-blob-rnum" data-line-number="84"></td>
          <td id="file-functions-php-LC84" class="blob-code blob-code-inner js-file-line">			echo &quot;n&quot;;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L85" class="blob-num js-line-number js-blob-rnum" data-line-number="85"></td>
          <td id="file-functions-php-LC85" class="blob-code blob-code-inner js-file-line">		}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L86" class="blob-num js-line-number js-blob-rnum" data-line-number="86"></td>
          <td id="file-functions-php-LC86" class="blob-code blob-code-inner js-file-line">		else</td>
        </tr>
        <tr>
          <td id="file-functions-php-L87" class="blob-num js-line-number js-blob-rnum" data-line-number="87"></td>
          <td id="file-functions-php-LC87" class="blob-code blob-code-inner js-file-line">			thesis_nav_default();</td>
        </tr>
        <tr>
          <td id="file-functions-php-L88" class="blob-num js-line-number js-blob-rnum" data-line-number="88"></td>
          <td id="file-functions-php-LC88" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L89" class="blob-num js-line-number js-blob-rnum" data-line-number="89"></td>
          <td id="file-functions-php-LC89" class="blob-code blob-code-inner js-file-line">	</td>
        </tr>
        <tr>
          <td id="file-functions-php-L90" class="blob-num js-line-number js-blob-rnum" data-line-number="90"></td>
          <td id="file-functions-php-LC90" class="blob-code blob-code-inner js-file-line">	public function home() {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L91" class="blob-num js-line-number js-blob-rnum" data-line-number="91"></td>
          <td id="file-functions-php-LC91" class="blob-code blob-code-inner js-file-line">		$post_count = 1;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L92" class="blob-num js-line-number js-blob-rnum" data-line-number="92"></td>
          <td id="file-functions-php-LC92" class="blob-code blob-code-inner js-file-line">		$teaser_count = 1;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L93" class="blob-num js-line-number js-blob-rnum" data-line-number="93"></td>
          <td id="file-functions-php-LC93" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L94" class="blob-num js-line-number js-blob-rnum" data-line-number="94"></td>
          <td id="file-functions-php-LC94" class="blob-code blob-code-inner js-file-line">		$args = array(</td>
        </tr>
        <tr>
          <td id="file-functions-php-L95" class="blob-num js-line-number js-blob-rnum" data-line-number="95"></td>
          <td id="file-functions-php-LC95" class="blob-code blob-code-inner js-file-line">			&#39;category__not_in&#39; =&gt; array(1)</td>
        </tr>
        <tr>
          <td id="file-functions-php-L96" class="blob-num js-line-number js-blob-rnum" data-line-number="96"></td>
          <td id="file-functions-php-LC96" class="blob-code blob-code-inner js-file-line">		);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L97" class="blob-num js-line-number js-blob-rnum" data-line-number="97"></td>
          <td id="file-functions-php-LC97" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L98" class="blob-num js-line-number js-blob-rnum" data-line-number="98"></td>
          <td id="file-functions-php-LC98" class="blob-code blob-code-inner js-file-line">		$home_query = new WP_Query($args);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L99" class="blob-num js-line-number js-blob-rnum" data-line-number="99"></td>
          <td id="file-functions-php-LC99" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L100" class="blob-num js-line-number js-blob-rnum" data-line-number="100"></td>
          <td id="file-functions-php-LC100" class="blob-code blob-code-inner js-file-line">		while ($home_query-&gt;have_posts()) {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L101" class="blob-num js-line-number js-blob-rnum" data-line-number="101"></td>
          <td id="file-functions-php-LC101" class="blob-code blob-code-inner js-file-line">			$home_query-&gt;the_post();</td>
        </tr>
        <tr>
          <td id="file-functions-php-L102" class="blob-num js-line-number js-blob-rnum" data-line-number="102"></td>
          <td id="file-functions-php-LC102" class="blob-code blob-code-inner js-file-line">			</td>
        </tr>
        <tr>
          <td id="file-functions-php-L103" class="blob-num js-line-number js-blob-rnum" data-line-number="103"></td>
          <td id="file-functions-php-LC103" class="blob-code blob-code-inner js-file-line">			if (apply_filters(&#39;thesis_is_teaser&#39;, thesis_is_teaser($post_count))) {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L104" class="blob-num js-line-number js-blob-rnum" data-line-number="104"></td>
          <td id="file-functions-php-LC104" class="blob-code blob-code-inner js-file-line">				if (($teaser_count % 2) == 1) {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L105" class="blob-num js-line-number js-blob-rnum" data-line-number="105"></td>
          <td id="file-functions-php-LC105" class="blob-code blob-code-inner js-file-line">					$top = ($post_count == 1) ? &#39; top&#39; : &#39;&#39;;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L106" class="blob-num js-line-number js-blob-rnum" data-line-number="106"></td>
          <td id="file-functions-php-LC106" class="blob-code blob-code-inner js-file-line">					$open_box = &quot;ttt&lt;div class=&quot;teasers_box$top&quot;&gt;nn&quot;;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L107" class="blob-num js-line-number js-blob-rnum" data-line-number="107"></td>
          <td id="file-functions-php-LC107" class="blob-code blob-code-inner js-file-line">					$close_box = &#39;&#39;;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L108" class="blob-num js-line-number js-blob-rnum" data-line-number="108"></td>
          <td id="file-functions-php-LC108" class="blob-code blob-code-inner js-file-line">					$right = false;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L109" class="blob-num js-line-number js-blob-rnum" data-line-number="109"></td>
          <td id="file-functions-php-LC109" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L110" class="blob-num js-line-number js-blob-rnum" data-line-number="110"></td>
          <td id="file-functions-php-LC110" class="blob-code blob-code-inner js-file-line">				else {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L111" class="blob-num js-line-number js-blob-rnum" data-line-number="111"></td>
          <td id="file-functions-php-LC111" class="blob-code blob-code-inner js-file-line">					$open_box = &#39;&#39;;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L112" class="blob-num js-line-number js-blob-rnum" data-line-number="112"></td>
          <td id="file-functions-php-LC112" class="blob-code blob-code-inner js-file-line">					$close_box = &quot;ttt&lt;/div&gt;nn&quot;;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L113" class="blob-num js-line-number js-blob-rnum" data-line-number="113"></td>
          <td id="file-functions-php-LC113" class="blob-code blob-code-inner js-file-line">					$right = true;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L114" class="blob-num js-line-number js-blob-rnum" data-line-number="114"></td>
          <td id="file-functions-php-LC114" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L115" class="blob-num js-line-number js-blob-rnum" data-line-number="115"></td>
          <td id="file-functions-php-LC115" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L116" class="blob-num js-line-number js-blob-rnum" data-line-number="116"></td>
          <td id="file-functions-php-LC116" class="blob-code blob-code-inner js-file-line">				if ($open_box != &#39;&#39;) {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L117" class="blob-num js-line-number js-blob-rnum" data-line-number="117"></td>
          <td id="file-functions-php-LC117" class="blob-code blob-code-inner js-file-line">					echo $open_box;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L118" class="blob-num js-line-number js-blob-rnum" data-line-number="118"></td>
          <td id="file-functions-php-LC118" class="blob-code blob-code-inner js-file-line">					thesis_hook_before_teasers_box($post_count);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L119" class="blob-num js-line-number js-blob-rnum" data-line-number="119"></td>
          <td id="file-functions-php-LC119" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L120" class="blob-num js-line-number js-blob-rnum" data-line-number="120"></td>
          <td id="file-functions-php-LC120" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L121" class="blob-num js-line-number js-blob-rnum" data-line-number="121"></td>
          <td id="file-functions-php-LC121" class="blob-code blob-code-inner js-file-line">				thesis_teaser($classes, $post_count, $right);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L122" class="blob-num js-line-number js-blob-rnum" data-line-number="122"></td>
          <td id="file-functions-php-LC122" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L123" class="blob-num js-line-number js-blob-rnum" data-line-number="123"></td>
          <td id="file-functions-php-LC123" class="blob-code blob-code-inner js-file-line">				if ($close_box != &#39;&#39;) {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L124" class="blob-num js-line-number js-blob-rnum" data-line-number="124"></td>
          <td id="file-functions-php-LC124" class="blob-code blob-code-inner js-file-line">					echo $close_box;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L125" class="blob-num js-line-number js-blob-rnum" data-line-number="125"></td>
          <td id="file-functions-php-LC125" class="blob-code blob-code-inner js-file-line">					thesis_hook_after_teasers_box($post_count);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L126" class="blob-num js-line-number js-blob-rnum" data-line-number="126"></td>
          <td id="file-functions-php-LC126" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L127" class="blob-num js-line-number js-blob-rnum" data-line-number="127"></td>
          <td id="file-functions-php-LC127" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L128" class="blob-num js-line-number js-blob-rnum" data-line-number="128"></td>
          <td id="file-functions-php-LC128" class="blob-code blob-code-inner js-file-line">				$teaser_count++;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L129" class="blob-num js-line-number js-blob-rnum" data-line-number="129"></td>
          <td id="file-functions-php-LC129" class="blob-code blob-code-inner js-file-line">			}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L130" class="blob-num js-line-number js-blob-rnum" data-line-number="130"></td>
          <td id="file-functions-php-LC130" class="blob-code blob-code-inner js-file-line">			else {</td>
        </tr>
        <tr>
          <td id="file-functions-php-L131" class="blob-num js-line-number js-blob-rnum" data-line-number="131"></td>
          <td id="file-functions-php-LC131" class="blob-code blob-code-inner js-file-line">				$classes = &#39;post_box&#39;;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L132" class="blob-num js-line-number js-blob-rnum" data-line-number="132"></td>
          <td id="file-functions-php-LC132" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L133" class="blob-num js-line-number js-blob-rnum" data-line-number="133"></td>
          <td id="file-functions-php-LC133" class="blob-code blob-code-inner js-file-line">				if ($post_count == 1)</td>
        </tr>
        <tr>
          <td id="file-functions-php-L134" class="blob-num js-line-number js-blob-rnum" data-line-number="134"></td>
          <td id="file-functions-php-LC134" class="blob-code blob-code-inner js-file-line">					$classes .= &#39; top&#39;;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L135" class="blob-num js-line-number js-blob-rnum" data-line-number="135"></td>
          <td id="file-functions-php-LC135" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L136" class="blob-num js-line-number js-blob-rnum" data-line-number="136"></td>
          <td id="file-functions-php-LC136" class="blob-code blob-code-inner js-file-line">				thesis_post_box($classes, $post_count);</td>
        </tr>
        <tr>
          <td id="file-functions-php-L137" class="blob-num js-line-number js-blob-rnum" data-line-number="137"></td>
          <td id="file-functions-php-LC137" class="blob-code blob-code-inner js-file-line">			}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L138" class="blob-num js-line-number js-blob-rnum" data-line-number="138"></td>
          <td id="file-functions-php-LC138" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L139" class="blob-num js-line-number js-blob-rnum" data-line-number="139"></td>
          <td id="file-functions-php-LC139" class="blob-code blob-code-inner js-file-line">			$post_count++;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L140" class="blob-num js-line-number js-blob-rnum" data-line-number="140"></td>
          <td id="file-functions-php-LC140" class="blob-code blob-code-inner js-file-line">		}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L141" class="blob-num js-line-number js-blob-rnum" data-line-number="141"></td>
          <td id="file-functions-php-LC141" class="blob-code blob-code-inner js-file-line">		</td>
        </tr>
        <tr>
          <td id="file-functions-php-L142" class="blob-num js-line-number js-blob-rnum" data-line-number="142"></td>
          <td id="file-functions-php-LC142" class="blob-code blob-code-inner js-file-line">		if ((($teaser_count - 1) % 2) == 1)</td>
        </tr>
        <tr>
          <td id="file-functions-php-L143" class="blob-num js-line-number js-blob-rnum" data-line-number="143"></td>
          <td id="file-functions-php-LC143" class="blob-code blob-code-inner js-file-line">			echo &quot;ttt&lt;/div&gt;nn&quot;;</td>
        </tr>
        <tr>
          <td id="file-functions-php-L144" class="blob-num js-line-number js-blob-rnum" data-line-number="144"></td>
          <td id="file-functions-php-LC144" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L145" class="blob-num js-line-number js-blob-rnum" data-line-number="145"></td>
          <td id="file-functions-php-LC145" class="blob-code blob-code-inner js-file-line">}</td>
        </tr>
        <tr>
          <td id="file-functions-php-L146" class="blob-num js-line-number js-blob-rnum" data-line-number="146"></td>
          <td id="file-functions-php-LC146" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-functions-php-L147" class="blob-num js-line-number js-blob-rnum" data-line-number="147"></td>
          <td id="file-functions-php-LC147" class="blob-code blob-code-inner js-file-line">new thesis_child_theme_example;</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/mattonomics/1950695/raw/ad888f0314fcef27ffaa92778a88f063315073d8/functions.php" style="float:right" class="Link--inTextBlock" rel="nofollow">view raw</a>
        <a href="https://gist.github.com/mattonomics/1950695#file-functions-php" class="Link--inTextBlock" rel="nofollow">
          functions.php
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com" rel="nofollow">GitHub</a>
      </div>
    </div>
    <div class="gist-file" translate="no" data-color-mode="light" data-light-theme="light">
      <div class="gist-data">
        <div class="js-gist-file-update-container js-task-list-container">
  <div id="file-style-css" class="file my-2">
    
    <div itemprop="text"
      class="Box-body p-0 blob-wrapper data type-css  "
      style="overflow: auto" tabindex="0" role="region"
      aria-label="style.css content, created by mattonomics on 03:58PM on March 01, 2012."
    >

        
<div class="js-check-hidden-unicode js-blob-code-container blob-code-content">

  <template class="js-file-alert-template">
  <div data-view-component="true" class="flash flash-warn flash-full d-flex flex-items-center">
  <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
    <span>
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      <a class="Link--inTextBlock" href="https://github.co/hiddenchars" target="_blank" rel="nofollow">Learn more about bidirectional Unicode characters</a>
    </span>


  <div data-view-component="true" class="flash-action">        <a href="{{ revealButtonHref }}" data-view-component="true" class="btn-sm btn" rel="nofollow">    Show hidden characters
</a>
</div>
</div></template>
<template class="js-line-alert-template">
  <span aria-label="This line has hidden Unicode characters" data-view-component="true" class="line-alert tooltipped tooltipped-e">
    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-alert">
    <path d="M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"></path>
</svg>
</span></template>

  <table data-hpc class="highlight tab-size js-file-line-container" data-tab-size="8" data-paste-markdown-skip data-tagsearch-path="style.css">
        <tr>
          <td id="file-style-css-L1" class="blob-num js-line-number js-blob-rnum" data-line-number="1"></td>
          <td id="file-style-css-LC1" class="blob-code blob-code-inner js-file-line">/*</td>
        </tr>
        <tr>
          <td id="file-style-css-L2" class="blob-num js-line-number js-blob-rnum" data-line-number="2"></td>
          <td id="file-style-css-LC2" class="blob-code blob-code-inner js-file-line">Theme Name:     Thesis Theme Example Child</td>
        </tr>
        <tr>
          <td id="file-style-css-L3" class="blob-num js-line-number js-blob-rnum" data-line-number="3"></td>
          <td id="file-style-css-LC3" class="blob-code blob-code-inner js-file-line">Theme URI:      http://diythemes.com/plans/</td>
        </tr>
        <tr>
          <td id="file-style-css-L4" class="blob-num js-line-number js-blob-rnum" data-line-number="4"></td>
          <td id="file-style-css-LC4" class="blob-code blob-code-inner js-file-line">Description:    Child theme for the Thesis</td>
        </tr>
        <tr>
          <td id="file-style-css-L5" class="blob-num js-line-number js-blob-rnum" data-line-number="5"></td>
          <td id="file-style-css-LC5" class="blob-code blob-code-inner js-file-line">Author:         DIYthemes - Matt Gross</td>
        </tr>
        <tr>
          <td id="file-style-css-L6" class="blob-num js-line-number js-blob-rnum" data-line-number="6"></td>
          <td id="file-style-css-LC6" class="blob-code blob-code-inner js-file-line">Author URI:     http://diythemes.com</td>
        </tr>
        <tr>
          <td id="file-style-css-L7" class="blob-num js-line-number js-blob-rnum" data-line-number="7"></td>
          <td id="file-style-css-LC7" class="blob-code blob-code-inner js-file-line">Template:       thesis_184</td>
        </tr>
        <tr>
          <td id="file-style-css-L8" class="blob-num js-line-number js-blob-rnum" data-line-number="8"></td>
          <td id="file-style-css-LC8" class="blob-code blob-code-inner js-file-line">Version:        1.0</td>
        </tr>
        <tr>
          <td id="file-style-css-L9" class="blob-num js-line-number js-blob-rnum" data-line-number="9"></td>
          <td id="file-style-css-LC9" class="blob-code blob-code-inner js-file-line">*/</td>
        </tr>
        <tr>
          <td id="file-style-css-L10" class="blob-num js-line-number js-blob-rnum" data-line-number="10"></td>
          <td id="file-style-css-LC10" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-style-css-L11" class="blob-num js-line-number js-blob-rnum" data-line-number="11"></td>
          <td id="file-style-css-LC11" class="blob-code blob-code-inner js-file-line">/*---:[ body ]:---*/</td>
        </tr>
        <tr>
          <td id="file-style-css-L12" class="blob-num js-line-number js-blob-rnum" data-line-number="12"></td>
          <td id="file-style-css-LC12" class="blob-code blob-code-inner js-file-line">body { background: #000; }</td>
        </tr>
        <tr>
          <td id="file-style-css-L13" class="blob-num js-line-number js-blob-rnum" data-line-number="13"></td>
          <td id="file-style-css-LC13" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-style-css-L14" class="blob-num js-line-number js-blob-rnum" data-line-number="14"></td>
          <td id="file-style-css-LC14" class="blob-code blob-code-inner js-file-line">/*---:[ menu ]:---*/</td>
        </tr>
        <tr>
          <td id="file-style-css-L15" class="blob-num js-line-number js-blob-rnum" data-line-number="15"></td>
          <td id="file-style-css-LC15" class="blob-code blob-code-inner js-file-line">.menu { list-style: none; }</td>
        </tr>
        <tr>
          <td id="file-style-css-L16" class="blob-num js-line-number js-blob-rnum" data-line-number="16"></td>
          <td id="file-style-css-LC16" class="blob-code blob-code-inner js-file-line">	.menu li { float: left; }</td>
        </tr>
        <tr>
          <td id="file-style-css-L17" class="blob-num js-line-number js-blob-rnum" data-line-number="17"></td>
          <td id="file-style-css-LC17" class="blob-code blob-code-inner js-file-line">		.menu li a { text-decoration: none; display: block; }</td>
        </tr>
        <tr>
          <td id="file-style-css-L18" class="blob-num js-line-number js-blob-rnum" data-line-number="18"></td>
          <td id="file-style-css-LC18" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-style-css-L19" class="blob-num js-line-number js-blob-rnum" data-line-number="19"></td>
          <td id="file-style-css-LC19" class="blob-code blob-code-inner js-file-line">/*---:[ post image fix from @kristarella ]:---*/</td>
        </tr>
        <tr>
          <td id="file-style-css-L20" class="blob-num js-line-number js-blob-rnum" data-line-number="20"></td>
          <td id="file-style-css-LC20" class="blob-code blob-code-inner js-file-line">.post_image { max-width: 100%; height: auto; }</td>
        </tr>
        <tr>
          <td id="file-style-css-L21" class="blob-num js-line-number js-blob-rnum" data-line-number="21"></td>
          <td id="file-style-css-LC21" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-style-css-L22" class="blob-num js-line-number js-blob-rnum" data-line-number="22"></td>
          <td id="file-style-css-LC22" class="blob-code blob-code-inner js-file-line">/*---:[ widget lists ]:---*/</td>
        </tr>
        <tr>
          <td id="file-style-css-L23" class="blob-num js-line-number js-blob-rnum" data-line-number="23"></td>
          <td id="file-style-css-LC23" class="blob-code blob-code-inner js-file-line">.sidebar_list { list-style: none; }</td>
        </tr>
        <tr>
          <td id="file-style-css-L24" class="blob-num js-line-number js-blob-rnum" data-line-number="24"></td>
          <td id="file-style-css-LC24" class="blob-code blob-code-inner js-file-line">
</td>
        </tr>
        <tr>
          <td id="file-style-css-L25" class="blob-num js-line-number js-blob-rnum" data-line-number="25"></td>
          <td id="file-style-css-LC25" class="blob-code blob-code-inner js-file-line">/*---:[ clearfixes ]---*/</td>
        </tr>
        <tr>
          <td id="file-style-css-L26" class="blob-num js-line-number js-blob-rnum" data-line-number="26"></td>
          <td id="file-style-css-LC26" class="blob-code blob-code-inner js-file-line">#content_box:after, .menu:after { visibility: hidden; display: block; content: &quot;&quot;; clear: both; height: 0; }</td>
        </tr>
  </table>
</div>


    </div>

  </div>
</div>

      </div>
      <div class="gist-meta">
        <a href="https://gist.github.com/mattonomics/1950695/raw/ad888f0314fcef27ffaa92778a88f063315073d8/style.css" style="float:right" class="Link--inTextBlock" rel="nofollow">view raw</a>
        <a href="https://gist.github.com/mattonomics/1950695#file-style-css" class="Link--inTextBlock" rel="nofollow">
          style.css
        </a>
        hosted with &#10084; by <a class="Link--inTextBlock" href="https://github.com" rel="nofollow">GitHub</a>
      </div>
    </div>
</div>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Add Pinterest to WordPress</title>
		<link>https://diythemes.com/thesis/rtfm/add-pinterest-pins-wordpress/</link>
		
		<dc:creator><![CDATA[godhammer]]></dc:creator>
		<pubDate>Thu, 26 Jan 2012 10:29:30 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<guid isPermaLink="false">https://diythemes.com/thesis/rtfm/?p=3129</guid>

					<description><![CDATA[Pinterest is a fun, image-based social network that currently boasts an astronomical growth curve, long user sessions, and presents a demographic skewed female that runs through higher age brackets than most new sharing platforms. As you might guess, interacting with Pinterest users &#8212; and learning a little Pinterest lingo&#8230; pins, re-pins, boards, followers &#8212; will [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Pinterest is a fun, image-based social network that currently boasts an astronomical growth curve, long user sessions, and presents a demographic skewed female that runs through higher age brackets than most new sharing platforms.</p>
<p>As you might guess, interacting with Pinterest users &#8212; and learning a little Pinterest lingo&#8230; pins, re-pins, boards, followers &#8212; will expand your reach and influence.</p>
<p>In short, engaging with Pinterest, effectively, can put a &#8220;pin&#8221; right through the seat of your site&#8217;s traffic!</p>
<p>Here&#8217;s an example of a Thesis site with a Pinterest &#8220;Pin It&#8221; icon waiting to be clicked:</p>
<p><img loading="lazy" decoding="async" class="aligncenter" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-feature-post-pinterest-pin-counter-one.png" alt="Pinterest Pin It Button in a WordPress Post - Thesis" width="641" height="350" /></p>
<p>But&#8230; how to go from knowing you <em>need</em> a Pinterest presence to making your site the darling of Pinterest user boards?</p>
<p>First, you&#8217;ll have to get yourself out there in order for Pinterest users to pin you down.</p>
<p>Yes, we went there. <em>Pin</em> you down. Groan! Won&#8217;t happen again, Pinky promise. Oops. Okay, <em>now</em> it won&#8217;t.</p>
<p>As with most social networks, Pinterest offers a button-based share feature for site owners. These should look familiar in a generic way:</p>
<p><img loading="lazy" decoding="async" class="aligncenter" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-pinterest-pin-styles.png" alt="Three Available Styles of Pinterest Pin It Sharing Icons" width="249" height="61" /></p>
<p>The call to &#8220;Pin it!&#8221; involves buttons and counters (intentionally) similar to ones you&#8217;ve seen for Facebook, Twitter, Google Plus, and so on.</p>
<p>However, while other social sharing revolves around distributing the text-based content of your site, Pinterest focuses on <em>images</em>.</p>
<p>When Pinterest users &#8220;pin&#8221; an image, source attribution is automatically added as a link to your site, similar to many text-based sharing methods.</p>
<p>And, as with Twitter <em>retweets</em>, your images can also get <em>re-pinned</em> to different &#8220;boards&#8221; &#8212; as many times as the millions of Pinterest users decide to grab a given image for their own collections.</p>
<h2>Pin-Up Your Pinterest Buttons!</h2>
<p>Clearly, providing one-click simplicity in the form of a button that gives Pinterest users the ability to &#8220;pin&#8221; your images is critical.</p>
<p>To capitalize on this opportunity, all <em>you</em> need to do is paste a code snippet to facilitate the viral sharing Pinterest naturally encourages.</p>
<p>For this Pinterest tutorial, we&#8217;ll use Thesis &#8220;post images&#8221; as our &#8220;Pin&#8221; target.</p>
<p>In other words, your post image will appear when Pinterest users click the &#8220;Pin It&#8221; button that we&#8217;ll be adding to your site.</p>
<h2>Add a Pinterest Button to Thesis &#8220;Feature&#8221; Posts in WordPress</h2>
<p>Let&#8217;s keep it simple, agreed?</p>
<p>For Pinterest to grab the Thesis post image from your pages and posts, all you need is a brief PHP entry.</p>
<p>Remember the three buttons from earlier?</p>
<p>If you want the first button &#8212; the simple Pinterest &#8220;Pin It&#8221; with <em>no</em> counter &#8212; add this to <code>custom_functions.php</code>:</p>
<p><img loading="lazy" decoding="async" class="aligncenter" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-pinterest-horizontal-no-counter.png" alt="Pinterest Pin-It Share Button - No Pin Counter" width="81" height="26" /></p>
<pre>function pinterest_post_page_pin_no_count() {
global $post;
/* HORIZONTAL NO-COUNTER PINTEREST BUTTON */
printf( '&lt;div class="pinterest-posts"&gt;&lt;a href="http://pinterest.com/pin/create/button/?url=%s&amp;media=%s" class="pin-it-button" count-layout="none"&gt;Pin It&lt;/a&gt;&lt;script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"&gt;&lt;/script&gt;&lt;/div&gt;', urlencode(get_permalink()), urlencode( get_post_meta($post-&gt;ID, 'thesis_post_image', true) ) );
}
add_action( 'thesis_hook_before_post_box', 'pinterest_post_page_pin_no_count' );</pre>
<p>For the second button &#8212; &#8220;Pin It&#8221; with a visible &#8220;number of times pinned on Pinterest&#8221; numerical call-out counter &#8212; add this to <code>custom_functions.php</code>:</p>
<p><img loading="lazy" decoding="async" class="aligncenter" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-pinterest-horizontal-with-counter.png" alt="Pinterest Pin-It Button with Visible Pin Counter" width="81" height="27" /></p>
<pre>function pinterest_post_page_pin_horiz() {
global $post;
/* HORIZONTAL PINTEREST BUTTON WITH COUNTER */
printf( '&lt;div class="pinterest-posts"&gt;&lt;a href="http://pinterest.com/pin/create/button/?url=%s&amp;media=%s" class="pin-it-button" count-layout="horizontal"&gt;Pin It&lt;/a&gt;&lt;script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"&gt;&lt;/script&gt;&lt;/div&gt;', urlencode(get_permalink()), urlencode( get_post_meta($post-&gt;ID, 'thesis_post_image', true) ) );
}
add_action( 'thesis_hook_before_post_box', 'pinterest_post_page_pin_horiz' );</pre>
<p>Finally, if you prefer the vertically-oriented &#8220;Pin It&#8221; button, with a counter &#8212; this works nicely if teamed with the visual style of our prior <a href="/thesis/rtfm/add-social-media-counter-buttons/">social media icon</a> tutorial &#8212; then you&#8217;d add this to <code>custom_functions.php</code>:</p>
<p><img loading="lazy" decoding="async" class="aligncenter" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-pinterest-vertical-with-counter.png" alt="Vertical Pinterest Button with Visible Counter" width="81" height="61" /></p>
<pre>function pinterest_post_page_pin_vert() {
global $post;
/* VERTICAL PINTEREST BUTTON WITH COUNTER */
printf( '&lt;div class="pinterest-posts"&gt;&lt;a href="http://pinterest.com/pin/create/button/?url=%s&amp;media=%s" class="pin-it-button" count-layout="vertical"&gt;Pin It&lt;/a&gt;&lt;script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"&gt;&lt;/script&gt;&lt;/div&gt;', urlencode(get_permalink()), urlencode( get_post_meta($post-&gt;ID, 'thesis_post_image', true) ) );
}
add_action( 'thesis_hook_before_post_box', 'pinterest_post_page_pin_vert' );</pre>
<p>Where you want your &#8220;Pins&#8221; to show may vary &#8212; in the above, we configured Pinterest such that the &#8220;Pin It&#8221; shows directly before each full post&#8217;s contents.</p>
<p>To change the location of this Pinterest Pin output, you can adjust the final line in these functions, changing your Pinterest location using the appropriate <a href="/thesis/rtfm/api/hooks/">Thesis hooks</a>.</p>
<p>For fine-tuning of the Pinterest area, note that, in each of the three example PHP functions above, a unique class was assigned to a containing &#8220;div&#8221; element.</p>
<p>This class gives you precise formatting controls.  While its use is optional, it&#8217;s there, and you can use this &#8220;pinterest-posts&#8221; class to fine-tune the position of your &#8220;Pin&#8221; link.</p>
<p>As a starter on potential Pinterest-area formatting, you can &#8212; optionally &#8212; add this to your Thesis <code>custom.css</code> file contents:</p>
<pre>.custom .pinterest-posts { margin-top:2.4em; margin-left:3em; }</pre>
<p>Okay, smooth sailing there &#8212; a Pinterest &#8220;Pin&#8221; should now appear on your site for all posts and pages.</p>
<h2>Add a Pinterest Button to Thesis &#8220;Teaser&#8221; Posts in WordPress</h2>
<p>Want your Thesis <em>teasers</em> to have Pinterest buttons? Same basic idea, different hook!</p>
<p>The Pinterest button will look something like this when you&#8217;re done:</p>
<p><img loading="lazy" decoding="async" class="aligncenter" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-teaser-post-pinterest-pin-counter-zero.png" alt="Thesis Teaser Post with Pinterest Share Button - Count is Zero" width="226" height="204" /></p>
<p>The &#8220;Pin It&#8221; button is the horizontal &#8220;with counter&#8221; kind, but the counter does not display &#8220;0 pins&#8221; &#8212; it&#8217;ll show numbers once you&#8217;ve received at least <em>one</em> click-through to Pinterest for a given teaser.</p>
<p>To help with formatting, the below uses a custom class as before, where this div surrounds the Pinterest button used in the teaser posts.</p>
<pre>function pinterest_teaser_pin() {
global $post;
printf( '&lt;div class="pinterest-thumbs"&gt;&lt;a href="http://pinterest.com/pin/create/button/?url=%s&amp;media=%s" class="pin-it-button" count-layout="horizontal"&gt;Pin It&lt;/a&gt;&lt;script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"&gt;&lt;/script&gt;&lt;/div&gt;', urlencode(get_permalink()), urlencode( get_post_meta($post-&gt;ID, 'thesis_post_image', true) ) );
}
add_action( 'thesis_hook_before_teaser_headline', 'pinterest_teaser_pin' );</pre>
<p>The hook, <em>thesis_hook_before_teaser_headline</em>, is the only difference of note to achieve a Pinterest button on teasers.</p>
<p>Again as an option, you can add code such as this to your Thesis <code>custom.css</code> file contents for additional control over the Pinterest area in <em>teasers</em> only:</p>
<pre>.custom .pinterest-thumbs { float:right; margin-bottom:0.6em; }</pre>
<p>Because we&#8217;re calling the Thesis post image in all of these examples, Pinterest will display the post image &#8212; not the post thumbnail &#8212; even if the Pinterest &#8220;Pin It&#8221; button is clicked among your teasers.</p>
<p>Which leads us to an interesting question&#8230;</p>
<h2>How Does All This Look to a Pinterest User?</h2>
<p>If you don&#8217;t have a Pinterest account &#8212; and don&#8217;t feel like standing in virtual line to get one &#8212; it&#8217;s still important to know what happens when a Pinterest user clicks your new &#8220;Pin It&#8221; button on feature and teaser posts.</p>
<p>Assuming your site visitor is logged into their Pinterest user account, when they click the teaser &#8220;Pin It&#8221; button, seen earlier above, a window like this will pop into view:</p>
<p><img loading="lazy" decoding="async" class="aligncenter" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-pinterest-user-perspective-first-click.png" alt="Pinterest - User Perspective - Logged In - Step 1" width="594" height="302" /></p>
<p>The post image associated with your teaser &#8212; remember, the thumbnail isn&#8217;t used, the post image is &#8212; is displayed on the left side.</p>
<p>Don&#8217;t worry if your image doesn&#8217;t fill all of the available space seen above; Pinterest crops and sizes images <em>extremely</em> well.</p>
<p>The &#8220;Awesome Eyes&#8221; is a selection from a user-specific dropdown. It represents a board (imagine a hanging cork-board covered in <del>sticky notes</del> pinned items; you&#8217;ll get the core idea) that the user had previously made in their Pinterest account admin.</p>
<p>Similarly, &#8220;Describe your pin&#8230;&#8221; is user-controlled, and this text can run short or fairly long. Using more (and more advanced) PHP than we used in this tutorial, the Pinterest description field <em>can</em> be pre-populated by the site owner. However, the Pinterest user has the final say, and they can quickly change the description &#8212; blank or not.</p>
<p>The red &#8220;Pin It&#8221; button, assuming everything goes fine on the Pinterest side, results in the next screen the Pinterest user sees:</p>
<p><img loading="lazy" decoding="async" class="aligncenter" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-pinterest-user-perspective-second-click.png" alt="Pinterest Logged-in User Perspective - Step 2" width="594" height="203" /></p>
<p>Yup, a very typical confirmation page. However, the &#8220;Tweet your Pin&#8221; and &#8220;Share on Facebook&#8221; options are notable, and just as notable is the <em>non</em>-integration of Pinterest with Google+ or other potential share-through candidates &#8212; at least for now.</p>
<p>Here, potentially, the Pinterest user can share your content &#8212; not only with their fellow Pinterest searchers and followers, but also on up to two other social networks.</p>
<p>At this point, the Pinterest user is done. If they decide to visit their personalized Pinterest dashboard, this would be the end result:</p>
<p><img loading="lazy" decoding="async" class="aligncenter" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-pinterest-user-perspective-final-click.png" alt="Pinterest Member Perspective - Personalized Dashboard View" width="616" height="414" /></p>
<p>The &#8220;yoursite.com&#8221; attribution is a nofollow link, for those who might be curious.</p>
<p>The &#8220;pinmarklet&#8221; is a reference to the &#8220;Pin It&#8221; button you created. As you can see, Pinterest says &#8220;pinmarklet&#8221; twice in short order.</p>
<p>In this tutorial, we went with &#8220;Pin it&#8221; instead of referring to your &#8220;pinmarklets&#8221; a million times &#8212; learning about Pinterest shouldn&#8217;t be<em> painful</em>.</p>
<p>Because a Pinterest User successfully <del>pinmarkleted</del> pinned your teaser&#8217;s post image, your site will now increment the pin-count for the post in question.</p>
<p>Once past a goose egg &#8212; if its value is zero, the counter does not display &#8212; the Pin It counter will begin to show numbers:</p>
<p><img loading="lazy" decoding="async" class="aligncenter" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-teaser-post-pinterest-pin-counter-one.png" alt="Thesis Teaser with a Pinterest Pin and Incremented Count" width="226" height="204" /></p>
<p>You&#8217;re all done!</p>
<p>Quite possibly, you&#8217;re wondering enough about Pinterest to check it out from the other side of the fence, the Pinterest user side &#8212; and you should.</p>
<p>Compared to &#8220;old&#8221; social sharing sites, at least for now, Pinterest has the feel of a low-pressure, friendly gathering. Unless you ask it to be, Pinterest isn&#8217;t just an endless, scrolling wall of information, nor is there a strong sense of follower-count &#8220;high score!&#8221; guilt.</p>
<p>Pinterest might become the next Twitter. And it might not.</p>
<p>Whatever Pinterest&#8217;s future, one thing&#8217;s a certainty &#8212; if you climb on board, you&#8217;ll see <em>lots</em> of pretty pictures!</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Customize the Password Form on Protected Posts</title>
		<link>https://diythemes.com/thesis/rtfm/password-protected-form/</link>
		
		<dc:creator><![CDATA[Shelley]]></dc:creator>
		<pubDate>Mon, 23 Jan 2012 22:21:11 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<guid isPermaLink="false">https://diythemes.com/thesis/rtfm/?p=3061</guid>

					<description><![CDATA[When you password protect a post in WordPress, a form is displayed prompting the reader to enter the password to view the post: Using the WordPress filter the_password_form along with some custom code in your Thesis custom_functions.php file, you can modify various text elements in the password form. You can change the explanatory prompt message, [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>When you password protect a post in WordPress, a form is displayed prompting the reader to enter the password to view the post:</p>
<div id="attachment_3063" style="width: 509px" class="wp-caption aligncenter"><a href="https://diythemes.com/thesis/rtfm/wp-content/uploads/2012/01/password_protected.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3063" src="https://diythemes.com/thesis/rtfm/wp-content/uploads/2012/01/password_protected.jpg" alt="Default Password Form on Protected Post" title="Default Password Form on Protected Post" width="499" height="202" class="size-full wp-image-3063" /></a><p id="caption-attachment-3063" class="wp-caption-text">Default Password Form on Protected Post</p></div>
<p>Using the WordPress filter <code>the_password_form</code> along with some custom code in your Thesis <em>custom_functions.php</em> file, you can modify various text elements in the password form. You can change the explanatory prompt message, the label of the password field, the text on the submit button &#8212; or all three of these at once.</p>
<p class="note">Note that, in each of the following examples, the <code>$after</code> variable is what determines the replacement text &#8212; simply replace the example text contained <em>inside</em> each pair of single quotes with your own desired text (be sure to retain the single quotes themselves to avoid triggering a PHP syntax error).</p>
<h3 id="prompt">Change Prompt Message <a href="#prompt" title="Link to this section">∞</a></h3>
<pre class="extend">
function custom_password_prompt($content) {
	$before = 'This post is password protected. To view it please enter your password below:';
	$after = 'Enter your password to view this post:';
	$content = str_replace($before, $after, $content);
	return $content;
}
add_filter('the_password_form', 'custom_password_prompt');
</pre>
<h3 id="password">Change &#8220;Password&#8221; Text <a href="#password" title="Link to this section">∞</a></h3>
<pre>
function custom_password_text($content) {
	$before = 'Password:';
	$after = 'Custom Password Text:';
	$content = str_replace($before, $after, $content);
	return $content;
}
add_filter('the_password_form', 'custom_password_text');
</pre>
<h3 id="submit">Change Submit Button Text <a href="#submit" title="Link to this section">∞</a></h3>
<pre>
function custom_submit_text($content) {
	$before = 'Submit';
	$after = 'Custom Submit Text';
	$content = str_replace($before, $after, $content);
	return $content;
}
add_filter('the_password_form', 'custom_submit_text');
</pre>
<h3 id="all">Change All Three of the Above at Once <a href="#all" title="Link to this section">∞</a></h3>
<pre class="extend">
function custom_password_form($content) {
	$before = array('This post is password protected. To view it please enter your password below:','Password:','Submit');
	$after = array('Enter your password to view this post:','Custom Password Text:','Custom Submit Text');
	$content = str_replace($before,$after,$content);
	return $content;
}
add_filter('the_password_form', 'custom_password_form');
</pre>
<div id="attachment_3064" style="width: 381px" class="wp-caption aligncenter"><a href="https://diythemes.com/thesis/rtfm/wp-content/uploads/2012/01/password_protected_custom.jpg"><img loading="lazy" decoding="async" aria-describedby="caption-attachment-3064" src="https://diythemes.com/thesis/rtfm/wp-content/uploads/2012/01/password_protected_custom.jpg" alt="Customized Password Form on Protected Post" title="Customized Password Form on Protected Post" width="371" height="201" class="size-full wp-image-3064" /></a><p id="caption-attachment-3064" class="wp-caption-text">Customized Password Form on Protected Post</p></div>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Using Thesis SEO Options and Settings</title>
		<link>https://diythemes.com/thesis/rtfm/wordpress-thesis-seo-tutorial/</link>
		
		<dc:creator><![CDATA[godhammer]]></dc:creator>
		<pubDate>Tue, 03 Jan 2012 02:07:57 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<guid isPermaLink="false">https://diythemes.com/thesis/rtfm/?p=3027</guid>

					<description><![CDATA[The WordPress SEO section discusses applied SEO strategies. As you know, Thesis provides numerous SEO settings and options in the administration interface. Familiarity with these Thesis SEO interface options will help you make the most of the WordPress SEO articles&#8217; concepts and advice. SEO is a large topic &#8212; where it begins and ends is [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>The <a href="/thesis/wordpress-seo/">WordPress SEO</a> section discusses <em>applied</em> SEO strategies.</p>
<p>As you know, Thesis provides numerous SEO settings and options in the administration interface.</p>
<p>Familiarity with these Thesis SEO interface options will help you make the most of the WordPress SEO articles&#8217; concepts and advice.</p>
<p>SEO is a large topic &#8212; where it begins and ends is a gray area.</p>
<p>Shake the magical dust from SEO, however, and you&#8217;re left with a very simple &#8220;my site&#8221; goal &#8212; optimizing your content for search engines.</p>
<p>Fundamentally, <em>optimization</em> means clarifying what your site, and individual pages of content within your site, are all about.  That&#8217;s it!</p>
<p>In the real world, imagine a book without a title.</p>
<p><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2011/12/sample-book-no-title-no-description.png" alt="Judging a Book by Its Lack of Title and Description" width="272" height="320" /></p>
<p>Would you buy such a book?</p>
<p>Probably not. Unless you find more information about the unknown content, you&#8217;ll leave it on the shelf.</p>
<p>Whether you imagine books in a library or a list of search results (sites) to choose among, information is everything.</p>
<p>With millions of options out there, selecting your reading at random is an inefficient way to make decisions on how to spend your time.</p>
<p>That&#8217;s why we often <em>do</em> judge books (and sites) by their covers.</p>
<p>A book with a confusing title &#8212; or no title at all &#8212; reduces &#8220;first glance&#8221; comprehension by an onlooker.</p>
<p>Your site is no different. Books &#8212; where this is especially true for nonfiction &#8212; need a clear and descriptive title that gives a potential reader at least some understanding of what they can expect to find inside.</p>
<p>All the parts and pages of your web site? Exactly the same deal.</p>
<p>Along with a title, your site also needs descriptive text and other &#8220;what&#8217;s this all about?&#8221; information to give your potential visitors the ability to confirm your content matches what they search to find. Online, finding typically means using a search engine like Google or Bing.</p>
<p>Basic SEO, therefore, is about offering &#8220;first glance&#8221; information about your site. To add this, let&#8217;s examine the relevant areas of SEO within the <strong>Thesis 1.8.2</strong> interface.</p>
<p>The focus here is on the <em>how and where</em> of the Thesis interface SEO options. With a grasp on how and where, you&#8217;ll be able to maximize your search engine rankings, as well as more easily digest the WordPress SEO series.</p>
<p>The following are the main SEO-related content areas in Thesis: <em>global</em> or site-wide SEO, <em>home page</em> SEO, <em>category</em>-specific SEO, and individual SEO settings on <em>posts</em> and <em>pages</em>.</p>
<p>All this SEO stuff, at a basic, on-site level, is easier than it sounds &#8212; we&#8217;ll take each section in turn, step-by-step.</p>
<p>In this one tutorial, you&#8217;ll quickly see that SEO basics are extremely powerful &#8212; and they&#8217;re <em>not</em> scary whatsoever.</p>
<h2>Global SEO Settings in the Thesis Interface</h2>
<p>A global setting simply means that the options selected apply &#8220;everywhere&#8221; on your site &#8212; home, pages, posts, categories, tags &#8212; everywhere.</p>
<p>There&#8217;s only one global SEO setting of major significance, and that&#8217;s whether or not to have &#8220;Append site name to page titles&#8221; selected.</p>
<p>Here is where we are in the Thesis interface:</p>
<p><code>WP Admin &gt; Thesis &gt; Site Options &gt; Document Head &gt; [ here ]</code></p>
<p>Which appears visually like this:</p>
<p><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2011/12/sample-global-seo-append-site-name.png" alt="Append Site Name and Character Separator Globally" width="300" height="295" /></p>
<p>Except in very rare cases, it&#8217;s usually low, no, or a negative to your site SEO to append the site name to your page titles.</p>
<p>If your site title is only a word or two, it can make sense.  But even then &#8212; usually not.</p>
<p>The reason you don&#8217;t need to append your site title to every page is that your site <em>flows</em> with <del>Yoda calls it the Force</del> PageRank.</p>
<p>In other words, search engines move through your site in a way that creates a series of relationships. From these relationships, an understanding of the site&#8217;s context and influences is created.</p>
<p>A page, therefore, is not an isolated blip on the radar. Each page &#8212; using &#8220;page&#8221; in the sense of any URL &#8212; inherits traits from other pages. The verbiage and links, to and from other pages &#8212; including the (relatively) powerful home page &#8212; are influential.</p>
<p>As a result, even if your site name appears <em>only</em> on the home page, that&#8217;s usually sufficient.</p>
<p>Once Google knows your site name, everything else is seasoned within the context of the site name and other global factors &#8212; not all of which are on your site, or even within your full control.</p>
<p>Adding the site name <em>globally</em> therefore often does little more than dilute the SEO value of non-home <code>&lt;title&gt;</code> markup. Any gains from site-wide appending (repetition) seldom offset this dilution.</p>
<p>With a strong brand, especially a short one &#8212; Sony, Asus, IBM, Apple &#8212; appending the site name to your <code>&lt;title&gt;</code> globally can be a rational decision.</p>
<p>However, if you&#8217;re just getting started &#8212; especially if your &#8220;brand&#8221; is relatively unknown &#8212; it&#8217;s recommended you do not append the site name globally.</p>
<h2>Home Page SEO Settings in the Thesis Interface</h2>
<p>Out of the box, in Thesis the home page SEO is controlled in the following area:</p>
<p><code>WP Admin &gt; Thesis &gt; Site Options &gt; Home Page SEO &gt; [ here ]</code></p>
<p>In this section are the Home Page SEO controls for the <code>&lt;title&gt;</code> of your home page, the description for the home page, its meta keywords, and checkboxes that determine whether your home page is indexed, followed, and/or archived. These can be seen in the below:</p>
<p><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-home-page-seo-default.png" alt="Home Page Default SEO Settings in Thesis" width="300" height="353" /></p>
<p>Note that this Home Page SEO control applies only if you are using the default &#8220;blog home&#8221; &#8212; if you are using a <a href="/thesis/rtfm/how-to/configure-static-front-posts-pages/">static home page</a>, the SEO controls for your &#8220;Home&#8221; page will be located in the settings for the individual <em>page</em> used as the static front page.  We&#8217;ll cover page-specific SEO later.</p>
<p><strong>Home Page SEO &#8212; the <code>&lt;title&gt;</code></strong> &#8212; this one&#8217;s a big deal.</p>
<p>The <code>&lt;title&gt;</code> carries a ton of SEO power, and on your home page it carries more than it will anywhere else. As you can see in the image above, there&#8217;s a character counter in Thesis to help you limit this field to the number of characters traditionally shown by Google in a &#8220;SERP&#8221; or &#8220;search engine results page&#8221; &#8212; but you don&#8217;t have to &#8220;fill it up&#8221; &#8212; in this setting, less is often more.</p>
<p>While true of other SEO-related content, in the <code>&lt;title&gt;</code> especially, <em>every word</em> should be chosen with care.</p>
<p>Let&#8217;s say your first thought for a Home Page <code>&lt;title&gt;</code> is:</p>
<blockquote><p>Welcome to SuperTreeExpertPeople.com &#8212; If You Have Trees, Plants, Bushes, Shrubs, or Grass You Need Worked On, We Can Do Anything! Call us Now if You Need Tree-Related Services in Fargo, North Dakota</p></blockquote>
<p>Clearly, that&#8217;s too long. It&#8217;s also using numerous terms that are unlikely to help your site, even if you <em>did</em> rank for them &#8212; &#8220;Welcome&#8221; being an example.</p>
<p>Search Engines are good at inferring specific place names, so &#8220;North Dakota&#8221; is unnecessary, especially if you include your address (as text) on a contact page or in your footer or header.</p>
<p>For your Home Page <code>&lt;title&gt;</code>, focus on what you already do &#8212; and do well. If you&#8217;re new to the market, focus on what you expect or <em>want to do</em> more often. For example, if you get most of your net profits from tree-related &#8220;stuff&#8221; &#8212; but very little from shrubs &#8212; then stick to what works.</p>
<p>This would be a shorter, more powerful example:</p>
<blockquote><p>Fargo Tree Services | Trimming &#8211; Stump Removal &#8211; Fertilizing</p></blockquote>
<p>While this is better than the previous example, it&#8217;s important to realize SEO is not about instant perfection, and SEO done well is not just &#8220;set and forget&#8221; &#8212; installing monitoring code such as <a href="/thesis/rtfm/how-to-add-google-analytics/">Google Analytics</a> can help you determine what&#8217;s working, what&#8217;s not &#8212; and this will help you make informed changes to your SEO tactics over time.</p>
<p><strong>Home Page SEO &#8212; the meta description</strong> &#8212; the &#8220;SEO&#8221; factor that does <em>not</em> have a direct SEO impact.  That&#8217;s right.  Your meta description does not influence the &#8220;rank&#8221; or position of your site in search engines.  It&#8217;s not SEO!</p>
<p>Okay &#8212; so if the meta description isn&#8217;t a technical SEO factor, why worry about it?</p>
<p>The answer is that your meta description is an influence, and to ignore it is to miss the point of SEO in a larger context. You&#8217;re optimizing and defining your content, right? You&#8217;ve seen search results many times, and while the eye is drawn to the &#8220;title&#8221; first, the description is the <em>convincing blurb</em> right below the title.</p>
<p>That makes your meta description &#8220;SEO that isn&#8217;t SEO&#8221; &#8212; because while the description is not an SEO ranking factor, a good description is still a &#8220;call to action&#8221; &#8212; and it will often be the difference between visitors clicking your site&#8230; or clicking on a competitor&#8217;s link!</p>
<p>Also, any terms used in a query to find your site that match the meta description&#8217;s content will be <strong>bold</strong> in search results, another reason a good description is useful as an &#8220;SEO&#8221; factor.</p>
<p>Taking an example, a search for &#8220;Thesis Documentation&#8221; in Google returns a SERP &#8212; a search engine results page &#8212; like this, where the arrow indicates the meta description:</p>
<p><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-google-serp-meta-description.png" alt="Sample Google SERP highlighting the meta description field" width="541" height="79" /></p>
<p>It&#8217;s obvious that your meta description should be created with care. Unlike the brief <code>&lt;title&gt;</code> recommended earlier, it&#8217;s best to make your meta description close to the maximum length that will be displayed by Google.</p>
<p>Why go long?</p>
<p>Short meta descriptions are often replaced by &#8220;rich snippets&#8221; &#8212; pieces of your content stitched together by a search engine like Google, using text from the page rather than the meta description you added manually.</p>
<p>Because the meta description is a good conversion tool, representing a call to action (click!) &#8212; write a good one, and make it long enough that your meta description is more likely to be chosen as the content Google displays to potential visitors.</p>
<p>In the Thesis interface, the meta description for the Home Page is one down from <code>&lt;title&gt;</code> like so:</p>
<p><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-home-page-seo-default-description.png" alt="Sample SEO Home Page Meta Description" width="300" height="353" /></p>
<p>As a rule of thumb, add about 150 characters of quality &#8220;I&#8217;d click that!&#8221; content to your meta description.</p>
<p>Remember, this is your home page, so target your prospects broadly.  Be sure to provide solid reasons to click on <em>your</em> site!</p>
<p>You could include a list of your services, your solutions to common client problems, FAQ or trust-building information such as being &#8220;insured&#8221; or &#8220;licensed&#8221; or a member of the &#8220;BBB&#8221; &#8212; anything to generate (legitimate, of course) trust and authority in your area of specialization.</p>
<p><strong>Home Page SEO &#8212; the meta keywords</strong> &#8212; like the meta description, meta keywords are of no SEO benefit. <em>Unlike</em> the meta description, meta keywords do not offer any other benefit for the vast majority of sites &#8212; and they aren&#8217;t visible in the search results listings.</p>
<p>About the only thing to say about meta keywords is to avoid &#8220;stuffing&#8221; more than a few key terms or words into this field. The tactic of &#8220;keyword stuffing&#8221; &#8212; adding dozens or even hundreds of key terms &#8212; was the primary reason why meta keywords became worth little (if anything) many years ago.</p>
<p>As you might guess, leaving the meta keywords <em>blank</em> is fine.</p>
<p><strong>Home Page SEO &#8212; nofollow, noindex, noarchive</strong> &#8212; because these checkboxes are included in the interface, a quick word on them.</p>
<p>Do <strong>not</strong> click <em>nofollow</em> or <em>noindex</em> in your Home Page SEO options.</p>
<p>Simplifying for clarity, using nofollow/noindex on your Home Page tells search engines &#8212; like Google &#8212; <em>not</em> to include your site in search results. Ever. Ouch!</p>
<p>Unlike nofollow and noindex, <em>noarchive</em> is less of an SEO-related decision. Noarchive is a choice to tell various web sites, including search engines, whether or not they should maintain a history &#8212; a saved cache &#8212; of your site&#8217;s home page.</p>
<p>From an SEO standpoint, noarchive is unlikely to have an impact on your site. But unless you have a full understanding of what it does, there&#8217;s no harm in leaving it unchecked.</p>
<p>In summary, leave the checkboxes for nofollow, noindex, and noarchive alone &#8212; meaning, not checked &#8212; on your Home Page SEO settings.</p>
<h2>Category SEO Settings in the Thesis Interface</h2>
<p>If you use categories for your posts and include categories in your site architecture as an SEO device &#8212; most Thesis users do &#8212; then you&#8217;ll benefit from applying the same principles of SEO discussed in the Home Page section on your categories.</p>
<p>In short, populate your categories&#8217; <code>&lt;title&gt;</code> and meta description, with the contents adjusted to fit each of your categories.</p>
<p>Here is where we are in the WordPress (contains additions from Thesis) interface:</p>
<p><code>WP Admin &gt; Posts &gt; Categories &gt; [ here ]</code></p>
<p>There are two ways to add your SEO details to categories &#8212; you can either create a <em>new</em> category, or you can edit an <em>existing</em> category. The layouts are slightly different, but they&#8217;re close enough it&#8217;s assumed explaining one explains both as regards the SEO sections.</p>
<p><strong>Category SEO Settings &#8212; Part I</strong></p>
<p>Taking the &#8220;add a new category&#8221; option for a visual example, the first area related to SEO looks like this &#8212; the two sections are one on top of the other, but for discussion purposes, they&#8217;re split into two images below:</p>
<p><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-category-seo-thesis-interface-one.png" alt="Sample Category SEO Thesis Interface Part I" width="497" height="439" /></p>
<p>The SEO fields above are blank when creating a new category. They&#8217;re shown with populated data to serve as a quick summary of what a completed &#8212; individual &#8212; category&#8217;s SEO content might look like when finished.</p>
<p>Above you&#8217;ll again notice the <code>&lt;title&gt;</code> and like the Home Page SEO, this field should be under 70 characters &#8212; shorter is fine &#8212; and very succinct. Remove filler words, but remember that real visitors will see this content &#8212; make sure it reads fluently and conveys the basic idea of the category&#8217;s contents.</p>
<p>The meta description also returns, and again it&#8217;s not an SEO factor &#8212; but it remains a &#8220;convincer&#8221; &#8212; the time spent on a quality meta description is worth extra effort if your categories are common landing points for visitors.</p>
<p>Finally, adding or editing a category&#8217;s meta keywords can be skipped &#8212; or at most, keep the meta keywords to a minimum.</p>
<p><strong>Category SEO Settings &#8212; Part II</strong></p>
<p>Again as seen in the Home Page SEO setting, if you&#8217;re using categories as part of your optimization strategy, they need to be followed and indexed. Archived or not is up to you &#8212; it&#8217;s not an SEO factor.</p>
<p><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2012/01/sample-category-seo-thesis-interface-two.png" alt="Sample Category SEO Thesis Interface Part II" width="497" height="457" /></p>
<p>Compared to the Home Page SEO settings, your categories get two additional SEO-relevant sections.  These fields are similar to the <em>visible</em> H1 &#8220;title&#8221; and content of individual posts and pages.</p>
<p>The Introductory Headline field contents will appear as text on your category landing page &#8212; it will be wrapped in H1 tags. The Header One or &lt;h1&gt; tag is a second-tier SEO device &#8212; important, but not as important as the <code>&lt;title&gt;</code> you created in Part I.</p>
<p>As a rule of thumb, make your Introductory Headline relevant to the category&#8217;s posts. If you&#8217;re working with a category about evergreen trees, you&#8217;d probably include the word &#8220;evergreen&#8221; in the Introductory Headline.</p>
<p>The Introductory Content has no more SEO value than any other &#8220;paragraph&#8221; of content. However, because category pages are otherwise &#8220;a list of posts&#8221; the content here is potentially more &#8220;important&#8221; than pages or posts &#8212; because post and pages often have many paragraphs of unique content.</p>
<p>What you write for Introductory Content is not only useful to your visitors, it can help individual categories stand on their own legs from an SEO perspective &#8212; thus making your categories more than just a temporary dumping zone for assigned posts.</p>
<p>How much Introductory Content you add is up to you &#8212; describing the category&#8217;s posts should offer natural opportunities for using key terms throughout this section.</p>
<h2>Individual Post &amp; Page SEO Settings in the Thesis Interface</h2>
<p>First off, it&#8217;s worth noting that Thesis will &#8220;create&#8221; a <code>&lt;title&gt;</code> and meta description for your posts and pages automatically, in the event you do not create manual SEO data for individual posts and pages.</p>
<p>For sites with high volumes of low-quality content, that&#8217;s probably good enough. But for unique, high-quality content, leaving your <code>&lt;title&gt;</code> and meta description to automation is the SEO equivalent of using a rubber stamp to sign birthday cards.</p>
<p>If you cared enough to write that page or post, spend a minute or two on the SEO. Again, the meta description won&#8217;t climb the ranks for you, but an automatic excerpt for a meta description is not as convincing &#8212; convincing to visitors you want to click-through from a search results page &#8212; as a hand-crafted description.</p>
<p>If you&#8217;re still not convinced, again, with Thesis you don&#8217;t <em>have</em> to write SEO details for every last page and post. But you should.</p>
<p>Here is where we are in the Thesis interface:</p>
<p><code>WP Admin &gt; Posts &gt; Add New &gt; SEO Details and Additional Style &gt; [ here ]</code></p>
<p><code>WP Admin &gt; Pages &gt; Add New &gt; SEO Details and Additional Style &gt; [ here ]</code></p>
<p>The difference is &#8212; almost nothing.  Pages and posts, for SEO purposes, are very similar URL types.  Thus, whether you&#8217;re adding or editing a page or a post, visually you&#8217;ll see this underneath your WordPress text editor:</p>
<p><img loading="lazy" decoding="async" src="/thesis/rtfm/wp-content/uploads/2011/12/sample-page-post-seo-fields.png" alt="Thesis Post or Page SEO Input Fields" width="596" height="336" /></p>
<p>Remember, way back, when SEO was declared not-scary? If you&#8217;ve already read the Global, Home, and Category portions of this tutorial, how <del>bored</del> scared are you right now?</p>
<p>For SEO purposes, add a <code>&lt;title&gt;</code>, then add a meta description. The meta keywords remain of low or no value. Do not check noindex or nofollow for an individual page/post unless you have a good reason to do so &#8212; an isolated or very temporary landing page could be an example.</p>
<p>How easy was that? You&#8217;re practically an SEO rock star!</p>
<p>Notable at this point is that our Thesis SEO walk-through has gone from top to bottom.</p>
<p>At a very high level were the Global and Home Page SEO settings. A step down &#8212; because presumably you have more than one &#8212; were the categories, where SEO details for categories should be more specific than the Global or Home sections.</p>
<p>Finally, you&#8217;re down to a single unit of content, a page or post. Here, it&#8217;s all in the details. Really specific ones!</p>
<p>Taking the <code>&lt;title&gt;</code> as an example of the progression from broad to focused, your Home Page SEO was all-inclusive. Remember the example of a tree service? Here it is again:</p>
<blockquote><p>Fargo Tree Services | Trimming &#8211; Stump Removal &#8211; Fertilizing</p></blockquote>
<p>That&#8217;s an SEO shotgun. However, one of your <em>categories</em> would drill-down into a more specific area, such as &#8220;Trimming&#8221; &#8212; and a sub-category to &#8220;Trimming&#8221; like &#8220;Hedge Trimming&#8221; would become more detailed yet. The <code>&lt;title&gt;</code> and meta description would &#8220;zoom in&#8221; more for a category than the Home Page SEO choices.</p>
<p>For example, if you had a category on &#8220;Hedge Trimming&#8221; then the same SEO component used on the Home Page &#8212; the <code>&lt;title&gt;</code> &#8212; might go like this:</p>
<blockquote><p>Hedge Trimming | Evergreen Health and Maintenance</p></blockquote>
<p>And now, with a <em>post</em> in the &#8220;Hedge Trimming&#8221; category, you&#8217;ll dig even deeper into SEO detail.</p>
<p>Composing a post that offers free advice to potential customers?  Your SEO for a single post&#8217;s <code>&lt;title&gt;</code>, within the category of Hedge Trimming, might look like this:</p>
<blockquote><p>How to Winterize a Cedar Windbreak Using Electric Shears</p></blockquote>
<p>With careful top-down SEO &#8212; where the Home Page feeds into a Category that feeds into a single Post &#8212; you&#8217;re all set.</p>
<p>Heads-up, Fargo Tree People! There&#8217;s a new player in the SERPs &#8212; one with a solid grasp on basic WordPress SEO.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to Add Frames to Individual Images in WordPress</title>
		<link>https://diythemes.com/thesis/rtfm/how-to-add-frames-images-wp/</link>
		
		<dc:creator><![CDATA[godhammer]]></dc:creator>
		<pubDate>Tue, 27 Dec 2011 01:52:42 +0000</pubDate>
				<category><![CDATA[Thesis 1 Documentation]]></category>
		<guid isPermaLink="false">https://diythemes.com/thesis/rtfm/?p=3012</guid>

					<description><![CDATA[Some images look better with a &#8220;picture frame&#8221; &#8212; and some look better standalone. When Should You Use A Frame On Your Images examined the when and why of using image frames. But you may be wondering how to work with framed images on a one-by-one basis. To illustrate what is meant by framing an [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Some images look better with a &#8220;picture frame&#8221; &#8212; and some look better standalone.</p>
<p><a href="https://diythemes.com/thesis/frames-images-blog/">When Should You Use A Frame On Your Images</a> examined the <em>when and why</em> of using image frames.</p>
<p>But you may be wondering <em><strong>how</strong></em> to work with framed images on a one-by-one basis.</p>
<p>To illustrate what is meant by <em>framing</em> an image, the graphic below shows three versions of an image that is presumed to be in-context in a post or page.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3013" title="Three examples of image frames in WordPress" src="https://diythemes.com/thesis/rtfm/wp-content/uploads/2011/12/sample-three-framed-images.png" alt="Three examples of image frames in WordPress" width="551" height="182" /></p>
<p>On the left is the image without an image frame.</p>
<p>In the middle, the same image appears with the default &#8220;frame&#8221; class.</p>
<p>On the right, a unique class has been added &#8212; where CSS values have been created in <code>custom.css</code> to differentiate this frame from the gray defaults of the &#8220;frame&#8221; class.</p>
<p>Let&#8217;s examine various scenarios to get either a default or unique image &#8220;picture frame&#8221; on individual images.</p>
<h3>Image Frames in the WordPress Visual Tab</h3>
<p>Inserting images in the Visual tab is simple, and adding a class for your frame to one or more images can be done at least two different ways.</p>
<p><strong>1. How to Add Single Image Frames Using &#8220;Advanced Settings&#8221;</strong></p>
<p>We&#8217;ll assume you already know how to add an image using the Upload/Insert method in the Visual tab.</p>
<p>Once you have an image visible in your post or page, classes such as <code>class="framed-image"</code> or the predefined <code>class="frame"</code> can be added to individual images by right-clicking the image in the post editor.</p>
<p>Next, click the small &#8220;picture&#8221; icon that appears over the left-top of your image, and finally, click &#8220;Advanced Settings&#8221; at the top of the light-boxed area&#8217;s tabs.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3014" title="Clicking the Image Editor in the Visual Tab" src="https://diythemes.com/thesis/rtfm/wp-content/uploads/2011/12/sample-visual-editor-click-frame-image.png" alt="Clicking the Image Editor in the Visual Tab" width="498" height="155" /></p>
<p>In the Advanced Settings you should see a field labeled &#8220;CSS Class&#8221; &#8212; an existing class such as &#8220;alignnone&#8221; may already be there.</p>
<p>Add a space after any existing classes, then add your code, where again the options used in this tutorial are <code>framed-image</code> or <code>frame</code> &#8212; then click &#8220;Update&#8221; such that the lightbox disappears.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3015" title="Visual Editor -- Advanced Settings for Image Editing" src="https://diythemes.com/thesis/rtfm/wp-content/uploads/2011/12/sample-visual-editor-edit-frames.png" alt="Visual Editor -- Advanced Settings for Image Editing" width="441" height="225" /></p>
<p>The single image addressed will now have a frame.  While the frame might not appear in the Visual Editor, it can be viewed on your site either by clicking &#8220;Preview&#8221; or &#8220;Update&#8221; within the admin interface.</p>
<p>Using a class such as &#8220;framed-image&#8221; instead of the predefined &#8220;frame&#8221; class presumes &#8220;framed-image&#8221; has been defined in the <code>custom.css</code> file contents like so:</p>
<pre class="css">.custom .framed-image {
padding:0.692em;
background:#F7EFDB;
border-color: #E0D5BB;
border-width:0.077em;
border-style:solid;
}</pre>
<p>The above is similar to the values used by the default &#8220;frame&#8221; class, but applies non-default values for a unique background and border color.  These unique values produce the image frame seen in the right-side illustration at the top of this tutorial.</p>
<p>For a unique class such as <code>framed-image</code> to make sense, the CSS should contain differences relative to the default &#8220;frame&#8221; CSS &#8212; otherwise, additional steps result in no visible gain.</p>
<p><strong>2. How to Add Multi-Image Frames Using a CSS Body Class</strong></p>
<p>The other option for assigning frames to images in the Visual editor is to add a custom CSS class to the entire post or page.  By doing so, multiple images can be addressed with your custom image frame &#8212; all at the same time.</p>
<p>This option is possible by scrolling down the post being edited, moving beyond the post/page content editor to the fields below.</p>
<p>The CSS Class option can be used if you wish to add an image frame to <em>all images</em> in the post or page being edited.  In the below, the class <code>all-framed</code> has been added:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3016" title="Body-Level Class Assignation for Global Image Frames" src="https://diythemes.com/thesis/rtfm/wp-content/uploads/2011/12/sample-body-level-css-class-naming.png" alt="Body-Level Class Assignation for Global Image Frames" width="353" height="94" /></p>
<p>This will apply a body-level class, so to target <em>only</em> images in your post or page contents &#8212; not images in the header, sidebars, comments, etc &#8212; provide additional targeting via selector in your <code>custom.css</code>:</p>
<pre class="css">.custom.all-framed .format_text img {
padding:0.692em;
background:#ccc;
border-color: #111;
border-width:0.077em;
border-style:solid;
}</pre>
<p>Notice the class used here is neither &#8220;framed&#8221; nor &#8220;framed-image&#8221; &#8212; these were used in previous examples.  The <code>all-framed</code> class lets you apply a global frame to images on one post/page &#8212; but you can still override this with the previous classes to achieve specific exceptions within the given post or page.</p>
<h3>Image Frames in the WordPress HTML Tab</h3>
<p>Adding a special class to images in the WordPress HTML tab of the page/post editor is not difficult.  If you are editing a post or page, there are two methods in the HTML tab to add an image.  Either reaches a similar conclusion.</p>
<p><strong>1. Add a Frame Class to Images in the HTML Tab &#8212; Upload/Insert.</strong></p>
<p>The first option is to use the Upload/Insert icon in the HTML editor tab to insert an image.</p>
<p>This method is very similar to the Visual Tab method discussed previously.  To begin, an image can be dragged into a media box when the Upload/Insert icon is clicked &#8212; other options include selecting images from your media library or URL.</p>
<p>As an aside, note that images with <em>captions</em> get a frame by default.  While the captioned frame can <em>also</em> be uniquely styled &#8212; it has CSS values similar to the &#8220;frame&#8221; class &#8212; modifications to captioned images fall beyond the scope of this tutorial.</p>
<p>With a &#8220;no caption&#8221; image added via your HTML editor, you should see code like this:</p>
<pre>&lt;img alt="xxxxx" src="http://YOUR_DOMAIN.com/IMAGE_FILENAME.png"
title="xxxxxx" class="alignnone" width="xxxxx" height="xxxxx" /&gt;</pre>
<p>Areas with &#8220;xxxxx&#8221; placeholders would contain values, of course.</p>
<p>To apply an existing class to the image above &#8212; to apply the default &#8220;gray&#8221; frame &#8212; simply add <code>class="frame"</code> to the code in your HTML editor pane, as shown below:</p>
<pre>&lt;img alt="xxxxx" src="http://YOUR_DOMAIN.com/IMAGE_FILENAME.png"
title="xxxxxx" class="alignnone frame" width="xxxxx" height="xxxxx" /&gt;</pre>
<p>To add a <em>custom</em> class to this single image, type <code>class="framed-image"</code> as shown, giving your image code a unique CSS class:</p>
<pre>&lt;img alt="xxxxx" src="http://YOUR_DOMAIN.com/IMAGE_FILENAME.png"
title="xxxxxx" class="alignnone framed-image" width="xxxxx" height="xxxxx" /&gt;</pre>
<p>Again, the difference between these two classes is that using a unique class &#8212; it doesn&#8217;t need to be named &#8220;framed-image&#8221; &#8212; you can redefine the image frame&#8217;s values.  This allows visual modifications that are <em>unlike</em> the gray, default class of <code>frame</code>.</p>
<p>As mentioned in the Visual tab methods, using a unique CSS class requires CSS values be added to your <code>custom.css</code> file contents.</p>
<p><strong>2. Add a Frame Class to Images in the HTML Tab &#8212; IMG icon.</strong></p>
<p>The second option is to click the &#8220;img&#8221; icon in the HTML tab&#8217;s interface.</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-3017" title="Clicking the IMG icon in the WP Editor -- HTML tab" src="https://diythemes.com/thesis/rtfm/wp-content/uploads/2011/12/sample-img-icon-clicked-html-tab.png" alt="Clicking the IMG icon in the WP Editor -- HTML tab" width="490" height="75" /></p>
<p>Once &#8220;img&#8221; is clicked, you&#8217;ll be asked in a sequence of pop-ups for the URL of the image and a &#8220;Description&#8221; &#8212; the description field will be the image &#8220;alt&#8221; or alternate text.</p>
<p>The result is succinct HTML code, to which you can add the same <code>class="framed-image"</code> or <code>class="frame"</code> values as was described in the Upload/Insert method.</p>
<p>Beginning with the unmodified code, you&#8217;ll see a line like this:</p>
<pre>&lt;img src="http://YOUR_DOMAIN.com/IMAGE_FILENAME.png" alt="" /&gt;</pre>
<p>To use the default &#8220;gray frame&#8221; class here, add <code>class="frame"</code> to the code:</p>
<pre>&lt;img class="frame" src="http://YOUR_DOMAIN.com/IMAGE_FILENAME.png" alt="" /&gt;</pre>
<p>To apply a custom class, add <code>class="framed-image"</code> like so:</p>
<pre>&lt;img class="framed-image" src="http://YOUR_DOMAIN.com/IMAGE_FILENAME.png" alt="" /&gt;</pre>
<p>That&#8217;s all there is to it!</p>
<p>In the end, adding a class to apply one or more &#8220;picture frames&#8221; to your images on a one-by-one basis provides a flexible, simple way to make the most of the images used in your site&#8217;s posts and pages.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
