<?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>Build Me A Fab Website &#187; Wordpress Tip</title>
	<atom:link href="http://www.buildmeafabwebsite.co.uk/tag/wordpress-tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.buildmeafabwebsite.co.uk</link>
	<description>Friendly, Low Cost Web Design &#38; Hosting</description>
	<lastBuildDate>Mon, 16 Jan 2012 20:03:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Why All-In-One SEO Deactivates</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/why-all-in-one-seo%c2%a0deactivates/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/why-all-in-one-seo%c2%a0deactivates/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 15:20:07 +0000</pubDate>
		<dc:creator>RSSFeed</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Wordpress Hacks]]></category>
		<category><![CDATA[Wordpress Tip]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=2656</guid>
		<description><![CDATA[<p>In the past I’ve been pretty pissy about the <a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/">All-In-One SEO plugin</a> from <a href="http://michaeltorbert.com/">Michael Torbert</a> automatically deactivating itself after updates. My reasoning:</p>
<ul>
<li>If you update and forget to re-activate (somewhat hard to do since it reminds the</li></ul><p>&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/why-all-in-one-seo%c2%a0deactivates/">Why All-In-One SEO Deactivates</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>In the past I’ve been pretty pissy about the <a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/">All-In-One SEO plugin</a> from <a href="http://michaeltorbert.com/">Michael Torbert</a> automatically deactivating itself after updates. My reasoning:</p>
<ul>
<li>If you update and forget to re-activate (somewhat hard to do since it reminds the shit out of you on every page of the admin), it could cause problems.</li>
<li>We are forced to see Michael’s large promotional/donation blocks up in our faces above where we can reactivate. I’m all for plugin authors making as much money as they can, but this seemed to me a bit too far.</li>
<li>I really like the plugin and use it on all my sites and wish it was closer to my version of perfect.</li>
</ul>
<p>But Michael recently stopped by to explain his side, which is interesting, so I thought I’d update the record, as it were.</p>
<p><span> </span></p>
<p><a href="http://digwp.com/2009/10/rude-things-plugins-can-do/#comment-3005">Michael Torbert</a>:</p>
<blockquote><p>… a site complained that a new feature damaged their site’s search engine results placement. They finally admitted that they were incorrect in this assumption, and that the cause was something else unrelated to the plugin, but their original assessment was that a new feature hurt them.</p>
<p>From then on, any update which introduces new options (not just behind the scenes changes) require the user to reactivate the plugin from the settings page, to make sure that they can review the options.</p></blockquote>
<p>I can understand this line of thinking. Forcing the user to visit the options page may be the closest thing to getting them to think about the plugins options as is possible.</p>
<p>Michael is also aware of the potentially negative experience:</p>
<blockquote><p>I’m aware of how it looks, and I understand that it’s annoying for some users. I spent a lot of time thinking about it and consulted with a number of other people in the community when contemplating the decision about what to do.<br />
Unfortunately, in this case there was no way to make everyone happy, so I sided with ensuring that nobody could ever say (even if incorrectly as was the case) that new features introduced caused harmful effects to their sites SEO.</p></blockquote>
<h3>Perhaps a better way?</h3>
<p>Let’s say that the moment you decided to upgrade the plugin to a version with new features, the google bot decided to stroll by your site. The plugin is momentarily deactivated, so the google bot sees lots of differences. The canonical tag is gone, the meta tags are gone, the page title is different. Surely that isn’t good for SEO.</p>
<p>Perhaps this plugin could save the currently running version number in the wp_options table. Then when an upgrade is performed, it could update this but also save the <strong>previous</strong> version number. Then instead of deactivating itself, it could display a message (rather boldly, like the current message) which explains what is new with the plugin and things you should watch for.</p>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/717ce_hPHJ3HISlZU" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://digwp.com" target="_blank">Digging Into WordPress</a><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-show-an-urgent-message-in-the-wordpress-admin-area/" rel="bookmark" title="July 20, 2011">How to show an urgent message in the WordPress admin area</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/what-to-do-when-auto-update%c2%a0fails-2/" rel="bookmark" title="April 19, 2011">What to do when Auto-Update Fails</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/free-wordpress-themes/postage-sydney/" rel="bookmark" title="July 22, 2010">Postage Sydney</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-plugin-protect-your-blog-from-malicious-url-requests/" rel="bookmark" title="March 17, 2010">WordPress plugin: Protect your blog from malicious URL Requests</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-plugins/15-anti-spam-plugins-for%c2%a0wordpress/" rel="bookmark" title="June 15, 2011">15 Anti-Spam Plugins for WordPress</a></li>
</ul>
<p><!-- Similar Posts took 33.206 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/why-all-in-one-seo%c2%a0deactivates/">Why All-In-One SEO Deactivates</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/why-all-in-one-seo%c2%a0deactivates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display most recent comments with Gravatar</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/display-most-recent-comments-with-gravatar/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/display-most-recent-comments-with-gravatar/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 12:17:54 +0000</pubDate>
		<dc:creator>RSSFeed</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[Wordpress Tip]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=2749</guid>
		<description><![CDATA[<p>In order to display the 5 most recent comments with their gravatars, paste this code anywhere on your theme files. To get more or less than 5 comments, change the number <em>5</em> on line 2.</p>
<pre>&#60;?php
$query = "SELECT *</pre><p>&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/display-most-recent-comments-with-gravatar/">Display most recent comments with Gravatar</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>In order to display the 5 most recent comments with their gravatars, paste this code anywhere on your theme files. To get more or less than 5 comments, change the number <em>5</em> on line 2.</p>
<pre>&lt;?php
$query = "SELECT * from $wpdb-&gt;
comments WHERE comment_approved= '1'
ORDER BY comment_date DESC LIMIT 0 ,5";
$comments = $wpdb-&gt;get_results($query);

if ($comments) {
    echo '&lt;ul&gt;';
    foreach ($comments as $comment) {
        $url = '&lt;a href="'. get_permalink($comment-&gt;
        comment_post_ID).'#comment-'.$comment-&gt;
        comment_ID .'" title="'.$comment-&gt;
        comment_author .' | '.get_the_title
        ($comment-&gt;comment_post_ID)
        .'"&gt;';
        echo '&lt;li&gt;';
        echo '&lt;div class="img"&gt;';
        echo $url;
        echo get_avatar( $comment-&gt;
        comment_author_email, $img_w);
        echo '&lt;/a&gt;&lt;/div&gt;';

        echo '&lt;div class="txt"&gt;Par: ';
        echo $url;
        echo $comment-&gt;comment_author;
        echo '&lt;/a&gt;&lt;/div&gt;';
        echo '&lt;/li&gt;';
    }
    echo '&lt;/ul&gt;';
}
?&gt;</pre>
<p><em> </em></p>
<p><em><a href="http://www.wprecipes.com/display-most-recent-comments-with-gravatar">Display most recent comments with Gravatar</a></em></p>
<p><em><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/519a7_WXvWbyRoadk" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></em><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-hack-get-popular-posts-by-comments-count/" rel="bookmark" title="June 11, 2010">WordPress hack: Get popular posts by comments count</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-hack-remove-admin-name-in-comments-class/" rel="bookmark" title="June 1, 2010">WordPress hack: Remove admin name in comments class</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-more-wordpress-hacks-for-easy-life/" rel="bookmark" title="December 25, 2009">10 More WordPress Hacks for Easy Life</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-how-to-style-comments-of-every-roles/" rel="bookmark" title="January 28, 2010">WordPress How to : Style comments of every roles</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-hack-insert-comments-programatically/" rel="bookmark" title="May 29, 2010">WordPress hack: Insert comments programatically</a></li>
</ul>
<p><!-- Similar Posts took 26.038 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/display-most-recent-comments-with-gravatar/">Display most recent comments with Gravatar</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/display-most-recent-comments-with-gravatar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Define Your Own Dashboard Logo</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-define-your-own-dashboard-logo/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-define-your-own-dashboard-logo/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 12:42:27 +0000</pubDate>
		<dc:creator>RSSFeed</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[Wordpress Hacks]]></category>
		<category><![CDATA[Wordpress Tip]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=2102</guid>
		<description><![CDATA[<p>This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></p>
<p>The first thing to do is to get your logo ready. Size might be 30*31px and the logo must be uploaded the images directory of your theme&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-define-your-own-dashboard-logo/">How to Define Your Own Dashboard Logo</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></p>
<p>The first thing to do is to get your logo ready. Size might be 30*31px and the logo must be uploaded the images directory of your theme dir.<br />
For exemple, if you&#8217;re using the rockstar theme from <a href="http://www.wprecipes.com/freshnews.html" target="blank">WooThemes</a>, your logo must be uploaded to <em>wp-content/themes/rockstar/images</em>.</p>
<p>Once done, open you <em>functions.php</em> file and paste the following code in it:</p>
<pre>add_action('admin_head', 'my_custom_logo');

function my_custom_logo() {
   echo '
      &lt;style type="text/css"&gt;
         #header-logo {
          background-image:
          url('.get_bloginfo('template_directory').'
          /images/custom-logo.gif)
          !important; }
      &lt;/style&gt;
   ';
}</pre>
<p><strong><em>Thanks to <a href="http://www.smashingmagazine.com/2009/12/14/advanced-power-tips-for-wordpress-template-developers-reloaded/">Smashing Magazine</a> for this great hack!</em></strong></p>
<p><em> </em></p>
<p><em><a href="http://www.wprecipes.com/how-toi-define-your-own-dashboard-logo">How to define your own dashboard logo</a></em></p>
<p><em><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/461ef_-2zqaKmsZEg" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></em><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-detect-mobile-visitors-on-your-wordpress-blog/" rel="bookmark" title="December 28, 2009">How to detect mobile visitors on your WordPress blog</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/specify-unique-css-file-per%c2%a0post/" rel="bookmark" title="May 31, 2010">Specify Unique CSS File Per Post</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/custom-page-titles-from%c2%a0scratch/" rel="bookmark" title="June 16, 2010">Custom Page Titles from Scratch</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-send-article-to-a-friend-by-email/" rel="bookmark" title="December 24, 2009">WordPress tip: Send article to a friend by email</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/free-wordpress-themes/postage-sydney/" rel="bookmark" title="July 22, 2010">Postage Sydney</a></li>
</ul>
<p><!-- Similar Posts took 31.750 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-define-your-own-dashboard-logo/">How to Define Your Own Dashboard Logo</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-define-your-own-dashboard-logo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to detect mobile visitors on your WordPress blog</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-detect-mobile-visitors-on-your-wordpress-blog/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-detect-mobile-visitors-on-your-wordpress-blog/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 16:23:14 +0000</pubDate>
		<dc:creator>RSSFeed</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[Wordpress Tip]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=1675</guid>
		<description><![CDATA[<p>This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></p>
<p>To achieve this recipe, you first have to get the code from <a href="http://detectmobilebrowsers.mobi/">detectmobilebrowsers.mobi</a> and upload it to your theme directory.</p>
<p>Once done, simply open your <strong>header.php</strong>&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-detect-mobile-visitors-on-your-wordpress-blog/">How to detect mobile visitors on your WordPress blog</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></p>
<p>To achieve this recipe, you first have to get the code from <a href="http://detectmobilebrowsers.mobi/">detectmobilebrowsers.mobi</a> and upload it to your theme directory.</p>
<p>Once done, simply open your <strong>header.php</strong> file and place the following at the top of the file. Don&#8217;t forget to edit line 5 according to the page where you&#8217;d like to redirect mobile users.</p>
<pre>include('mobile_device_detect.php');
$mobile = mobile_device_detect();

if ($mobile==true) {
  header( 'Location: http://your-website.com/?theme=Your_Mobile_Theme' ) ;
}</pre>
<p><strong><em>Thanks to <a href="http://digwp.com/2009/12/redirect-mobile-users-to-mobile-theme/?utm_source=twitterfeed&amp;utm_medium=twitter">Jeff Starr</a> for this very cool idea!</em></strong></p>
<p><em><a href="http://www.wprecipes.com/how-to-detect-mobile-visitors-on-your-wordpress-blog">How to detect mobile visitors on your WordPress blog</a></em></p>
<p><em><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/7894e_4AYtfiZ-3A8" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></em><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/redirect-mobile-users-to-a-mobile-wordpress%c2%a0theme/" rel="bookmark" title="January 1, 2010">Redirect Mobile Users to a Mobile WordPress Theme</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-plugin-protect-your-blog-from-malicious-url-requests/" rel="bookmark" title="March 17, 2010">WordPress plugin: Protect your blog from malicious URL Requests</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-fetch-and-display-rss-feeds/" rel="bookmark" title="October 27, 2010">WordPress tip : Fetch and display RSS feeds</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/insert-google-analytics-without-editing-your-theme/" rel="bookmark" title="December 27, 2009">Insert Google Analytics without editing your theme</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-better-page-navigation/" rel="bookmark" title="December 26, 2009">WordPress tip : Better page navigation</a></li>
</ul>
<p><!-- Similar Posts took 37.425 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-detect-mobile-visitors-on-your-wordpress-blog/">How to detect mobile visitors on your WordPress blog</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-detect-mobile-visitors-on-your-wordpress-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Insert Google Analytics without editing your theme</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/insert-google-analytics-without-editing-your-theme/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/insert-google-analytics-without-editing-your-theme/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 10:44:07 +0000</pubDate>
		<dc:creator>RSSFeed</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[Wordpress Tip]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=1983</guid>
		<description><![CDATA[<p>This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" mce_href="http://www.wprecipes.com" target="_blank">WP Recipes</a><br mce_bogus="1"/></p>
<p>Just insert the following code into your <i>functions.php</i> file, and you&#8217;re done. Don&#8217;t forget to paste your Google Analytics code on line 5.</p>
<pre>&#60;?phpadd_action('wp_footer', 'ga');

function</pre><p>&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/insert-google-analytics-without-editing-your-theme/">Insert Google Analytics without editing your theme</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" mce_href="http://www.wprecipes.com" target="_blank">WP Recipes</a><br mce_bogus="1"></p>
<p>Just insert the following code into your <i>functions.php</i> file, and you&#8217;re done. Don&#8217;t forget to paste your Google Analytics code on line 5.</p>
<pre>&lt;?phpadd_action('wp_footer', 'ga');

function ga() { ?&gt;    // Paste your Google Analytics code here&lt;?php } ?&gt;</pre>
<p><i>Have you checked out the new <a href="http://www.catswhocode.com/blog/headway.html" mce_href="http://www.catswhocode.com/blog/headway.html">Headway theme</a> for WordPress? It is pretty cool. You can read a review <a href="http://www.catswhoblog.com/headway-wordpress-theme-review" mce_href="http://www.catswhoblog.com/headway-wordpress-theme-review">here</a>.</i></p>
<p><i></i></p>
<p><i><a href="http://www.wprecipes.com/insert-google-analytics-without-editing-your-theme" mce_href="http://www.wprecipes.com/insert-google-analytics-without-editing-your-theme">Insert Google Analytics without editing your theme</a></i></p>
<p><i><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/16b7f_It2Vp7sbD0A" mce_src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/16b7f_It2Vp7sbD0A" width="1" height="1"><br />
This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" mce_href="http://www.wprecipes.com" target="_blank">WP Recipes</a></i></p>
<p><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-fetch-and-display-rss-feeds/" rel="bookmark" title="October 27, 2010">WordPress tip : Fetch and display RSS feeds</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-detect-mobile-visitors-on-your-wordpress-blog/" rel="bookmark" title="December 28, 2009">How to detect mobile visitors on your WordPress blog</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-change-excerpt-length-depending-of-the-category/" rel="bookmark" title="December 10, 2009">WordPress tip : change excerpt length depending of the category</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/small-business-articles/how-do-i-add-google-analytics-to-my-facebook-fan-page/" rel="bookmark" title="August 27, 2010">How do I add Google Analytics to my Facebook Fan Page?</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-hack-how-to-display-ads-on-old-posts-only/" rel="bookmark" title="December 24, 2009">WordPress hack : How to display ads on old posts only</a></li>
</ul>
<p><!-- Similar Posts took 33.937 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/insert-google-analytics-without-editing-your-theme/">Insert Google Analytics without editing your theme</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/insert-google-analytics-without-editing-your-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress tip : Better page navigation</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-better-page-navigation/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-better-page-navigation/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 11:22:42 +0000</pubDate>
		<dc:creator>RSSFeed</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[Wordpress Tip]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=2048</guid>
		<description><![CDATA[<p>This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></p>
<p>This recipe is extremely easy to implement : open you <em>index.php</em> file and replace your current navigation by the following:</p>
<pre>&#60;?php if ($paged &#62; 1) { ?&#62;</pre><p>&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-better-page-navigation/">WordPress tip : Better page navigation</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></p>
<p>This recipe is extremely easy to implement : open you <em>index.php</em> file and replace your current navigation by the following:</p>
<pre>&lt;?php if ($paged &gt; 1) { ?&gt;

	&lt;div class="navigation"&gt;
	  &lt;div class="alignleft"&gt;
           &lt;?php next_posts_link
           ('&amp;laquo; Older Entries') ?&gt;
           &lt;/div&gt;
           &lt;div class="alignright"&gt;
           &lt;?php previous_posts_link
           ('Newer Entries &amp;raquo;') ?&gt;
           &lt;/div&gt;
	&lt;/div&gt;

&lt;?php } else { ?&gt;

	&lt;div class="navigation"&gt;
	  &lt;div class="alignleft"&gt;
          &lt;?php next_posts_link('&amp;laquo; Older Entries') ?&gt;
          &lt;/div&gt;&lt;div class="alignright"&gt;
          &lt;a href=
          "http://perishablepress.com/press/archives/"&gt;
          Site Archives &amp;raquo;&lt;/a&gt;
          &lt;/div&gt;
	&lt;/div&gt;

&lt;?php } ?&gt;</pre>
<p><strong><em>Thanks to <a href="http://digwp.com/2009/12/optimizing-wordpress-post-navigation">Jeff Starr and Chris Coyier</a> for this useful idea! Have you read <a href="http://www.catswhocode.com/blog/diw.html">their book</a>? If no, I definitely recommend it (read review <a href="http://www.catswhoblog.com/digging-into-wordpress-book-review">here</a>)</em></strong></p>
<p><em><a href="http://www.wprecipes.com/wordpress-tip-better-page-navigation">WordPress tip : Better page navigation</a></em></p>
<p><em><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/b91df_wN9OQXIx0nQ" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></em><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/optimizing-wordpress-post%c2%a0navigation/" rel="bookmark" title="September 22, 2010">Optimizing WordPress Post Navigation</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-fetch-and-display-rss-feeds/" rel="bookmark" title="October 27, 2010">WordPress tip : Fetch and display RSS feeds</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-insert-custom-content-after-each-post/" rel="bookmark" title="August 3, 2010">WordPress tip: Insert custom content after each post</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-detect-mobile-visitors-on-your-wordpress-blog/" rel="bookmark" title="December 28, 2009">How to detect mobile visitors on your WordPress blog</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/nextprevious-post-navigation-outside-of-the-wordpress%c2%a0loop/" rel="bookmark" title="July 26, 2010">Next/Previous Post Navigation Outside of the WordPress Loop</a></li>
</ul>
<p><!-- Similar Posts took 27.758 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-better-page-navigation/">WordPress tip : Better page navigation</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-better-page-navigation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Develop WordPress Themes Behind the Scenes</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-develop-wordpress-themes-behind-the%c2%a0scenes/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-develop-wordpress-themes-behind-the%c2%a0scenes/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 14:47:27 +0000</pubDate>
		<dc:creator>RSSFeed</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[Wordpress Tip]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=2345</guid>
		<description><![CDATA[<p>A reader recently asked about how to develop a theme on a live site such that:</p>
<ul>
<li>All visitors will see the current theme</li>
<li>Only the designer will see the new theme</li>
<li>All site plugins will work with the new</li></ul><p>&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-develop-wordpress-themes-behind-the%c2%a0scenes/">How to Develop WordPress Themes Behind the Scenes</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>A reader recently asked about how to develop a theme on a live site such that:</p>
<ul>
<li>All visitors will see the current theme</li>
<li>Only the designer will see the new theme</li>
<li>All site plugins will work with the new theme</li>
<li>Smooth transition between old and new theme at launch</li>
</ul>
<p>These are the main concerns, but there are a few other details that need addressed to ensure smooth theme development on a live site. Let’s take a look at how to achieve these goals and effectively develop themes behind the scenes..</p>
<p><span> </span></p>
<h3>You need a plugin</h3>
<p>The easiest way to develop a new theme behind the scenes is to install a good theme-switcher plugin. There are plenty available:</p>
<ul>
<li><a title="Theme Switcher" href="http://wordpress.org/extend/plugins/theme-switcher/">Theme Switcher</a></li>
<li><a title="Theme Switcher Reloaded" href="http://wordpress.org/extend/plugins/theme-switcher-reloaded/">Theme Switcher Reloaded</a></li>
<li><a title="Alternative Theme Switcher" href="http://wordpress.org/extend/plugins/alternative-theme-switcher/">Alternative Theme Switcher</a></li>
<li><a title="Theme Preview" href="http://wordpress.org/extend/plugins/theme-preview/">Theme Preview</a></li>
<li><a title="Theme Test Drive" href="http://wordpress.org/extend/plugins/theme-test-drive/">Theme Test Drive</a></li>
<li><a title="Theme Switch and Preview" href="http://wordpress.org/extend/plugins/nkthemeswitch/">NK Theme Switch</a></li>
</ul>
<p>Any of these plugins will work fine for the purposes of working with multiple themes on your site. If you also plan on enabling your visitors to switch themes, I would have to recommend the newer NK Theme Switch plugin. NK Theme Switch does everything the other plugins can do, but with the added bonus that it redirects users back to the page from which they came after switching themes. The other two plugins switch themes, but the user is always redirected back to the home page after the theme switch.</p>
<p>Note that, for the different theme-switcher plugins, the <acronym title="Uniform Resource Locator">URL</acronym>s used when switching themes include different query-string parameters that are similar but not interchangeable. Once you implement a theme switcher, replacing it with a different plugin is going to be difficult.</p>
<p>In any case, once you have your theme-switcher plugin of choice activated, you’re going to need to know how to actually switch the themes..</p>
<h3>Switching themes</h3>
<p>Different plugins involve different methods of switching to a different theme. If you are using NK Theme Switch, you can select and activate your alternate (development) theme from within the WordPress Admin. This is the <em>easiest</em> way to do it. If you are using one of the other theme-switching plugins, activating the alternate theme for your browser is as easy as entering a specific <acronym title="Uniform Resource Locator">URL</acronym> into the address bar. These theme-switching <acronym title="Uniform Resource Locator">URL</acronym>s look similar for either of the first two plugins:</p>
<pre><code>http://domain.tld/index.php?wptheme=ThemeName</code></pre>
<p>For example, here is the <acronym title="Uniform Resource Locator">URL</acronym> used to switch to one of my favorite themes at <a title="Perishable Press: Digital Design and Dialogue" href="http://perishablepress.com/">Perishable Press</a>:</p>
<pre><code>http://perishablepress.com/press/index.php?wptheme=Perishable</code></pre>
<p>The syntax here is straightforward — the only thing that needs to be changed is the theme name, which in this case is “Perishable”. When developing a new theme for Perishable Press, I simply jot down the theme-switch <acronym title="Uniform Resource Locator">URL</acronym> for both the new theme and the active default theme. This makes jumping back and forth very easy. Of course, the general format of these <acronym title="Uniform Resource Locator">URL</acronym>s will vary depending on the particular theme-switching plugin that you use.</p>
<p>Another option for switching between current and alternate themes is to actually include the theme-switching links and/or dropdown menu right there on the theme pages themselves. For example, including the theme-switch dropdown menu in the footer of all your themes is a great way to speed up and simplify the development process. But be advised, unless you explicitly <em>exclude</em> your new theme from the theme-switch menu, it will be available for all of your visitors to see and activate. The other method of just using the <acronym title="Uniform Resource Locator">URL</acronym> directly is a good way to ensure privacy.</p>
<p>Now that you are setup and easily switching between themes, there are a few other points to consider..</p>
<h3>Your new theme is just another theme</h3>
<p>This may sound strange, but there is nothing special about your new theme — it’s treated by WordPress as any other theme in your “<code>themes</code>” directory. All of the requirements of the default theme apply:</p>
<ul>
<li>Your new theme needs a properly configured <code>style.css</code> file</li>
<li>Your new theme needs a working <code>index.php</code> file</li>
</ul>
<p>Assuming your new theme meets these basic requirements, WordPress will recognize your theme as such and display it when activated (either through the Admin or via theme-switch plugin). Incidentally, the name of your theme is specified via the <code>style.css</code> file. The “<code>Theme Name</code>” that is listed here will be the same one used in your theme-switching <acronym title="Uniform Resource Locator">URL</acronym>s.</p>
<p>Once you get the basics of your new theme established, use your theme-switching plugin to activate it locally in your browser. Form there, you can rock the design however you want, exactly as you would do when starting from a fresh installation of WordPress. While you are working on your new theme, your visitors will still be seeing your default active theme, which is whatever you specify in the WordPress Admin. This is why the theme-switch development method works so well.</p>
<h3>Pages, plugins, and custom functions</h3>
<p>Here are a few more little things that will help you when developing your themes behind the scenes..</p>
<dl>
<dt>Plugins affect <em>all</em> themes</dt>
<dd>Even when your theme is not set as the current default, it will still be affected by all of the plugins installed on your site. This is one of the benefits of using plugins over custom functions..</dd>
<dt>Custom functions only affect the theme being used</dt>
<dd>In contrast to plugins, custom functions (i.e., functions placed in your theme’s <code>functions.php</code> file) only affect the current theme being viewed. If you seem to missing some functionality in your “behind-the-scenes” theme, make sure that you have properly transferred any required custom functions.</dd>
<dt>Page templates will confuse you</dt>
<dd>This happens to everyone: you are working behind the scenes on a new theme and you can’t seem to get a custom page template to appear in the WordPress Admin. This is because the page editor only shows the templates available to the current default active theme (i.e., the one that <em>everyone</em> sees). To work around this, you can either upload a copy of the custom page template to the active theme, or temporarily switch the default active theme to your behind-the-scenes theme. Personally, I use the former method and just delete the page template if it’s not needed in the default theme.</dd>
</dl>
<p>And last but not least..</p>
<h3>Prepare for launch!</h3>
<p>Once you have your new theme pimped out and ready to go, simply change your default active theme in the WordPress Admin to launch it for the world see. That’s all there is to it! :)</p>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/72d25_5XmIb91Jaxk" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://digwp.com" target="_blank">Digging Into WordPress</a><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/redirect-mobile-users-to-a-mobile-wordpress%c2%a0theme/" rel="bookmark" title="January 1, 2010">Redirect Mobile Users to a Mobile WordPress Theme</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/specify-unique-css-file-per%c2%a0post/" rel="bookmark" title="May 31, 2010">Specify Unique CSS File Per Post</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/admin-bar%c2%a0tricks/" rel="bookmark" title="July 21, 2011">Admin Bar Tricks</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/nextprevious-post-navigation-outside-of-the-wordpress%c2%a0loop/" rel="bookmark" title="July 26, 2010">Next/Previous Post Navigation Outside of the WordPress Loop</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/free-wordpress-themes/wordpress-theme-%e2%80%93-businezz/" rel="bookmark" title="May 29, 2010">WordPress Theme – Businezz!</a></li>
</ul>
<p><!-- Similar Posts took 29.940 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-develop-wordpress-themes-behind-the%c2%a0scenes/">How to Develop WordPress Themes Behind the Scenes</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-develop-wordpress-themes-behind-the%c2%a0scenes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress tip: Send article to a friend by email</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-send-article-to-a-friend-by-email/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-send-article-to-a-friend-by-email/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 18:20:46 +0000</pubDate>
		<dc:creator>RSSFeed</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[Wordpress Tip]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=1666</guid>
		<description><![CDATA[<p>This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></p>
<p>To apply this recipe to your blog, simply paste the following function into your <em>functions.php</em> file, and that&#8217;s all. Hard to do something simpler!</p>
<pre>function direct_email($text="Send by</pre><p>&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-send-article-to-a-friend-by-email/">WordPress tip: Send article to a friend by email</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></p>
<p>To apply this recipe to your blog, simply paste the following function into your <em>functions.php</em> file, and that&#8217;s all. Hard to do something simpler!</p>
<pre>function direct_email($text="Send by email"){
        global $post;
        $title = htmlspecialchars($post-&gt;post_title);
        $subject = 'Sur '.htmlspecialchars(get_bloginfo('name')).'
        : '.$title;
        $body = 'I recommend this page : '.$title.'.
        You can read it on : '.get_permalink($post-&gt;ID);
        $link = '&lt;a rel="nofollow" href="mailto:?subject='
        .rawurlencode($subject).
        '&amp;amp;body='.rawurlencode($body).'" title="'
        .$text.' : '.$title.'"&gt;'
        .$text.'&lt;/a&gt;';
        return $link;
}</pre>
<p>Then add this to where ever you want on your template, for example in single.php:</p>
<pre><code>&lt;?php echo direct_email('Send this article to a friend') ?&gt;</code></pre>
<p><strong><em>Thanks to : <a href="http://www.webinventif.fr/wordpress-lien-envoyer-page-mail/" target="blank">WebInventif.fr</a> for the awesome trick!</em></strong></p>
<p><em><a href="http://www.wprecipes.com/wordpress-tip-send-article-to-a-friend-by-email">WordPress tip: Send article to a friend by email</a></em></p>
<p><em><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/20bfb_l5mF1UqMUi8" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://www.wprecipes.com" target="_blank">WP Recipes</a></em><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-remove-nofollow-attributes-from-post%c2%a0content/" rel="bookmark" title="February 26, 2010">WordPress Tip: Remove nofollow Attributes from Post Content</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-more-wordpress-hacks-for-easy-life/" rel="bookmark" title="December 25, 2009">10 More WordPress Hacks for Easy Life</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-fetch-and-display-rss-feeds/" rel="bookmark" title="October 27, 2010">WordPress tip : Fetch and display RSS feeds</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/22-latest-exceptional-wordpress-hacks-2/" rel="bookmark" title="December 10, 2009">22 Latest Exceptional WordPress Hacks</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-modify-lists-like-%e2%80%98categories%e2%80%99-and-%e2%80%98blogroll%e2%80%99-in-wordpress/" rel="bookmark" title="December 10, 2009">How to modify lists like ‘Categories’ and ‘Blogroll’ in WordPress?</a></li>
</ul>
<p><!-- Similar Posts took 33.078 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-send-article-to-a-friend-by-email/">WordPress tip: Send article to a friend by email</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/wordpress-tip-send-article-to-a-friend-by-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 CSS Snippets to Save Precious Time</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-css-snippets-to-save-precious-time/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-css-snippets-to-save-precious-time/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 15:06:17 +0000</pubDate>
		<dc:creator>RSSFeed</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[Wordpress Tip]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=2112</guid>
		<description><![CDATA[<p>Today, I have compiled a set of 10 CSS snippets that can save you a lot of time and effort. These codes are needed frequently when developing CSS-based websites or themes. Just bookmark these codes (Ctrl + D) so that&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-css-snippets-to-save-precious-time/">10 CSS Snippets to Save Precious Time</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p>Today, I have compiled a set of 10 CSS snippets that can save you a lot of time and effort. These codes are needed frequently when developing CSS-based websites or themes. Just bookmark these codes (Ctrl + D) so that you don’t have to look for them on the Internet every time.</p>
<h3>1. CSS Tooltips</h3>
<p>Through this code, you can have your own tooltips using just CSS. This is the CSS code :-</p>
<pre>a:hover
{background:#ffffff; text-decoration:none;}
/*BG color is a must for IE6*/
a.tooltip span
{display:none; padding:2px 3px; margin-left:8px; width:130px;}
a.tooltip:hover span
{display:inline; position:absolute; background:#ffffff;
border:1px solid #cccccc; color:#6c6c6c;}</pre>
<p>Now, use the tooltips like this :-</p>
<pre>Easy &lt;a class="tooltip" href="#"&gt;Tooltip&lt;span&gt;
This is the crazy little Easy Tooltip Text.&lt;/span&gt;&lt;/a&gt;.</pre>
<h3>2. Eric Meyer’s Reset Code</h3>
<p>HTML tags on different browsers have their own formatting and styling. To reset all that and bring everything to ground zero before starting to code, just add these lines at the beginning of your CSS file.</p>
<pre>html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

/* remember to define focus styles! */
:focus {
	outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
	text-decoration: none;
}
del {
	text-decoration: line-through;
}

/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: collapse;
	border-spacing: 0;
}</pre>
<h3>3. Handy CSS Debugger</h3>
<p>This code will add different color borders around your assets depending on its level. At each level in the hierarchy the color changes so you can see when “depth” changes. You can comment it out if you don’t need it.</p>
<pre>* { outline: 2px dotted red }
* * { outline: 2px dotted green }
* * * { outline: 2px dotted orange }
* * * * { outline: 2px dotted blue }
* * * * * { outline: 1px solid red }
* * * * * * { outline: 1px solid green }
* * * * * * * { outline: 1px solid orange }
* * * * * * * * { outline: 1px solid blue }</pre>
<h3>4. Centering a DIV of Unknown Width</h3>
<p>You can easily center a DIV by using <strong>margin:auto;</strong> property when you have mentioned its width in your CSS. But in case you wanted to center a DIV with unknown width, here is the code to do so :-</p>
<pre>.content {
	margin: 0 auto 8px;
	display: table;
	}

.content div {
	display: table-cell;
	}

&lt;!--[if IE]&gt;
.content {
	display: block;
	text-align: center;
	}
.content div {
	display: inline;
	zoom: 1;
}
&lt;![endif]--&gt;</pre>
<h3>5. Adding AJAX style Loading Icon to Large Images</h3>
<p>Instead of using any kind of JavaScript to add a loading icon before your large image is loaded, you can use this simple CSS technique. Just use the following class in the same DIV where you are calling the large image. Make sure the path to the small loading.gif is correct.</p>
<pre>.loading { background: url(loading.gif) no-repeat center center; }</pre>
<h3>6. CSS Image Preloader</h3>
<p>In case you need to preload images before the loading of your page completes, use the following technique. Just add the images’ paths to the DIV class, and call the DIV in your HTML. The DIV will not be visible but the images will preload nicely.</p>
<pre>div.loader{
background:url(images/hover.gif) no-repeat;
background:url(images/hover2.gif) no-repeat;
background:url(images/hover3.gif) no-repeat;
margin-left:-10000px;
}</pre>
<h3>7. CSS Opacity Hack</h3>
<p>You can set opacity of any asset by using the following codes (to achieve transparency) :-</p>
<pre>selector {
filter: alpha(opacity=60); /* MSIE/PC */
-moz-opacity: 0.6; /* Mozilla 1.6 and older */
opacity: 0.6;
}</pre>
<h3>8. Min-Height for IE and all other browsers</h3>
<p>Since min-height doesn’t work in IE, this code makes up for IE’s shortcomings. The first part of the code is the correct code that works in Firefox and Safari. The second part of the code is for IE. Internet Explorer will ignore min-height and is just given a height of 8em. The IE bug automatically expands the container to fit the extra text.</p>
<pre>/* for browsers that don't suck */
.container {
  min-height:8em;
  height:auto !important;
}

/* for Internet Explorer - which of course sucks */
/*\*/
* html .container {
  height: 8em;
}
/**/</pre>
<h3>9. Styling Links by File Type</h3>
<p>You can easily style specific URLs by using icons. This works only with CSS3 compatible browsers and degrades nicely with non-compatible browsers. Make sure to change the icon image paths.</p>
<pre>/* external links */
a[href^="http://"]
{
padding-right: 13px;
background: url(external.gif) no-repeat center right;
}

/* emails */
a[href^="mailto:"]
{
padding-right: 20px;
background: url(email.png) no-repeat center right;
}

/* pdfs */
a[href$=".pdf"]
{
padding-right: 18px;
background: url(acrobat.png) no-repeat center right;
}</pre>
<h3>10. Remove Textarea Scrollbar in IE</h3>
<p>IE has this nasty habit of showing a scrollbar in the textarea even when the content is inside the textarea. To avoid this, use the following code :-</p>
<pre>textarea{
	overflow:auto;
}</pre>
<p><img src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/bf4be_bKN4xJEKkSk" alt="" width="1" height="1" /><br />
This post was generated by an RSS Feed from <a href="http://www.blogohblog.com/" target="_blank">Blog Oh Blog</a><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/randomized-grid-of%c2%a0posts/" rel="bookmark" title="November 1, 2010">Randomized Grid of Posts</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/web-design-articles/dont-lose-your-focus/" rel="bookmark" title="December 24, 2009">Don&#8217;t Lose Your :focus</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/web-design-articles/here%e2%80%99s-something-interesting-about-css-borders/" rel="bookmark" title="April 26, 2011">Here’s Something Interesting About CSS Borders</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/web-tutorials/the-right-way-to-add-custom-list-markers-to-unordered-lists/" rel="bookmark" title="December 25, 2009">The Right Way to Add Custom List Markers to Unordered Lists</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-build-a-top-sliding-login-panel/" rel="bookmark" title="December 22, 2009">How to Build a Top Sliding Login Panel</a></li>
</ul>
<p><!-- Similar Posts took 28.186 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-css-snippets-to-save-precious-time/">10 CSS Snippets to Save Precious Time</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/10-css-snippets-to-save-precious-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Build a Top Sliding Login Panel</title>
		<link>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-build-a-top-sliding-login-panel/</link>
		<comments>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-build-a-top-sliding-login-panel/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 10:47:12 +0000</pubDate>
		<dc:creator>RSSFeed</dc:creator>
				<category><![CDATA[WordPress Tutorials]]></category>
		<category><![CDATA[Wordpress Tip]]></category>

		<guid isPermaLink="false">http://www.buildmeafabwebsite.co.uk/?p=2105</guid>
		<description><![CDATA[<p><img class="alignnone size-full wp-image-1134 postimg" title="sliding-login-panel" src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/3f321_sliding-login-panel.gif" alt="sliding-login-panel" width="524" height="137" /></p>
<p>Many times, I get requests from my clients who want to implement a <strong>Sliding Login Panel</strong> at the top of their WordPress blogs. With jQuery and the WordPress default login code, its very easy to build. Here is what&#8230;</p><p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-build-a-top-sliding-login-panel/">How to Build a Top Sliding Login Panel</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1134 postimg" title="sliding-login-panel" src="http://www.buildmeafabwebsite.co.uk/wp-content/plugins/wp-o-matic/cache/3f321_sliding-login-panel.gif" alt="sliding-login-panel" width="524" height="137" /></p>
<p>Many times, I get requests from my clients who want to implement a <strong>Sliding Login Panel</strong> at the top of their WordPress blogs. With jQuery and the WordPress default login code, its very easy to build. Here is what it will look like :-</p>
<p><a title="Top Sliding Panel" href="http://www.blogohblog.com/labs/sliding_login_panel.html" target="_blank">DEMO SLIDING LOGIN PANEL</a></p>
<p>The above demo is only HTML code and will not work with your WordPress blogs. In order to implement it into your WordPress themes, here is what you have to do :-</p>
<h3>Javascript</h3>
<p>In your wordpress theme (where you want to implement the sliding login panel), open up the header.php file. Paste the following code just before the head ending tag (&lt; /head&gt;) :-</p>
<pre>&lt;script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"&gt;
&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(document).ready(function(){
$(".btn-slide").click(function(){
$("#slide-panel").slideToggle("slow");
});
});
&lt;/script&gt;</pre>
<p>The above script will call jQuery using Google API and also initiate the sliding effect into your login panel.</p>
<h3>HTML</h3>
<p>In the same header.php file, right after the body tag (&lt; body&gt;) starts, paste the following code :-</p>
<pre>&lt;div id="slide-panel"&gt;&lt;!--SLIDE PANEL STARTS--&gt;
&lt;?php if ( ! is_user_logged_in() ){ ?&gt;
&lt;h2&gt;Login&lt;/h2&gt;
&lt;div class="loginform"&gt;
&lt;div class="formdetails"&gt;
&lt;form action="&lt;?php echo get_option('home');
?&gt;/wp-login.php" method="post"&gt;
&lt;label for="log"&gt;Username : &lt;/label&gt;&lt;input
type="text" name="log" id="log" value="&lt;
?php echo wp_specialchars(stripslashes($user_login), 1)
?&gt;" size="20" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;label for="pwd"&gt;Password : &lt;/label&gt;&lt;input
type="password" name="pwd" id="pwd" size="20" /&gt;
&lt;input type="submit" name="submit" value="Login" class="button" /&gt;
&lt;label for="rememberme"&gt;&lt;input name="rememberme"
id="rememberme" type="checkbox" checked="checked"
value="forever" /&gt; Remember me&lt;/label&gt;&lt;input
type="hidden" name="redirect_to" value="&lt;
?php echo $_SERVER['REQUEST_URI']; ?&gt;" /&gt;
&lt;/form&gt;
&lt;/div&gt;
&lt;div class="loginregister"&gt;
&lt;a href="&lt;?php echo get_option('home');
?&gt;/wp-register.php"&gt;Register&lt;/a&gt; |
&lt;a href="&lt;?php echo get_option('home');
?&gt;/wp-login.php?action=lostpassword"&gt;Recover password&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;!--loginform ends--&gt;
&lt;?php } else { ?&gt;
&lt;div class="loginform"&gt;
&lt;h2&gt;Control Panel&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a href="&lt;?php echo get_option('home');
?&gt;/wp-admin/"&gt;Dashboard&lt;/a&gt;&lt;/li&gt; |
&lt;li&gt;&lt;a href="&lt;?php echo get_option('home');
?&gt;/wp-admin/post-new.php"&gt;Write new Post&lt;/a&gt;&lt;/li&gt; |
&lt;li&gt;&lt;a href="&lt;?php echo get_option('home');
?&gt;/wp-admin/page-new.php"&gt;Write new Page&lt;/a&gt;&lt;/li&gt; |
&lt;li&gt;&lt;a href="&lt;?php echo wp_logout_url( get_bloginfo('url') );
?&gt;" title="Logout"&gt;Logout&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;&lt;!--loginform ends--&gt;
&lt;?php }?&gt;
&lt;/div&gt;&lt;!--SLIDE PANEL ENDS--&gt;
&lt;div class="slide"&gt;&lt;a href="#" class="btn-slide"&gt;&lt;
?php if ( ! is_user_logged_in() ){ ?&gt;Login&lt;?php } else
{ ?&gt;Logout&lt;?php }?&gt;&lt;/a&gt;&lt;/div&gt;&lt;!--LOGIN BUTTON TEXT--&gt;</pre>
<p>The above code will integrate the sliding panel on top of your wordpress theme.</p>
<h3>CSS</h3>
<p>Now, all we are left with is styling the panel. Open up your style.css file and paste the following at the end of the file :-</p>
<p><code>* {margin:0; padding:0; outline:0;}<br />
#slide-panel{ background-color:#000;border-bottom-style:solid;<br />
border-bottom-width:2px;display:none;height:100px;margin:auto;}<br />
.slide {width:950px; margin:auto;}<br />
.btn-slide:link, .btn-slide:visited{color:#fff; float:right;<br />
display:block;font-size:14px; text-transform:uppercase;<br />
font-weight:bold;height:26px; padding:3px 0 3px 0;<br />
line-height:22px;text-align:center;text-decoration:none;<br />
width:100px; background-color:#000; font-family:Arial;}<br />
.loginform {width:950px; margin:auto;  color:#999;<br />
font-family:Arial, Helvetica, sans-serif;}<br />
.formdetails {color:#FFF; font-size:12px;padding:5px;}<br />
.formdetails input{border:none; padding:2px 5px 2px 5px;<br />
background-color:#EFEFEF;}<br />
.loginregister {color:#999; padding:5px;}<br />
.loginregister a:link, .loginregister a:visited {color:#FFF;<br />
font-size:11px; text-decoration:underline;}<br />
.loginform h2 {padding:10px 10px 10px 0; font-size:18px;<br />
font-weight:normal; text-transform:uppercase;}<br />
.loginform ul li {display:inline;}<br />
.loginform ul li a:link, .loginform ul li a:visited {color:#FFF;<br />
font-size:12px; text-decoration:underline;}</code></p>
<p>Now, try running your theme. Voila! You have a fully functional Sliding Login Panel of your own! Let me know if you have any issues.</p>
<p>This post was generated by an RSS Feed from <a href="http://www.blogohblog.com/" target="_blank">Blog Oh Blog</a><strong>You may also like to read:</strong>
<ul class="similar-posts">
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/randomized-grid-of%c2%a0posts/" rel="bookmark" title="November 1, 2010">Randomized Grid of Posts</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-add-post-thumbnail-on-home-page-in-wordpress-3/" rel="bookmark" title="May 15, 2011">how to add post thumbnail on home page in wordpress</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/display-most-recent-comments-with-gravatar/" rel="bookmark" title="January 25, 2010">Display most recent comments with Gravatar</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/specify-unique-css-file-per%c2%a0post/" rel="bookmark" title="May 31, 2010">Specify Unique CSS File Per Post</a></li>
<li><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-easily-add-google-ad-through-text-widget-in-wordpress-4/" rel="bookmark" title="June 4, 2011">how to easily add google ad through text widget in wordpress</a></li>
</ul>
<p><!-- Similar Posts took 21.855 ms --></p>
<p><a href="http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-build-a-top-sliding-login-panel/">How to Build a Top Sliding Login Panel</a> is a post from: <a href="http://www.buildmeafabwebsite.co.uk">Build Me A Fab Website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.buildmeafabwebsite.co.uk/wordpress-tutorials/how-to-build-a-top-sliding-login-panel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

