<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Thoughts Unlimited &#187; Thesis Tips</title>
	<atom:link href="/blog/category/wordpress/thesis/thesistips/feed" rel="self" type="application/rss+xml" />
	<link>https://thoughtsunlimited.net/blog</link>
	<description>Professional Blogging, Wordpress and Thesis Theme Tips</description>
	<lastBuildDate>Thu, 11 Feb 2010 14:27:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Thesis Theme : Setup Pagination on Home Page</title>
		<link>https://thoughtsunlimited.net/blog/2009/09/thesis-theme-pagination</link>
		<comments>https://thoughtsunlimited.net/blog/2009/09/thesis-theme-pagination#comments</comments>
		<pubDate>Sun, 20 Sep 2009 14:31:21 +0000</pubDate>
		<dc:creator>Ashwin</dc:creator>
				<category><![CDATA[Thesis Theme]]></category>
		<category><![CDATA[Thesis Tips]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[thesis theme]]></category>
		<category><![CDATA[thesis tips]]></category>

		<guid isPermaLink="false">https://thoughtsunlimited.net/blog/?p=1306</guid>
		<description><![CDATA[In this tutorial, we will see How to Setup Pagination on the Home Page of your Blog or Website running on the Thesis Theme for Wordpress.  This will replace the regular “Previous Entries” link that appears at the bottom of your Content Area, just below the Teasers (if you are using them).
What are we trying [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><em>In this tutorial, we will see How to Setup Pagination on the Home Page of your Blog or Website running on the <a href="/blog/thesis-affiliate" target="_blank">Thesis Theme for Wordpress</a>.  This will replace the regular “Previous Entries” link that appears at the bottom of your Content Area, just below the Teasers (if you are using them).</em></p>
<h3>What are we trying to create?</h3>
<p><center><br />
<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0' width='560' height='345'><param name='movie' value='http://screenr.com/Content/assets/screenr_0817090731.swf' /><param name='flashvars' value='i=13525' /><param name='allowFullScreen' value='true' /><embed src='http://screenr.com/Content/assets/screenr_0817090731.swf' flashvars='i=13525' allowFullScreen='true' width='560' height='345' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></object><br />
</center><br />
<span id="more-1306"></span></p>
<h3>Install the WP Navigation Plugin</h3>
<p>To setup pagination on your <em>Wordpress</em> Blog, we need to install the <em>WP-Navigation Plug-in. </em></p>
<p>You can download the Plug-in from its Home Page -<a title="http://www.lesterchan.net/wordpress/readme/wp-pagenavi.html" href="http://www.lesterchan.net/wordpress/readme/wp-pagenavi.html">http://www.lesterchan.net/wordpress/readme/wp-pagenavi.html</a></p>
<p>Follow the instructions on the Plug-in page for installation.  Note there are different versions of the plug-in, for various <em>Wordpress versions. </em>Choose the right one based on your Wordpress install.</p>
<p>Default settings and options for the plug-in is sufficient to get started. If you need further changes, options are available under <em>Settings &#8211; PageNavi</em> in your <em>Wordpress Admin Dashboard</em></p>
<p>Proceed further only if the plug-in is successfully installed and activated.</p>
<h3>Add code to <em>custom_functions.php</em></h3>
<p>Add the following code to <em>custom_functions.php </em>file.  You can find this file in the following path &#8211; <em>&lt;Thesis Theme Folder&gt;/custom/custom_functions.php</em></p>
<pre class="brush: php;">
/* Pagination */
function my_thesis_pagination() {
  echo &quot;&lt;div class='prev_next'&gt;&quot;;
  wp_pagenavi();
  echo &quot;&lt;/div&gt;&quot;;
}
remove_action('thesis_hook_after_content','thesis_post_navigation');
add_action('thesis_hook_after_content', 'my_thesis_pagination');
</pre>
<h3>Add styles to <em>custom.css</em></h3>
<p>Add the following code to <em>custom.css </em>file.  You can find this file in the following path &#8211; <em>&lt;Thesis Theme Folder&gt;/custom/custom.css</em></p>
<pre class="brush: css;">
/* Page Navigation */
.custom .full_width #content_box .wp-pagenavi .page {
  margin: 2px;
  padding: 2px 4px;
}
</pre>
<h3>Further Styling up the Pagination Bar</h3>
<p>With the default installation, your pagination bar looks something like this.</p>
<p><a href="/blog/wp-content/uploads/2009/09/thesispagination.jpg" rel="shadowbox[post-1306];player=img;"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="thesispagination" src="/blog/wp-content/uploads/2009/09/thesispagination_thumb.jpg" border="0" alt="thesispagination" width="454" height="37" /></a></p>
<p>If you like to try your hand at CSS, then the pagination bar can be further styled by making changes to the following file:</p>
<p class="alert"><em>&lt;Wordpress Installation folder&gt;/wp-content/plugins/wp-pagenavi/pagenavi-css.css</em></p>
<p><strong>Get in touch with me, if you need any help in styling the pagination bar.</strong></p>
<p class="note">Hope you found this simple tutorial useful.  Share it on social media using the tools given below, so that more <a href="/blog/thesis-affiliate" target="_blank">Thesis</a> folks might use it!</p>
]]></content:encoded>
			<wfw:commentRss>https://thoughtsunlimited.net/blog/2009/09/thesis-theme-pagination/feed</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>Show your latest Tweet on top of Content Column in Thesis Theme</title>
		<link>https://thoughtsunlimited.net/blog/2009/09/show-your-latest-tweet-in-thesis-theme</link>
		<comments>https://thoughtsunlimited.net/blog/2009/09/show-your-latest-tweet-in-thesis-theme#comments</comments>
		<pubDate>Wed, 16 Sep 2009 03:15:13 +0000</pubDate>
		<dc:creator>Ashwin</dc:creator>
				<category><![CDATA[Thesis Tips]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">https://thoughtsunlimited.net/blog/?p=1282</guid>
		<description><![CDATA[Thesis Theme makes life a lot simpler, if you are trying to customize your blog.&#160; In this post, I will show you how to display your latest tweets at the top of your content column.&#160; You can either choose to display this only on the Home page or on all pages.
What we will Create?
This is [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><em>Thesis Theme makes life a lot simpler, if you are trying to customize your blog.&#160; In this post, I will show you how to display your latest tweets at the top of your content column.&#160; You can either choose to display this only on the Home page or on all pages.</em></p>
<h3>What we will Create?</h3>
<p>This is what we are trying to create in this tutorial – the latest twitter update on the top of your content column.&#160; There is also a link to your Twitter profile home page.</p>
<p><a href="/blog/wp-content/uploads/2009/09/thesistwittertop_1.jpg" rel="shadowbox[post-1282];player=img;"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="thesistwittertop_1" border="0" alt="thesistwittertop_1" src="/blog/wp-content/uploads/2009/09/thesistwittertop_1_thumb.jpg" width="624" height="327" /></a> </p>
<p>  <span id="more-1282"></span><br />
<h3>How do we get this?</h3>
<p>As with any other customization in Thesis Theme, this requires changes in the following files found under the <em>&lt;Wordpress Root&gt;/&lt;Thesis theme folder&gt;/custom</em> folder.</p>
<ul>
<li><em>custom_functions.php</em> </li>
<li><em>custom.css</em> </li>
</ul>
<h4>Changes in <em>custom.css</em></h4>
<p>Copy the following code into your <em>custom.css </em>file towards the bottom.&#160; I have suitably demarcated the code with a comment, so that you can easily identify it later.</p>
<p><pre class="brush: css;">
/* Twitter widget Before content */
#twitter_div {
  background:transparent url(images/twitter_verysmall.gif) no-repeat scroll 0 10px;
  padding:10px 0 10px 48px; position:relative;
}
#twitter_div li {
  font-family:georgia,serif;
  font-size:1em;
  font-size-adjust:none;
  font-stretch:normal;
  font-style:normal;
  font-variant:normal;
  font-weight:normal;
  line-height:normal;
  list-style-image:none;
  list-style-position:outside;
  list-style-type:none;
}
#twitter_div li span {
  display:block;
  font-size:1.1em;
  font-style:italic;
}
#twitter_div ul {
  margin:0 0 8px 12px;
}
#twitter_div li span a a:visited {
  color:#2A69A3; text-decoration:none;
}
#twitter_link {
  color:#2A69A3;
  text-decoration:none;
  font-size:1em;
  font-style:italic;
  float:right;
  margin-right:25px;
}
/* Twitter widget Before content */ </pre>
</p>
<p>I have used a very small Twitter icon that displays on the left corner.&#160; You can download the icon from here (right click and ‘Save as’).</p>
<p><a href="/blog/wp-content/uploads/2009/09/twitter_verysmall.gif" rel="shadowbox[post-1282];player=img;"><img style="border-bottom: 0px; border-left: 0px; display: inline; margin-left: 0px; border-top: 0px; margin-right: 0px; border-right: 0px" title="twitter_verysmall" border="0" alt="twitter_verysmall" src="/blog/wp-content/uploads/2009/09/twitter_verysmall.gif" width="48" height="48" /></a> </p>
<p>Copy this file into your <em>&lt;Wordpress Root&gt;/&lt;Thesis theme folder&gt;/custom/images </em>folder.</p>
<h4>Changes in custom_functions.php</h4>
</p>
<p>Now copy the following code into your <em>custom_functions.php </em>file.&#160; This code uses the ‘thesis_hook_before_content’ of Thesis.&#160; So if you are already using this Hook in your Thesis Customization, just add only the HTML portion of this code towards the end (<em>if you have any problems, feel free to contact me</em>).</p>
<pre class="brush: php;">
/* Latest Tweets above Content column */
function my_thesis_before_content() {
  if (is_home()) { ?&gt;
   &lt;div class='format_text'&gt;
      &lt;div id='twitter_div'&gt;
        &lt;ul id='twitter_update_list'&gt;
	  &lt;li&gt;
		&lt;script type='text/javascript' src='http://twitter.com/javascripts/blogger.js'&gt;&lt;/script&gt;
		&lt;script type='text/javascript' src='http://twitter.com/statuses/user_timeline/**yourtwitter**.json?callback=twitterCallback2&amp;amp;count=1'&gt;&lt;/script&gt;
	  &lt;/li&gt;
	&lt;/ul&gt;
        &lt;div id='twitter_link'&gt;
		&lt;a href='http://twitter.com/**yourtwitter**'&gt;Join Me on Twitter&lt;/a&gt;
	&lt;/div&gt;
       &lt;/div&gt;
   &lt;/div&gt;
&lt;?php
  }
}
add_action('thesis_hook_before_content', 'my_thesis_before_content');
</pre>
<p>In the above code, there are a couple of points where it is mentioned as **yourtwitter**.  Replace them with your Twitter username.</p>
<p>Current Code as is, would display the Twitter updates only on your home page.  If you want this to be displayed on all other pages and posts, just remove the following</p>
<ul>
<li><em>if (is_home())</em> from the top</li>
<li><em>}</em> from the bottom</li>
</ul>
<p class="alert"><strong>Tip:</strong> For the sake of this tutorial, I have used the <em><strong>thesis_hook_before_content</strong></em> hook.  But you can easily replace with other hooks like <em><strong>thesis_hook_before_post_box, thesis_hook_before_post, thesis_hook_after_post, thesis_hook_after_post_box</strong></em>, etc., depending on where you need the Twitter updates to appear.  Love the power of <a href="/blog/thesis-affiliate" target="_blank" rel="nofollow">Thesis</a>!</p>
<h3>Conclusion</h3>
<p class="note">And, that&#8217;s it.  Now just reload your page and see your latest tweet right there at the top.  Contact me <a href="http://twitter.com/tublogger">@tublogger</a> or <a href="mailto:ashwin.chandrasekaran@gmail.com">ashwin.chandrasekaran@gmail.com</a> in case you face any issues with setting this up on your Thesis Blog.  I would love to help!</p>
]]></content:encoded>
			<wfw:commentRss>https://thoughtsunlimited.net/blog/2009/09/show-your-latest-tweet-in-thesis-theme/feed</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Create a Killer Services and Portfolio Page with Thesis Theme</title>
		<link>https://thoughtsunlimited.net/blog/2009/09/services-and-portfolio-page-with-thesis-theme</link>
		<comments>https://thoughtsunlimited.net/blog/2009/09/services-and-portfolio-page-with-thesis-theme#comments</comments>
		<pubDate>Wed, 02 Sep 2009 18:11:18 +0000</pubDate>
		<dc:creator>Ashwin</dc:creator>
				<category><![CDATA[Blogging Tips]]></category>
		<category><![CDATA[Thesis Tips]]></category>

		<guid isPermaLink="false">https://thoughtsunlimited.net/blog/?p=1203</guid>
		<description><![CDATA[Been a while since I created a Thesis tutorial.  Here you go!  I will show you how to create a “killer” Services and Portfolio Page using Thesis Theme.  In the portfolio section, you can even add the snapshots of the sites you created, testimonials and more.  Read on how to do it!

1.  Create a Page [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><em><a href="/blog/wp-content/uploads/2009/09/ThesisTipsBanner.jpg" rel="shadowbox[post-1203];player=img;"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="Thesis Tips Banner" src="/blog/wp-content/uploads/2009/09/ThesisTipsBanner_thumb.jpg" border="0" alt="Thesis Tips Banner" width="404" height="204" /></a></em></p>
<p><em>Been a while since I created a Thesis tutorial.  Here you go!  I will show you how to create a “killer” Services and Portfolio Page using Thesis Theme.  In the portfolio section, you can even add the snapshots of the sites you created, testimonials and more.  Read on how to do it!</em><br />
<span id="more-1203"></span></p>
<h3>1.  Create a Page that uses a Custom Template</h3>
<p>To start with, let us create a <em>Wordpress</em> page that will use a Custom Template.</p>
<p><a href="/blog/wp-content/uploads/2009/09/thesisservicepage_1.jpg" rel="shadowbox[post-1203];player=img;"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="thesisservicepage_1" src="/blog/wp-content/uploads/2009/09/thesisservicepage_1_thumb.jpg" border="0" alt="thesisservicepage_1" width="192" height="244" align="left" /></a></p>
<p>Go to <em>Pages </em>in your WP Dashboard and select <em>Add New.</em></p>
<p>Create a Page with the name <em>Services. </em>You can choose any name for your page, but just remember it.</p>
<p>On the right side, under <em>Template </em>choose the value as <em>Custom Template</em></p>
<p>Create the page.</p>
<p>Go back to the <em>Pages </em>section and hover your mouse pointer over the <em>Page Link </em>to find out the “<em>page id”. </em>We will use this in our code.</p>
<p class="note"><strong>Note:</strong> This page will use the full width layout and does not display sidebars.  Let me know if you need the sidebars too and I can help you</p>
<h3>2.  Add styling to the <em>custom.css</em> file</h3>
<p>Now add the following styling information into the <em>custom.css </em>file.  You can find this file under the following path &#8211; <strong><em>&lt;path to the thesis theme&gt;/custom/</em></strong>.  I have tried to use unique names for the services page – but if you find any of the identifiers are already used in your <em>custom.css, </em>feel free to replace them.</p>
<pre class="brush: css;">
/* Services Page Styling */
.custom #content_box { background: transparent; }

 .custom #content { width: 100%; }

.custom .headline_area { margin-bottom:1em; }

.custom #content_box .headline_area h1 { color:#310D07; font-size:30px; font-weight:normal; letter-spacing:-1px; line-height:36px; margin-top:16px; border-bottom:1px dotted #310D07; }

.services_row { margin:0 -10px; overflow:hidden; width:900px; }

.services_column { display:inline; float:left; margin:0 10px; overflow:hidden; }

.services_grid_small { width:275px; }

.services_grid_medium { width:400px; }

.services_grid_small h3 { color:#310D07; font-size:24px; font-weight:normal; line-height:24px; margin:16px 0 12px; }

.services_grid_medium h3 { color:#310D07; font-size:24px; font-weight:normal; line-height:24px; margin:16px 0 12px; }

.services_column ul { font-size:16px; list-style-image:none; list-style-position:outside; list-style-type:disc; margin:0 0 16px 16px; }

.services_column li { padding-bottom:8px; }

.portfolio_column { display:inline; float:left; margin:0 10px; overflow:hidden; height:250px; }

.portfolio_column img { padding:10px; width:350px; height:230px; }

.quote li { list-style-type:none; }

.quote .caption { padding:10px; margin:10px; font-size:26px; font-style:italic; background:#F5F5F5 none repeat scroll 0 0; line-height:1.1em; }

.quote .client { font-style:italic; padding-bottom:5px; padding-right:20px; text-align:right; font-size:18px; }
</pre>
<h3>3.  Add code to the <em>custom_functions.php </em>file</h3>
<p>Then, add the following code the <em>custom_functions.php </em>file.  You can find this file under the following path &#8211; <strong><em>&lt;path to the thesis theme&gt;/custom/</em></strong></p>
<pre class="brush: php;">
/* SERVICES AND PORTFOLIO PAGE */

function services_page() {

// Repeat the array for the number of Portfolio you have
// image_name - Name of the Image copied under /custom/images in your Thesis theme
// portfolio_site_url - URL of the site you created
// portfolio_site_name - Name of the site you created
// testimonial - Testimonial given by your client
// client_name - Name of your client

$portfolio = array ( &quot;portfolio_1&quot;  =&gt; array ( &quot;image_name&quot; =&gt; &quot;port_image1.jpg&quot;,
                                       		&quot;portfolio_site_url&quot; =&gt; &quot;http://supersite1.com&quot;,
                                       		&quot;portfolio_site_name&quot; =&gt; &quot;Super Site 1&quot;,
                                       		&quot;testimonial&quot; =&gt; &quot;Thoughts Unlimited has done a wonderful job for me.  I am definitely looking forward to work with him again.&quot;,
                                       		&quot;client_name&quot; =&gt; &quot;Brian Clark&quot;,
                                       		&quot;client_site_name&quot; =&gt; &quot;Copyblogger&quot;,
                                       		&quot;client_site_url&quot; =&gt; &quot;http://copyblogger.com&quot;
                                     ),
&quot;portfolio_2&quot;  =&gt; array ( &quot;image_name&quot; =&gt; &quot;port_image2.jpg&quot;,
                                       		&quot;portfolio_site_url&quot; =&gt; &quot;http://supersite2.com&quot;,
                                       		&quot;portfolio_site_name&quot; =&gt; &quot;Super Site 2&quot;,
                                       		&quot;testimonial&quot; =&gt; &quot;Thoughts Unlimited is amazing with his Application Developm[ent capabilities! He rocks!&quot;,
                                       		&quot;client_name&quot; =&gt; &quot;Darren Rowse&quot;,
&quot;client_site_name&quot; =&gt; &quot;Problogger&quot;,
                                       		&quot;client_site_url&quot; =&gt; &quot;http://problogger.net&quot;
                                     )
                 );

//Give your Page ID and Page Name here
if (is_page('press') || is_page('1023')) { ?&gt;

&lt;div id=&quot;content&quot;&gt;
&lt;div class=&quot;post_box&quot;&gt;
&lt;div class=&quot;headline_area&quot;&gt;
&lt;h1&gt;Services&lt;/h1&gt;
&lt;/div&gt;
&lt;div class=&quot;format_text&quot;&gt;
&lt;div class=&quot;services_row&quot;&gt;
&lt;div class=&quot;services_column services_grid_small&quot;&gt;
&lt;h3&gt;Web Design&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Service 1&lt;/li&gt;
&lt;li&gt;Service 2&lt;/li&gt;
&lt;li&gt;Service 3&lt;/li&gt;
&lt;li&gt;Service 4&lt;/li&gt;
&lt;li&gt;Service 5&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;services_column services_grid_small&quot;&gt;
&lt;h3&gt;Web Development&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Service 1&lt;/li&gt;
&lt;li&gt;Service 2&lt;/li&gt;
&lt;li&gt;Service 3&lt;/li&gt;
&lt;li&gt;Service 4&lt;/li&gt;
&lt;li&gt;Service 5&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;services_column services_grid_small&quot;&gt;
&lt;h3&gt;Thesis Skins&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Service 1&lt;/li&gt;
&lt;li&gt;Service 2&lt;/li&gt;
&lt;li&gt;Service 3&lt;/li&gt;
&lt;li&gt;Service 4&lt;/li&gt;
&lt;li&gt;Service 5&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;headline_area&quot;&gt;
&lt;h1&gt;Portfolio&lt;/h1&gt;
&lt;/div&gt;
&lt;div class=&quot;format_text&quot;&gt;
&lt;?php
foreach ($portfolio as $temp =&gt; $fields) {

?&gt;
&lt;div class=&quot;services_row&quot;&gt;
&lt;div class=&quot;portfolio_column services_grid_medium&quot;&gt;
&lt;a href=&quot;&lt;?php echo $fields['portfolio_site_url']; ?&gt;?rel=nofollow&quot;&gt;&lt;img src=&quot;&lt;?php bloginfo('template_url'); ?&gt;/custom/images/&lt;?php echo $fields['image_name']; ?&gt;&quot; /&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;div class=&quot;portfolio_column services_grid_medium&quot;&gt;
&lt;ul class=&quot;quote&quot;&gt;
&lt;li&gt;
&lt;div class=&quot;caption&quot;&gt;
&lt;?php echo $fields['testimonial']; ?&gt;
&lt;/div&gt;
&lt;div class=&quot;client&quot;&gt;
- &lt;?php echo $fields['client_name']; ?&gt;, &lt;a href=&quot;&lt;?php echo $fields['client_site_url']; ?&gt;?rel=nofollow&quot;&gt;&lt;?php echo $fields['client_site_name']; ?&gt;&lt;/a&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;?php
}
?&gt;
&lt;/div&gt;
&lt;div class=&quot;headline_area&quot;&gt;
&lt;h1&gt;Contact&lt;/h1&gt;
&lt;/div&gt;
&lt;div class=&quot;format_text&quot;&gt;
&lt;!-- Put your contact form code here --&gt;
&lt;h3&gt;Create your contact form here...&lt;/h3&gt;
&lt;/div&gt;
&lt;/div&gt;

&lt;?php }
}

remove_action('thesis_hook_custom_template', 'thesis_custom_template_sample');
add_action('thesis_hook_custom_template', 'services_page');
</pre>
<p>Make sure to add the code at the bottom and there are no additional brackets that can cause compilation errors.</p>
<p class="alert">At the start of the function, I have used an array where you can specify the Portfolio details.  Make sure to suitably edit them to match your portfolio.  Edit the <em>Page Name and Page Id </em>in the function to match the one for the page you created.   <strong>Create Thumbnails of your Portfolio sites, resize them to 350&#215;230, upload them to <em>custom/images</em> folder and set the file names the appropriate variables.</strong> Also, under the Services placeholder add your areas of expertise.</p>
<p class="alert">Also at the bottom, I have created a placeholder for the Contact form.  Create your own contact form here, for prospective clients to quickly contact you.</p>
<h3>4.  You are done!</h3>
<p>Were you expecting more steps?  No – you are done!  Now add the new page to the Navigation bar of your Thesis Theme (you can find this under the <em>Appearance =&gt; Design Options </em>from WP Dashboard).</p>
<p>Now, you can start enjoying your New Services and Portfolio page.  Here is a sample of how the Services and Portfolio section would appear in your blog.</p>
<p><a href="/blog/wp-content/uploads/2009/09/thesisservicespage3.jpg" rel="shadowbox[post-1203];player=img;"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="thesisservicespage3" src="/blog/wp-content/uploads/2009/09/thesisservicespage3_thumb.jpg" border="0" alt="thesisservicespage3" width="504" height="470" /></a></p>
<p class="alert"><span style="color: #ff0000;"><strong>Copyright</strong></span><br />
This code is free to use for both personal and commercial purposes.  But, it is provided for under <a href="http://creativecommons.org/licenses/by-sa/2.5/in/" target="_blank">Creative Commons Attribution License</a>.  Click on the link to know more about the usage terms.</p>
<p>You can download the ZIP file with the Code and Installation instructions here.   Copy the sample portfolio images file in the ZIP, to <em>Theme Folder/custom/images </em>folder.</p>
<p><a href="/blog/wp-content/plugins/download-monitor/download.php?id=Thesis+Services+and+Portfolio+Page"><img src="/blog/wp-content/themes/thesis_16/custom/images/download.gif" alt="" /></a></p>
<p class="note">Please share it using the links given below, so that more Thesis users can benefit from this tutorial.  Thanks in advance, for sharing!</p>
]]></content:encoded>
			<wfw:commentRss>https://thoughtsunlimited.net/blog/2009/09/services-and-portfolio-page-with-thesis-theme/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Control Home Page Post Excerpt Content in Thesis Theme</title>
		<link>https://thoughtsunlimited.net/blog/2009/08/control-home-page-post-excerpt-thesis-theme</link>
		<comments>https://thoughtsunlimited.net/blog/2009/08/control-home-page-post-excerpt-thesis-theme#comments</comments>
		<pubDate>Sun, 23 Aug 2009 02:14:34 +0000</pubDate>
		<dc:creator>Ashwin</dc:creator>
				<category><![CDATA[Blogging Tips]]></category>
		<category><![CDATA[Thesis Tips]]></category>

		<guid isPermaLink="false">https://thoughtsunlimited.net/blog/?p=1126</guid>
		<description><![CDATA[Thesis theme provides an option to display only post excerpts in the home page – but the problem I found was it shows very little content that might not entice the reader.  Also the post header images were gone from the home page.
Then I found a very neat option available with Thesis to control the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><em>Thesis theme</em> provides an option to display only post excerpts in the home page – but the problem I found was it shows very little content that might not entice the reader.  Also the post header images were gone from the home page.</p>
<p>Then I found a very neat option available with <em>Thesis </em>to control the home page post excerpt content.  You can choose to display whatever you want in the Home Page and let the rest go in to the Post Page.  I know many of you may be already using it, but it is just to the benefit for <em>newbies</em> like me.</p>
<h3>1.  Disable the Post Excerpt Display</h3>
<p><a href="/blog/wp-content/uploads/2009/08/thesispostexcerpt_1.jpg" rel="shadowbox[post-1126];player=img;"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; margin-left: 0px; border-left-width: 0px; margin-right: 0px" title="thesispostexcerpt_1" src="/blog/wp-content/uploads/2009/08/thesispostexcerpt_1_thumb.jpg" border="0" alt="thesispostexcerpt_1" width="254" height="283" align="right" /></a></p>
<p><em>Thesis </em>provides you an option to display only excerpts in the Home Page.  You can navigate to <em>Admin –&gt; Appearance –&gt; Thesis Options</em> and expand the <em>Posts </em>under the <em>Display Options </em>section<em>.</em></p>
<p>Since this option doesn’t allow you to control the content displayed and also sometimes the hides the Post Header Image, we disable it for our purpose.</p>
<p>You can also customize the <em>clickthrough text. </em>This decides the Text that will be displayed on the <em>Home Page, </em>for the user to click and get on to the post page.</p>
<p>To keep it simple, I have made it “Read More…”, but you can customize it based on the needs.<br />
<span id="more-1126"></span></p>
<h3>2.  Inject &lt;!—more—&gt; into your Posts</h3>
<p>Once you are done writing the post, decide on the contents you want to show in the Home Page.  Once decided, go to the HTML Editor in the Wordpress Post Edit and insert the following after the contents to be shown on the Home Page.</p>
<pre class="brush: xml;"> &lt;!--more--&gt;</pre>
<p>Make sure there are no spaces between these 3 entities – &lt;!&#8211;, more, &#8211;&gt;</p>
<p>Following is an example, where I have used it in one of my posts.</p>
<p><a href="/blog/wp-content/uploads/2009/08/thesispostexcerpt_2.jpg" rel="shadowbox[post-1126];player=img;"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="thesispostexcerpt_2" src="/blog/wp-content/uploads/2009/08/thesispostexcerpt_2_thumb.jpg" border="0" alt="thesispostexcerpt_2" width="454" height="317" /></a></p>
<p>That’s all about it! Now check out this particular post on your Home page and you will find only the content before <em>more tag</em> shows up.  To read the rest, the user has to click on the link and navigate to the Post page.</p>
<p>Now you have greater control on what to display on the <em>excerpts in the Home Page</em>.  Also you can write your posts more effectively, to make the users click on the link and read more!!</p>
<p><em>Let me know through Comments if you like this tip.  As always, share the post with the options below to help more people like you.</em></p>
]]></content:encoded>
			<wfw:commentRss>https://thoughtsunlimited.net/blog/2009/08/control-home-page-post-excerpt-thesis-theme/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Setup a Header Banner Image for your blog using Thesis Theme</title>
		<link>https://thoughtsunlimited.net/blog/2009/08/setup-header-banner-image-thesis-theme</link>
		<comments>https://thoughtsunlimited.net/blog/2009/08/setup-header-banner-image-thesis-theme#comments</comments>
		<pubDate>Wed, 05 Aug 2009 06:23:08 +0000</pubDate>
		<dc:creator>Ashwin</dc:creator>
				<category><![CDATA[Blogging Tips]]></category>
		<category><![CDATA[Thesis Tips]]></category>
		<category><![CDATA[blog design]]></category>
		<category><![CDATA[header banner image]]></category>
		<category><![CDATA[thesis tips]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">https://thoughtsunlimited.net/blog/?p=996</guid>
		<description><![CDATA[Header of a blog is the prominent advertising spot and a banner image here would just make things better.&#160; I will share a very simple tip to setup the header banner image using the powerful Thesis Theme.
I assume that you have setup the Thesis OpenHook plugin.&#160; If not, go grab it here and Thesis is [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><em>Header of a blog is the prominent advertising spot and a banner image here would just make things better.&#160; I will share a very simple tip to setup the header banner image using the powerful <a href="/blog/thesis-affiliate" target="_blank">Thesis Theme</a>.</em></p>
<p class="alert">I assume that you have setup the <em>Thesis OpenHook plugin</em>.&#160; If not, <a href="http://wordpress.org/extend/plugins/thesis-openhook/" target="_blank">go grab it here</a> and Thesis is just 50% useful without this!</p>
<h3>1.&#160; Create the CSS Style for the Banner Image</h3>
<p>Go to <em>Thesis Custom Styling</em> section of your <em>Thesis Administration Panel</em>.&#160; (you can find it just below the <em>Editor</em> link)</p>
<p>Let us now add the following entry into the entry box, which would find its place in the <em>custom.css</em> file.</p>
<p><pre class="brush: css;">/* Banner Ad in the Header */
.custom #leaderboard_ad {
  float: right;
  position: absolute;
  width: 468px;
  height: 60px;
  top: 25px;
  left: 675px;
}
</pre>
</p>
<p class="note"><strong>width</strong> – Value must match the width of the Banner Image (typical value is <em>468px</em>)     <br /><strong>height</strong> – Value must match the height of the Banner Image (typical value is <em>60px</em>)     <br /><strong>top</strong> – Gap between the top of your blog and the start of the Banner Image     <br /><strong>left</strong> – From where the Banner Image should start, on the left side of the page.&#160; Higher the value, the image would be shifted on the right</p>
<p>Adjust the <em>top and left </em>values based on the styling and layout of your blog.</p>
<h3>2.&#160; Add the HTML code for the Banner Image</h3>
<p>Typically the banner images are setup using the <em>Affiliate Code </em>that your affiliate has provided you or the Google Adsense script.</p>
<p class="note">Go to your <em>Thesis OpenHook section</em> in the administration page and add the Banner Image code in the <em><strong>After Title field</strong></em>.</p>
<p><a href="/blog/wp-content/uploads/2009/08/thesisheaderimage.jpg" rel="shadowbox[post-996];player=img;"><img title="thesisheaderimage" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="229" alt="thesisheaderimage" src="/blog/wp-content/uploads/2009/08/thesisheaderimage-thumb.jpg" width="354" border="0" /></a> </p>
<p>Following is an example Banner Image code, that I used for display.</p>
<pre class="brush: xml;">
&lt;div id=&quot;leaderboard_ad&quot;&gt;
&lt;a href=&quot;http://www.elegantthemes.com/affiliates/****&quot; target=&quot;_blank&quot;&gt;
&lt;img height=&quot;60&quot; src=&quot;http://www.elegantthemes.com/affiliates/banners/468x60.gif&quot; width=&quot;468&quot; border=&quot;0&quot; /&gt;
&lt;/a&gt;
&lt;/div&gt;
</pre>
<p>And that’s it!&#160; You are all set to display the Banner Image on the header section of your blog.&#160; You can also check out how this works on my blog.</p>
<p>One such Banner Image I really liked, is that of <a href="http://problogger.net" target="_blank">ProBlogger</a>.&#160; It is so nicely positioned and fits exactly with rest of the header.</p>
<p><a href="/blog/wp-content/uploads/2009/08/thesisheaderimage-2.jpg" rel="shadowbox[post-996];player=img;"><img title="thesisheaderimage_2" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="91" alt="thesisheaderimage_2" src="/blog/wp-content/uploads/2009/08/thesisheaderimage-2-thumb.jpg" width="604" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>https://thoughtsunlimited.net/blog/2009/08/setup-header-banner-image-thesis-theme/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Display Feedburner and Twitter Stats in your Thesis Theme</title>
		<link>https://thoughtsunlimited.net/blog/2009/08/display-feedburner-twitter-stats-in-thesis-theme</link>
		<comments>https://thoughtsunlimited.net/blog/2009/08/display-feedburner-twitter-stats-in-thesis-theme#comments</comments>
		<pubDate>Tue, 04 Aug 2009 13:26:03 +0000</pubDate>
		<dc:creator>Ashwin</dc:creator>
				<category><![CDATA[Blogging Tips]]></category>
		<category><![CDATA[Thesis Tips]]></category>
		<category><![CDATA[blog stats]]></category>
		<category><![CDATA[blogging tips]]></category>
		<category><![CDATA[thesis tips]]></category>

		<guid isPermaLink="false">https://thoughtsunlimited.net/blog/?p=983</guid>
		<description><![CDATA[Got bored of the traditional Feedburner Feedcount image?  Stuck with the Twitter Plugins that claim to display the number of followers in your blog? Forget them all.  I will show you how to get the Feedburner and Twitter subscriber stats programmatically (using PHP) in your Thesis powered blog and display them at your convenience.  This [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><em>Got bored of the traditional Feedburner Feedcount image?  Stuck with the Twitter Plugins that claim to display the number of followers in your blog? Forget them all.  I will show you how to get the Feedburner and Twitter subscriber stats programmatically (using PHP) in your Thesis powered blog and display them at your convenience.  This can also be used on a Wordpress blog running any theme, with ease.</em></p>
<h3>1.  Modify your custom_functions.php file</h3>
<p>Let us first create a couple of functions in the <em>custom_functions.php, </em>that would do us the job of fetching the numbers.</p>
<p class="note">You can find the <em>custom_functions.php</em> file under the following directory &#8211; <strong><em>Your Blog Theme Directory</em>/custom/custom_functions.php</strong></p>
<pre class="brush: php;">function get_feedburner_stats() {
  $fbrefreshtime = 43200;  //Refresh Feedburner twice in a day

  $fb = wp_cache_get('fbstats_key');

  if ($fb == false) {
    $yourfeeduri = 'ThoughtsUnlimited'; 
    $feed = 'https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri='.$yourfeeduri;
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_URL, $feed);
    $feed = curl_exec($ch); curl_close($ch);
    $xml = new SimpleXMLElement($feed);
    $fb = $xml-&gt;feed-&gt;entry['circulation']; 

    //Set the Value in Cache
    wp_cache_set('fbstats_key', strval($fb), '', $fbrefreshtime);
  }
  return $fb;
} 

function get_twitter_stats() {
  $twitterrefreshtime = 54000;  //Refresh Twitter Stats once every 15 minutes

  $tw = wp_cache_get('twstats_key');

  if ($tw == false) {
    $yourtwitter = 'thotsunlimited';
    $twurl='http://twitter.com/statuses/user_timeline.xml?id='.$yourtwitter.'&amp;count=1';
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_URL, $twurl);
    $data = curl_exec($ch);
    curl_close($ch);
    $xml = new SimpleXMLElement($data);
    $tw = $xml-&gt;status-&gt;user-&gt;followers_count; 

    //Set the Value in Cache
    wp_cache_set('twstats_key', strval($tw), '', $twitterrefreshtime);  //Will expire after the Refresh time you set
  }
  return $tw;
} 
</pre>
<p class="note">Make sure that you replace the <em>$yourfeeduri</em> and <em>$yourtwitter</em> values, with your own values</p>
<p class="alert"><strong><u>Updated on 08/05/2009:</u></strong> <br/><br />
Modified the Code to cache the numbers using WP_Cache, as excessive API calls might be unsuitable for blogs with many page views per hour.  Thanks to <a href="http://leumund.ch/" target="_blank">Christian</a> for pointing this out <a href="/blog/2009/08/display-feedburner-twitter-stats-in-thesis-theme#comment-373">here</a>.<br/><br />
Enable WP Caching, by adding <em>define(&#8216;WP_CACHE&#8217;, true);</em> to your wp-config.php file.  <a href="http://codex.wordpress.org/Function_Reference/WP_Cache#Role_of_WP_Cache" target="_blank">Check this out, for information on enabling the WP Cache</a>
</p>
<p class="alert">Make double sure that you enable the <em>Awareness API</em> for your <a href="http://feedburner.com" target="_blank">Feedburner</a> Account</p>
<p><a href="/blog/wp-content/uploads/2009/08/feedburnertwittercount-1.jpg" rel="shadowbox[post-983];player=img;"><img style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" title="feedburnertwittercount_1" src="/blog/wp-content/uploads/2009/08/feedburnertwittercount-1-thumb.jpg" border="0" alt="feedburnertwittercount_1" width="413" height="484" /></a></p>
<h3>2.  Call the function wherever you need and style the output</h3>
<p>So now you have the way to get the numbers.  Call them from anywhere you need and appropriately style the output.  I would recommend using the <a href="http://wordpress.org/extend/plugins/thesis-openhook/" target="_blank">Thesis OpenHook</a> plug-in to place the output of these functions.</p>
<p>Calling the function is pretty straightforward. One example could be:</p>
<pre class="brush: xml;"> &lt;strong&gt;Join the fleet of &lt;?php echo get_feedburner_stats(); ?&gt; Subscribers&lt;/strong&gt; </pre>
<p>You can look at the sidebar of my blog, to see one other example in action.</p>
<p>Hope you found this useful. Add any useful extensions to this tip, as comments to this post.</p>
]]></content:encoded>
			<wfw:commentRss>https://thoughtsunlimited.net/blog/2009/08/display-feedburner-twitter-stats-in-thesis-theme/feed</wfw:commentRss>
		<slash:comments>44</slash:comments>
		</item>
	</channel>
</rss>
