<?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>Justin S. Lewis</title>
	<atom:link href="http://justinslewis.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://justinslewis.com</link>
	<description>WordPress Theme Developer</description>
	<lastBuildDate>Thu, 22 Sep 2011 16:27:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Several ways to customize the &#8220;Read More&#8221; in WordPress</title>
		<link>http://justinslewis.com/2011/03/08/several-ways-to-customize-the-read-more-in-wordpress/</link>
		<comments>http://justinslewis.com/2011/03/08/several-ways-to-customize-the-read-more-in-wordpress/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 20:41:03 +0000</pubDate>
		<dc:creator>Justin Lewis</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.summerchilde.com/WordPress/?p=842</guid>
		<description><![CDATA[Force the &#8220;read more&#8221; to display on pages.
Suppose you have created a page template that calls up a couple categories and you want them to display the read more link inside of the standard [...] that WordPress will insert if you use the_excerpt in your WordPress loop.
Stop the read more link from &#8220;jumping&#8221; when going <a href="http://justinslewis.com/2011/03/08/several-ways-to-customize-the-read-more-in-wordpress/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>Force the &#8220;read more&#8221; to display on pages.<br />
Suppose you have created a page template that calls up a couple categories and you want them to display the read more link inside of the standard [...] that WordPress will insert if you use the_excerpt in your WordPress loop.<br />
Stop the read more link from &#8220;jumping&#8221; when going to the post by adding this to your theme&#8217;s functions.php:</p>
<pre class="brush: plain; title: ; notranslate">//remove read more jump
	function remove_more_jump_link($link) {
$offset = strpos($link, '#more-');
if ($offset) {
$end = strpos($link, '&quot;',$offset);
}
if ($end) {
$link = substr_replace($link, '', $offset, $end-$offset);
}
return $link;
}
add_filter('the_content_more_link', 'remove_more_jump_link');</pre>
]]></content:encoded>
			<wfw:commentRss>http://justinslewis.com/2011/03/08/several-ways-to-customize-the-read-more-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Social Media Buttons to your blog without a plugin</title>
		<link>http://justinslewis.com/2011/03/08/adding-social-media-buttons-to-your-blog-without-a-plugin/</link>
		<comments>http://justinslewis.com/2011/03/08/adding-social-media-buttons-to-your-blog-without-a-plugin/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 18:03:33 +0000</pubDate>
		<dc:creator>Justin Lewis</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[sharing]]></category>
		<category><![CDATA[social media]]></category>

		<guid isPermaLink="false">http://www.summerchilde.com/WordPress/?p=794</guid>
		<description><![CDATA[I don&#8217;t like using plugins for share buttons when I&#8217;m designing a WordPress theme. Instead, I add something like this to my functions.php:
Make sure your icons are located in your theme&#8217;s images folder. You can get some free icons here.
Then add this to your theme wherever you want the buttons to show up:
You can wrap <a href="http://justinslewis.com/2011/03/08/adding-social-media-buttons-to-your-blog-without-a-plugin/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t like using plugins for share buttons when I&#8217;m designing a WordPress theme. Instead, I add something like this to my functions.php:</p>
<pre class="brush: plain; title: ; notranslate">
   // social media
    	function custom_social_media_links() { ?&gt;

    &lt;a href=&quot;http://www.facebook.com/sharer.php?u=&lt;?php the_permalink(); ?&gt;&amp;t=&lt;?php the_title(); ?&gt;&quot; title=&quot;Click to share this article on Facebook&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;&lt;?php bloginfo('stylesheet_directory'); ?&gt;/images/icons/facebook.png&quot; alt=&quot;Share this article on Facebook&quot; /&gt;&lt;/a&gt; 

    &lt;a href=&quot;http://twitter.com/home?status=&lt;?php the_title(); ?&gt; – &lt;?php the_permalink(); ?&gt;&quot; title=&quot;Click to share this article on Twitter&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;&lt;?php bloginfo('stylesheet_directory'); ?&gt;/images/icons/twitter.png&quot; alt=&quot;Share this Article on Twitter&quot; /&gt;&lt;/a&gt;

    &lt;a href=&quot;http://reddit.com/submit?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&quot;title=&quot;Click to share this article on Reddit&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;&lt;img src=&quot;&lt;?php bloginfo('stylesheet_directory'); ?&gt;/images/icons/reddit.png&quot; alt=&quot;Add this Article to Reddit&quot;/&gt;&lt;/a&gt; 

    &lt;a href=&quot;http://www.stumbleupon.com/submit?url=&lt;?php the_permalink() ?&gt;&amp;title=&lt;?php the_title(); ?&gt;&quot; title=&quot;Click to share this article on StumbleUpon&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;&lt;img src=&quot;&lt;?php bloginfo('stylesheet_directory'); ?&gt;/images/icons/stumbleupon.png&quot; alt=&quot;Add this Article to Stumbleupon&quot; /&gt;&lt;/a&gt; 

    &lt;a href=&quot;mailto:?subject=&lt;?php the_title(); ?&gt;&amp;body=&lt;?php the_permalink() ?&gt;&quot; title=&quot;Send this
    article to a friend!&quot;&gt;&lt;img src=&quot;&lt;?php bloginfo('stylesheet_directory'); ?&gt;/images/icons/email.png&quot; alt=&quot;Email this Article to a friend&quot; /&gt;&lt;/a&gt;</pre>
<p>Make sure your icons are located in your theme&#8217;s images folder. You can get some free icons here.</p>
<p>Then add this to your theme wherever you want the buttons to show up:</p>
<pre class="brush: plain; title: ; notranslate">&lt;?php custom_social_media_links(); ?&gt;</pre>
<p>You can wrap that last bit of code in a div and style it with CSS.</p>
<p>For example, I have placed my code with this:</p>
<pre class="brush: plain; title: ; notranslate"> &lt;p class=&quot;share&quot;&gt;&lt;strong&gt;Share:&lt;/strong&gt;&lt;?php custom_social_media_links(); ?&gt; &lt;/p&gt;</pre>
<p>Styled it with this:</p>
<pre class="brush: plain; title: ; notranslate"> .share {width:100%;
    	padding: 0.4em 0 0.4em 0;
    	font-size: 1.2em;
    	line-height: 1.6em;
    	color: #888;
    	clear: both;
    	border-bottom-width: thin;
    	border-bottom-style: solid;
    	border-bottom-color: #000000;
    }</pre>
<p>So it looks like this:</p>
<p><a href="http://www.summerchilde.com/WPNotebook/files/2011/03/Picture-17.png" rel="lightbox[794]" title="Adding Social Media Buttons to your blog without a plugin"><img src="http://www.summerchilde.com/WPNotebook/files/2011/03/Picture-17.png" alt="" width="509" height="133" class="aligncenter size-full wp-image-806" /></a></p>
<p>You can add or remove any of the share links/icons you want by editing the function code above.</p>
]]></content:encoded>
			<wfw:commentRss>http://justinslewis.com/2011/03/08/adding-social-media-buttons-to-your-blog-without-a-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customizing your WordPress dashboard without plugins: Part 1</title>
		<link>http://justinslewis.com/2011/03/05/customizing-your-wordpress-dashboard-without-plugins-part-1/</link>
		<comments>http://justinslewis.com/2011/03/05/customizing-your-wordpress-dashboard-without-plugins-part-1/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 09:31:42 +0000</pubDate>
		<dc:creator>Justin Lewis</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[custom dashboard]]></category>
		<category><![CDATA[custom functions]]></category>

		<guid isPermaLink="false">http://www.summerchilde.com/WordPress/?p=693</guid>
		<description><![CDATA[Most WordPress users will probably never have a need to customize the WordPress dashboard other than with the built-in options WordPress already provides i.e. the Screen Options located at the top right of the dashboard and the Personal Options located on your Profile page. Those of us who use WordPress to build websites for clients <a href="http://justinslewis.com/2011/03/05/customizing-your-wordpress-dashboard-without-plugins-part-1/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>Most WordPress users will probably never have a need to customize the WordPress dashboard other than with the built-in options WordPress already provides i.e. the Screen Options located at the top right of the dashboard and the Personal Options located on your Profile page. Those of us who use WordPress to build websites for clients often do have a need to customize the dashboard for our clients. When I first started out designing for clients I used the excellent Custom Admin Branding plugin. Recently, I&#8217;ve been trying to eliminate the need for as many plugins as possible.  This post will deal with adding a custom logo to the header, custom header CSS, and a custom footer. The next post will demonstrate how to add or remove parts of the dashboard. All of these tricks require editing your theme&#8217;s functions.php. If your theme does not have this file you will need to create one.</p>
<p>First, create your custom logo. The image should be 32 by 32 pixels wide. Upload the image to your theme’s image folder. Add the following code to your theme’s functions.php.</p>
<pre class="brush: plain; title: ; notranslate">//Dashboard Logo
add_action('admin_head', 'custom_dashboard_logo');

function custom_dashboard_logo() {
echo '&lt;style&gt;#header-logo {
 background-image: url(
 '.get_bloginfo ('template_directory').'/images/dashboard-logo.gif)
 !important; } &lt;/style&gt;';
}</pre>
<p>In my example, I named the image dashboard-logo.gif. You can name it whatever you want but make sure it matches the CSS.</p>
<p>How to customize your WordPress dashboard header CSS:</p>
<p>Open up your theme’s function.php and add the following code:</p>
<pre class="brush: plain; title: ; notranslate">/* Change WordPress dashboard CSS */
function custom_colors() {
echo '&lt;style&gt;#wphead{background:#ffffcc;} #site-title{color:#000000;}&lt;/style&gt;';
}
add_action('admin_head', 'custom_colors');</pre>
<p>I used the #wphead and #site-title in my example but you can overwrite any of the header css with this function.<br />
How to customize the footer text:</p>
<p>Add this to your theme’s functions.php.</p>
<pre class="brush: plain; title: ; notranslate">//Dashboard Footer
function remove_footer_admin () {
    echo 'Powered by &lt;a href=&quot;http://www.wordpress.org&quot; target=&quot;_blank&quot;&gt;WordPress&lt;/a&gt; | Designed by &lt;a href=&quot;http://www.yoursite.com&quot; target=&quot;_blank&quot;&gt;Your Name&lt;/a&gt;&lt;/p&gt;';
    }

    add_filter('admin_footer_text', 'remove_footer_admin');</pre>
]]></content:encoded>
			<wfw:commentRss>http://justinslewis.com/2011/03/05/customizing-your-wordpress-dashboard-without-plugins-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing the new WordPress admin bar without a plugin</title>
		<link>http://justinslewis.com/2011/03/04/removing-the-new-wordpress-admin-bar-without-a-plugin/</link>
		<comments>http://justinslewis.com/2011/03/04/removing-the-new-wordpress-admin-bar-without-a-plugin/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 18:22:03 +0000</pubDate>
		<dc:creator>Justin Lewis</dc:creator>
				<category><![CDATA[Functions]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[admin bar]]></category>
		<category><![CDATA[custom functions]]></category>
		<category><![CDATA[WordPress 3.1]]></category>

		<guid isPermaLink="false">http://www.summerchilde.com/WordPress/?p=696</guid>
		<description><![CDATA[One of the awesome new features of WordPress 3.1 is the inclusion of an admin bar like the one seen on WordPress.com blogs. WordPress 3.1 allows the individual user to choose whether or not they want to see the admin bar by editing the settings in their user profile. Checking off the boxes there will <a href="http://justinslewis.com/2011/03/04/removing-the-new-wordpress-admin-bar-without-a-plugin/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>One of the awesome new features of <a href="http://wordpress.org/news/2011/02/threeone/" target="_blank">WordPress 3.1</a> is the inclusion of an admin bar like the one seen on WordPress.com blogs. WordPress 3.1 allows the individual user to choose whether or not they want to see the admin bar by editing the settings in their user profile. Checking off the boxes there will hide it.</p>
<p>As great as this new feature is, suppose you don’t want anyone to see an admin bar on your site. Maybe it conflicts with your site design or you just don’t like the functionality. Removing the admin bar is easy, just add the following to your theme functions.php:</p>
<pre class="brush: plain; title: ; notranslate">/ Disable the Admin Bar. /

add_filter( 'show_admin_bar', '__return_false' );

/ Remove the Admin Bar preference in user profile /

remove_action( 'personal_options', '_admin_bar_preferences' );</pre>
<p>If you want to hide it from everyone except the admins you can use this instead:</p>
<pre class="brush: plain; title: ; notranslate">/ Disable the Admin Bar for all but admins. /

if(!current_user_can('administrator')):

show_admin_bar(false);

endif;

/ Remove the Admin Bar preference in user profile /

remove_action( 'personal_options', '_admin_bar_preferences' );</pre>
<p>Note: This is for self-hosted blogs running WordPress 3.1 only.</p>
]]></content:encoded>
			<wfw:commentRss>http://justinslewis.com/2011/03/04/removing-the-new-wordpress-admin-bar-without-a-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One theme, two stylesheets: A WordPress Tutorial</title>
		<link>http://justinslewis.com/2009/11/15/one-theme-two-stylesheets-a-wordpress-tutorial/</link>
		<comments>http://justinslewis.com/2009/11/15/one-theme-two-stylesheets-a-wordpress-tutorial/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 03:11:35 +0000</pubDate>
		<dc:creator>Justin Lewis</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://kerimariondesign.com/?p=444</guid>
		<description><![CDATA[Suppose you want your WordPress installation to have one layout and CSS styling for some pages be completely different from the layout and styling for other pages. For example, you might like to have a members only section have a completely different style than the public side of your site. Some WordPress users suggest using <a href="http://justinslewis.com/2009/11/15/one-theme-two-stylesheets-a-wordpress-tutorial/" class="read-more">Continue Reading</a>]]></description>
			<content:encoded><![CDATA[<p>Suppose you want your WordPress installation to have one layout and CSS styling for some pages be completely different from the layout and styling for other pages. For example, you might like to have a members only section have a completely different style than the public side of your site. Some WordPress users suggest using multiple installations of WordPress. Another way to do it would be to have two different headers and two different css files used in conjunction with page templates. Another advantage to this technique is there is no need to edit any of the HTML or add any additional CSS classes or IDs.<span id="more-444"></span></p>
<p>To use this technique you will need a text editor, an ftp client, and ftp access to your server. I recommend using TextWrangler for code editing and Cyberduck for the ftp client if you do not have Adobe Dreamweaver. As always, before making any changes to your files, make sure you back-up your database and theme files.</p>
<p>For this tutorial I&#8217;ll use the public style/member style scenario. Ready?</p>
<h3>Here&#8217;s how to do it:</h3>
<p>For the public style of the site you will continue to use the regular header.php and style.css.</p>
<p>For the member style you will need to do as follows:</p>
<p>Open up header.php in a texteditor and rename it by saving as memberheader.php and then upload this file. This essentially makes a copy of the original header but with a new name.</p>
<p>Open up style.css and rename it by saving as memberstyle.css and then upload this file. This makes a copy of the original stylesheet but with a new name.</p>
<p>Attach that new stylesheet to your new header by finding</p>
<pre><code>
&lt;?php bloginfo('stylesheet_url'); ?&gt;
</code></pre>
<p>in the memberheader.php and replacing with with the file path to your new memberstyle.css stylesheet e.g.</p>
<pre><code>http://www.yourwebsite/wp-content/themes/yourtheme/newstyle.css</code></pre>
<p>Now create a page template. Open up index.php or page.php in your text editor and save/upload as committeepages.php.</p>
<p>Add this to the very top of the page template before all other code:</p>
<pre><code>
&lt;?php /* Template Name: Committee Pages*/?&gt;
</code></pre>
<p>Now find this:</p>
<pre><code>
&lt;?php get_header(); ?&gt;
</code></pre>
<p>And replace it with this:</p>
<pre><code>
&lt;?php include (TEMPLATEPATH . '/memberheader.php'); ?&gt;
</code></pre>
<p>Now the theme has not one but TWO stylesheets. For all member pages just go to edit pages in the admin of your site, select the page to edit, then select your new template and that new stylesheet will apply to it. Leaving the page set to the Default will keep the original header and style.css.</p>
<p>To make the member pages look different from the public pages just edit either one of the stylesheets and change the look/layout there.</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="summerchilde@yahoo.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value="Buy Me a Beer for One theme, two stylesheets: A WordPress Tutorial" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="" /><input type="image" src="http://justinslewis.com/wp-content/plugins/buy-me-beer/icon_beer.gif" align="left" alt="" title="" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=summerchilde@yahoo.com&amp;currency_code=USD&amp;amount=&amp;return=&amp;item_name=Buy+Me+a+Beer+for+One+theme,+two+stylesheets:+A+Wordpress+Tutorial" target="paypal"></a></p>]]></content:encoded>
			<wfw:commentRss>http://justinslewis.com/2009/11/15/one-theme-two-stylesheets-a-wordpress-tutorial/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

