<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Design Nudge</title>
	
	<link>http://www.designnudge.com</link>
	<description>Custom Website Design, Wordpress Themes by a freelancer based in the North East of England.</description>
	<lastBuildDate>Sun, 03 Jul 2011 19:10:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/DesignNudge" /><feedburner:info uri="designnudge" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>DesignNudge</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Microsoft to support Internet Explorer until 2014</title>
		<link>http://feedproxy.google.com/~r/DesignNudge/~3/m-PjUZm5rb0/</link>
		<comments>http://www.designnudge.com/2009/microsoft-to-support-internet-explorer-until-2014/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 09:00:21 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[internet explorer]]></category>

		<guid isPermaLink="false">http://www.designnudge.com/?p=128</guid>
		<description><![CDATA[Microsoft has announced that they will support Internet Explorer 6  (IE6) until 2014, the lifespan of the operating system, Windows XP.
This decision will frustrate many web developers (myself included) as IE6 is widely considered a hindrance to web development in the designer community.
Drastically broken in IE6
IE6 doesn’t conform to [..]]]></description>
			<content:encoded><![CDATA[<p>Microsoft has announced that they will <a href="http://news.bbc.co.uk/1/hi/technology/8196242.stm">support Internet Explorer 6  (IE6) until 2014</a>, the lifespan of the operating system, Windows XP.</p>
<p>This decision will frustrate many web developers (myself included) as IE6 is widely considered a hindrance to web development in the designer community.</p>
<p><strong>Drastically broken in IE6</strong></p>
<p>IE6 doesn’t conform to the same standards as modern browsers like <a target="_blank" href="http://www.google.co.uk/url?sa=t&#038;source=web&#038;ct=res&#038;cd=1&#038;url=http%3A%2F%2Fwww.mozilla.com%2Ffirefox%2F&#038;ei=FHeGStPYLpTLjAeokfGiCw&#038;rct=j&#038;q=firefox&#038;usg=AFQjCNHoYRseCQLFpRIP5mARYRNsMpS-qw">Firefox</a> and <a target="_blank" href="http://www.google.co.uk/chrome">Chrome</a> – so potentially a site could appear drastically broken in IE6. IE6 is a headache for designers because the browser usually requires a seperate stylesheet with various hacks, doubling the effort required and potentially doubling costs for clients.</p>
<p>We shouldn&#8217;t be surprised that an 8-year-old browser is so out-of-touch. What is surprising is that IE6 still claims an approximate 15 to 20 market share. This share will most likely include users that are restricted by what browser they can use, e.g. schools, local government and businesses.</p>
<p><strong>On the slide</strong></p>
<p>Thankfully, IE6&#8242;s market share appears to be on the slide, thanks partly to designers neglecting IE6 users. Some small sites now stop IE6 users from browsing their site by placing an alternative holding page encouraging users to update their browser. Some sites like <a href="http://simplebits.com/">SimpleBits</a> accomodate IE6 users but the experiencing is downgraded to a basic stylesheet.</p>
<img src="http://feeds.feedburner.com/~r/DesignNudge/~4/m-PjUZm5rb0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designnudge.com/2009/microsoft-to-support-internet-explorer-until-2014/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designnudge.com/2009/microsoft-to-support-internet-explorer-until-2014/</feedburner:origLink></item>
		<item>
		<title>Bombay</title>
		<link>http://feedproxy.google.com/~r/DesignNudge/~3/QPnHHly6Gp4/</link>
		<comments>http://www.designnudge.com/2009/bombay/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 21:24:03 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Freebies]]></category>

		<guid isPermaLink="false">http://www.designnudge.com/?p=66</guid>
		<description />
			<content:encoded><![CDATA[<img src="http://feeds.feedburner.com/~r/DesignNudge/~4/QPnHHly6Gp4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designnudge.com/2009/bombay/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.designnudge.com/2009/bombay/</feedburner:origLink></item>
		<item>
		<title>WordPress Breadcrumb Navigation</title>
		<link>http://feedproxy.google.com/~r/DesignNudge/~3/Yw21txIwQxk/</link>
		<comments>http://www.designnudge.com/2009/wordpress-breadcrumb-navigation/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 06:10:10 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.designnudge.com/?p=81</guid>
		<description><![CDATA[Need a WordPress breadcrumb navigation trail for your WordPress theme, but do not want to rely on a plugin?
If you want your WordPress theme to stand out from the crowd it is worth considering implementing a breadcrumb navigation trail. A breadcrumb trail can make it easier for your site visitors [..]]]></description>
			<content:encoded><![CDATA[<p><em>Need a <strong>WordPress breadcrumb navigation</strong> trail for your WordPress theme, but do not want to rely on a plugin?</em></p>
<p>If you want your WordPress theme to stand out from the crowd it is worth considering implementing a breadcrumb navigation trail. A breadcrumb trail can make it easier for your site visitors to identify what page they are currently viewing. This can make visitors more likely to return to your site, and is a great way to increase traffic. Anyone with a good internet connection from a reliable provider such as <a href="http://www.o2.co.uk/broadband/mobile/">O2</a> should find it relatively easy to move around your site quickly. However, having a breadcrumb trail is a straightforward way of making site navigation that little bit easier. </p>
<p>Plugins like <a href="http://wordpress.org/extend/plugins/breadcrumb-navxt/">Breadcrumb NavXT</a> are available that will automatically produce a breadcrumb trail for you. However, if you are looking for an easier method that does not require a plugin the below solution should help.</p>
<p><strong>Breadcrumb.php code</strong></p>
<p>Copy the below code into a new file called <strong>breadcrumb.php</strong> &#8211; make sure this file is in your root theme folder. </p>
<pre class="brush: php;">
&lt;div id=&quot;breadcrumb&quot;&gt;
  &lt;?php /* If this is the homepage */ if (is_home()) { ?&gt;
  &lt;p&gt; &lt;strong&gt;You are here:&lt;/strong&gt; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;&quot; title=&quot;home&quot;&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;?php } ?&gt;
  &lt;?php /* If this is a tag archive */ if (is_tag() ) { ?&gt;
  &lt;p&gt; &lt;strong&gt;You are here:&lt;/strong&gt; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;&quot; title=&quot;home&quot;&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt; &amp;raquo; &lt;a href=&quot;#&quot; rel=&quot;bookmark&quot; title=&quot;Posts Tagged &amp;#8216;&lt;?php single_tag_title(); ?&gt;&amp;#8217;&quot;&gt;Posts Tagged &amp;#8216;
    &lt;?php single_tag_title(); ?&gt;
    &amp;#8217;&lt;/a&gt;&lt;/p&gt;
  &lt;?php } ?&gt;
  &lt;?php /* If this is a category archive */ if (is_category()) { ?&gt;
  &lt;p&gt; &lt;strong&gt;You are here:&lt;/strong&gt; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;&quot; title=&quot;home&quot;&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt; &amp;raquo; &lt;a href=&quot;#&quot; title=&quot;&lt;?php single_cat_title(); ?&gt;&quot;&gt;
    &lt;?php single_cat_title(); ?&gt;
    &lt;/a&gt; &lt;/p&gt;
  &lt;?php } ?&gt;
  &lt;?php if /* If this is a page */ (is_page()) { ?&gt;
  &lt;p&gt; &lt;strong&gt;You are here:&lt;/strong&gt; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;&quot; title=&quot;home&quot;&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt; &amp;raquo;
    &lt;?php
	global $wp_query;
	if (empty($wp_query-&gt;post-&gt;post_parent) ) {
		$parent = $wp_query-&gt;post-&gt;ID;
		echo '';
	} else {
		$parent = $wp_query-&gt;post-&gt;post_parent;
		echo '&lt;a href=&quot;'.get_permalink($parent).'&quot;&gt;'.get_the_title($parent).'&lt;/a&gt; &amp;raquo;';
	}
?&gt;
    &lt;a href=&quot;&lt;?php echo get_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link: &lt;?php the_title(); ?&gt;&quot;&gt;
    &lt;?php the_title(); ?&gt;
    &lt;/a&gt;&lt;/p&gt;
  &lt;?php } ?&gt;
  &lt;?php if /* If this is a blog post */ (is_single()) { ?&gt;
  &lt;p&gt; &lt;strong&gt;You are here:&lt;/strong&gt; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;&quot; title=&quot;home&quot;&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt; &amp;raquo;
    &lt;?php the_category(', ') ?&gt;
    &amp;raquo; &lt;a href=&quot;&lt;?php echo get_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link: &lt;?php the_title(); ?&gt;&quot;&gt;
    &lt;?php the_title(); ?&gt;
    &lt;/a&gt;&lt;/p&gt;
  &lt;?php } ?&gt;
  &lt;?php if /* If this is a search page */ (is_search()) { ?&gt;
  &lt;p&gt; &lt;strong&gt;You are here:&lt;/strong&gt; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;&quot; title=&quot;home&quot;&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt; &amp;raquo; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;&quot; title=&quot;home&quot;&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
  &lt;?php } ?&gt;
  &lt;?php /* If this is a 404 page */ if (is_404()) { ?&gt;
  &lt;p&gt; &lt;strong&gt;You are here:&lt;/strong&gt; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;&quot; title=&quot;home&quot;&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt; &amp;raquo; &lt;a href=&quot;#&quot; title=&quot;404 Error page&quot;&gt;404 Error&lt;/a&gt;&lt;/p&gt;
  &lt;?php } ?&gt;
  &lt;?php /* If this is a yearly archive */ if (is_year()) { ?&gt;
  &lt;p&gt; &lt;strong&gt;You are here:&lt;/strong&gt; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;&quot; title=&quot;home&quot;&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt; &amp;raquo; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;/archives&quot; title=&quot;archives&quot;&gt;&lt;span&gt;archives&lt;/span&gt;&lt;/a&gt; &amp;raquo; &lt;a href=&quot;#&quot; title=&quot;Year&quot;&gt;
    &lt;?php the_time('Y'); ?&gt;
    &lt;/a&gt;&lt;/p&gt;
  &lt;?php } ?&gt;
  &lt;?php /* If this is a monthly archive */ if (is_month()) { ?&gt;
  &lt;p&gt; &lt;strong&gt;You are here:&lt;/strong&gt; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;&quot; title=&quot;home&quot;&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt; &amp;raquo; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;/archives&quot; title=&quot;archives&quot;&gt;&lt;span&gt;archives&lt;/span&gt;&lt;/a&gt; &amp;raquo; &lt;a href=&quot;#&quot; title=&quot;Month&quot;&gt;
    &lt;?php the_time('F, Y'); ?&gt;
    &lt;/a&gt;&lt;/p&gt;
  &lt;?php } ?&gt;
  &lt;?php /* If this is a daily archive */ if (is_day()) { ?&gt;
  &lt;p&gt; &lt;strong&gt;You are here:&lt;/strong&gt; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;&quot; title=&quot;home&quot;&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt; &amp;raquo; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;/archives&quot; title=&quot;archives&quot;&gt;&lt;span&gt;archives&lt;/span&gt;&lt;/a&gt; &amp;raquo; &lt;a href=&quot;#&quot; title=&quot;Month&quot;&gt;
    &lt;?php the_time('F jS, Y'); ?&gt;
    &lt;/a&gt;&lt;/p&gt;
  &lt;?php } ?&gt;
  &lt;?php /* If this is a author archive */ if (is_author()) { ?&gt;
  &lt;p&gt; &lt;strong&gt;You are here:&lt;/strong&gt; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;&quot; title=&quot;home&quot;&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt; &amp;raquo; &lt;a href=&quot;&lt;?php bloginfo('siteurl'); ?&gt;/archives&quot; title=&quot;archives&quot;&gt;&lt;span&gt;authors&lt;/span&gt;&lt;/a&gt; &amp;raquo;
    &lt;?php the_author_posts_link(); ?&gt;
    &lt;?php
if(isset($_GET['author_name'])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;
?&gt;
    &lt;a title=&quot;&lt;?php echo $curauth-&gt;display_name; ?&gt;'s posts&quot; href=&quot;#&quot;&gt;&lt;?php echo $curauth-&gt;display_name; ?&gt;&lt;/a&gt; &lt;/p&gt;
  &lt;?php } ?&gt;
&lt;/div&gt;
&lt;!-- end breadcrumb --&gt;
</pre>
<p>Call the above template anywhere in your theme files (usually in header.php) using the following code:</p>
<pre class="brush: php;">
&lt;?php include (TEMPLATEPATH . &quot;/breadcrumb.php&quot;); ?&gt;
</pre>
<p>The end HTML result will look something like this:</p>
<pre class="brush: xml;">
&lt;div id=&quot;breadcrumb&quot;&gt;
  &lt;p&gt; &lt;strong&gt;You are here:&lt;/strong&gt; &lt;a href=&quot;http://yoursitename.com&quot; title=&quot;home&quot;&gt;&lt;span&gt;home&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;&lt;!-- end breadcrumb --&gt;
</pre>
<p><strong>Known issues!</strong></p>
<p>This does not work for Grandchild categories. In my experience, grandchild categories are used very rarely. If you have found a workaround or any improvements to this code let me know. </p>
<img src="http://feeds.feedburner.com/~r/DesignNudge/~4/Yw21txIwQxk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designnudge.com/2009/wordpress-breadcrumb-navigation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.designnudge.com/2009/wordpress-breadcrumb-navigation/</feedburner:origLink></item>
		<item>
		<title>Hide images from guests in WordPress!</title>
		<link>http://feedproxy.google.com/~r/DesignNudge/~3/YGHtKB5n0zU/</link>
		<comments>http://www.designnudge.com/2009/hide-images-from-guests-in-wordpress/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 18:08:23 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[hide images from guests]]></category>

		<guid isPermaLink="false">http://www.designnudge.com/?p=37</guid>
		<description><![CDATA[If need to hide images from guests (users that are not registered) on your WordPress blog this function should help.
Why would I need to hide images from guests?
You may have some images that you only want registered users to view on your blog. For example, you may be a photographer [..]]]></description>
			<content:encoded><![CDATA[<p>If need to <strong>hide images from guests</strong> (users that are not registered) on your WordPress blog this <a href="#function1">function</a> should help.</p>
<p><strong>Why would I need to hide images from guests?</strong></p>
<p>You may have some images that you only want registered users to view on your blog. For example, you may be a photographer that would like to show your latest great shot to a select number of registered users. Making content available to registered only users can be a great incentive for your readers to register on your blog.</p>
<p>Simple add the below code to the top of your theme&#8217;s functions.php after the opening php tag. </p>
<p><strong id="function1">PHP Function / Hide images</strong></p>
<pre>
if ( is_user_logged_in() ) {

} else {
	add_filter('the_content','wpi_image_content_filter',11);

function wpi_image_content_filter($content){

    if (is_single() || is_front_page || is_home ()){
      $content = preg_replace("/<img[^>]+\>/i", "" />", $content);

    }

    return $content;
}
}
</pre>
<p><em>Please note:</em> the function will not block image links, so guests could still view the source image if they click on the image. To avoid this do not add links to inserted images. </p>
<p>Alternatively, use the below function to block images and links. <strong>Be careful</strong>, as this will remove (hide) all links in your blog posts.</p>
<p><strong>PHP Function / Hide images and links</strong></p>
<pre>
if ( is_user_logged_in() ) {

} else {
	add_filter('the_content','wpi_image_content_filter',11);

function wpi_image_content_filter($content){

    if (is_single() || is_front_page || is_home ()){
      $content = preg_replace("/<a[^>]+href[^>]+>/", "", $content);
      $content = preg_replace("/<img[^>]+\>/i", "" />", $content);

    }

    return $content;
}
}
</pre>
<img src="http://feeds.feedburner.com/~r/DesignNudge/~4/YGHtKB5n0zU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designnudge.com/2009/hide-images-from-guests-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.designnudge.com/2009/hide-images-from-guests-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>Design Nudge featured in NetMag</title>
		<link>http://feedproxy.google.com/~r/DesignNudge/~3/6-Wcu2qH7x8/</link>
		<comments>http://www.designnudge.com/2008/design-nudge-featured-in-netmag/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 13:05:28 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.designnudge.com/?p=32</guid>
		<description><![CDATA[Design Nudge was featured in December’s edition of a leading UK Web Design magazine, NetMag.
I was asked by an editor back in October if I’d like to be included in the readers’ section.
I jumped at the chance and I’m delighted to be included in such a well respected magazine, especially [..]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-34" style="margin-left: 10px; margin-bottom: 10px;" title="designnudge-webdesign-netmag1" src="http://www.designnudge.com/wp-content/uploads/2008/12/designnudge-webdesign-netmag1.jpg" alt="Design Nudge featured in print" width="300" height="400" /><strong><em>Design Nudge was featured in December’s edition of a leading UK Web Design magazine, <a href="http://www.netmag.co.uk">NetMag</a>.</em></strong></p>
<p>I was asked by an editor back in October if I’d like to be included in the readers’ section.</p>
<p>I jumped at the chance and I’m delighted to be included in such a well respected magazine, especially as I’m a regular reader.</p>
<p>I was asked to write a short description (under 120 words) about Design Nudge and here is what I came up with:</p>
<blockquote><p>Design Nudge is my own personal web design portfolio and blog. The main aim of the site was to keep everything nice and simple so readers can easily browse my portfolio and read what web services I offer. Design Nudge was born from an illustrator design I’ve been tinkering with over the last six months. I wanted to create a dark look without compromising bold typography. Design Nudge was hand-coded in XHTML and CSS using Dreamweaver. I’ve used over five individual style sheets, so updating in the future will be a swift task. Reaching a wide audience is important, so it was tested in most modern-day browsers and on some mobile devices.</p></blockquote>
<p>Anyone can submit there personal site for review and if it meets their criteria they will almost certainly include it &#8211; so what are you waiting for?</p>
<p>Also, a big thanks to the following sites for including Design Nudge in their CSS showcases:</p>
<ul>
<li><a href="http://www.css-design-yorkshire.com/">CSS Design Yorkshire</a></li>
<li><a href="http://www.csscreme.com/">CSS Creme</a></li>
<li><a href="http://www.cssbased.com/">CSS Based</a></li>
<li><a href="http://csscontainer.com/">CSS Container</a></li>
</ul>
<img src="http://feeds.feedburner.com/~r/DesignNudge/~4/6-Wcu2qH7x8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designnudge.com/2008/design-nudge-featured-in-netmag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designnudge.com/2008/design-nudge-featured-in-netmag/</feedburner:origLink></item>
		<item>
		<title>How to use a current page marker in WordPress!</title>
		<link>http://feedproxy.google.com/~r/DesignNudge/~3/PwiVzEcfsrI/</link>
		<comments>http://www.designnudge.com/2008/how-to-use-a-current-page-marker-in-wordpress/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 20:07:06 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.designnudge.com/?p=21</guid>
		<description><![CDATA[&#8220;Current page markers&#8221; are a great way for web designers to illustrate to the reader what page they are currently viewing. &#8220;Current page markers&#8221; use the same principle as breadcrumb trails but are generally less obtrusive. &#8220;Current page markers&#8221; are suitable for small to medium sized websites.


Breadcrumb trail

Guardian.co.uk is a [..]]]></description>
			<content:encoded><![CDATA[<p>&#8220;Current page markers&#8221; are a great way for web designers to illustrate to the reader what page they are currently viewing. &#8220;Current page markers&#8221; use the same principle as breadcrumb trails but are generally less obtrusive. &#8220;Current page markers&#8221; are suitable for small to medium sized websites.<span id="more-21"></span></p>
<div class="postwrap">
<div class="width-300-left">
<h5>Breadcrumb trail</h5>
<p class="caption"><img title="guardian-screen" src="http://www.designnudge.com/wp-content/uploads/2008/09/guardian-screen.jpg" alt="Screen gran taken from Guardian.co.uk" width="250" height="100" /><em><br />
<a href="http://www.guardian.co.uk">Guardian.co.uk</a> is a good example of how to add style to a breadcrumb trail.</em></p>
</div>
<div class="width-300-right">
<h5>Current Page Marker</h5>
<p class="caption"><img class="alignnone size-full wp-image-23" title="Design Nudge" src="http://www.designnudge.com/wp-content/uploads/2008/09/dn-mark-screen1.jpg" alt="Design Nudge Navigation Screen grab" width="250" height="100" /><br />
<em>At Design Nudge I opted for a current page marker over a breadcrumb trail.</em></p>
</div>
</div>
<h4 style="clear:both">Using &#8220;current page markers&#8221; in WordPress?</h4>
<p>In this tutorial I will be using examples and screen grabs from the default 1.6 WordPress theme. &#8220;Current page markers&#8221; are already available in WordPress but they are disabled in the default WordPress theme. To enable page markers simple style and add the following CSS class to your stylesheet (style.css):</p>
<pre><strong>.current_page_item</strong> {font-weight: bold; font-style: italic}</pre>
<p>Using the above CSS class the page link text will change to <em><strong>bold italic</strong></em> when the user is browsing that particular page:</p>
<p><img class="alignnone size-full wp-image-24" title="Wordpress Marker" src="http://www.designnudge.com/wp-content/uploads/2008/09/default-marker.jpg" alt="Example of a page marker " width="579" height="300" /></p>
<h4>How to add a &#8220;current page marker&#8221; to your homepage in WordPress!</h4>
<p>So you now know how to add &#8220;current page markers&#8221; to WordPress pages, but what about the hompage? In this quick tutorial I&#8217;m going to demonstrate how to implement a &#8220;current page marker&#8221; for your homepage into any WordPress theme. Do not take the whole day off work as this tutorial should not take long.</p>
<p>1. First you need to delete the old wp_list_pages function which can be found in your themes sidebar (sidebar.php):</p>
<pre>&lt;?php wp_list_pages('title_li=&lt;h2&gt;Pages&lt;/h2&gt;' ); ?&gt;</pre>
<p>2. We will now create a new wp_list_pages with a simple PHP if/elseif statement. So, if this is the homepage current_page_item will be added as a class to the &lt;li&gt; element, <span>alternatively </span> if this is not the homepage, page_item_home will be added as a class to the &lt;li&gt; element. Copy and paste the following code where the old wp_list_pages statement was located.</p>
<blockquote><p>&lt;h2&gt;Pages&lt;/h2&gt;<br />
&lt;ul&gt;<br />
&lt;?php /* If this is the homepage   */ if (is_home()) { ?&gt;<br />
&lt;li class=&quot;current_page_item&quot;&gt;<br />
&lt;a   href=&quot;&lt;?php echo get_option(’home’); ?&gt;/&quot;   title=&quot;homepage&quot;&gt;Home&lt;/a&gt;<br />
&lt;/li&gt;<br />
&lt;?php } else {   ?&gt;<br />
&lt;li class=&quot;page_item_home&quot;&gt;<br />
&lt;a href=&quot;&lt;?php echo   get_option(’home’); ?&gt;/&quot;   title=&quot;homepage&quot;&gt;home&lt;/a&gt;<br />
&lt;/li&gt;<br />
&lt;?php }   ?&gt;<br />
&lt;?php<br />
$pages = wp_list_pages(’title_li=&amp;echo=0′);<br />
echo   $pages;<br />
?&gt;<br />
&lt;/ul&gt;</p></blockquote>
<p>You may have noticed that I have removed the &lt;li&gt; elements within wp_list_pages and moved the &lt;h2&gt; elements outside the code &#8211; this is needed so the extra homepage link is included within the list.</p>
<p>3. And that&#8217;s it, you should now have a new homepage link and current page markers in your sidebar.</p>
<p><img class="alignnone size-full wp-image-25" title="default-marker-home" src="http://www.designnudge.com/wp-content/uploads/2008/09/default-marker-home.jpg" alt="Current Page Marker on Homepage" width="579" height="300" /></p>
<p class="caption"><em>Having trouble getting it working?, found a better way? Feel free to leave feedback using the comment form below.</em></p>
<img src="http://feeds.feedburner.com/~r/DesignNudge/~4/PwiVzEcfsrI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designnudge.com/2008/how-to-use-a-current-page-marker-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.designnudge.com/2008/how-to-use-a-current-page-marker-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>Welcome to the new Design Nudge blog</title>
		<link>http://feedproxy.google.com/~r/DesignNudge/~3/jgpFoNGzLR0/</link>
		<comments>http://www.designnudge.com/2008/welcome-to-the-new-design-nudge-blog/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 17:04:25 +0000</pubDate>
		<dc:creator>Will</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.designnudge.com/?p=20</guid>
		<description><![CDATA[Hello, thanks for dropping by.
My intention of this blog is to speak freely about my  experiences with web technology, accessibility/usability issues and standards  based HTML/CSS web design.
This is a short entry as I still have a few dusty HTML/CSS corners to clean up. Or in other words this [..]]]></description>
			<content:encoded><![CDATA[<p>Hello, thanks for dropping by.</p>
<p>My intention of this blog is to speak freely about my  experiences with web technology, accessibility/usability issues and standards  based HTML/CSS web design.<span id="more-20"></span></p>
<p>This is a short entry as I still have a few dusty HTML/CSS corners to clean up. Or in other words this site is currently under construction,  but I can assure you there will be no ugly flashing gifs on Design Nudge.</p>
<p>In the meantime, feel free to browse <a href="http://www.designnudge.com/services">what I can do</a> and  <a href="http://www.designnudge.com/portfolio">what I have done</a>.</p>
<img src="http://feeds.feedburner.com/~r/DesignNudge/~4/jgpFoNGzLR0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.designnudge.com/2008/welcome-to-the-new-design-nudge-blog/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.designnudge.com/2008/welcome-to-the-new-design-nudge-blog/</feedburner:origLink></item>
	</channel>
</rss>

