<?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>WpFunc &#187; IE6</title>
	<atom:link href="http://wpfunc.com/tag/ie6/feed" rel="self" type="application/rss+xml" />
	<link>http://wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Sun, 06 May 2012 02:21:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Udegbunam Asked &#8220;How i hide my content from IE6 Users?&#8221;</title>
		<link>http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html</link>
		<comments>http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html#comments</comments>
		<pubDate>Fri, 11 Jun 2010 10:06:06 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[have_posts]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[index.php]]></category>
		<category><![CDATA[question]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Udegbunam]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=440</guid>
		<description><![CDATA[Hi again. I know i can&#8217;t write near 20 days. But Udegbunam asked me a question on this post. I try some code on this problem and i found a solution for this. You know, i write an article about using  Two or more single php. I used some if and else option for change [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Hi again. I know i can&#8217;t write near 20 days. But <a href="http://www.wpfunc.com/wordpress/show-default-theme-for-ie6-visitors.html#comment-56" target="_blank">Udegbunam asked me a question on this post</a>. I try some code on this problem and i found a solution for this. You know, i write an article about using  <a href="http://www.wpfunc.com/wordpress/use-two-or-more-single-php.html" target="_blank">Two or more single php</a>. <span id="more-440"></span>I used some if and else option for change single.php for each category. With this code we can change our index.php for IE6 users. Nearly simple code and we can use this with different browsers (IE7, Safari etc.).  Lets begin!</p>
<p style="text-align: justify;"><span class="alert">Before start make a backup of your theme&#8217;s index.php. I used default theme&#8217;s files for this. Your template can have different files or codes.</span></p>
<p style="text-align: justify;">Firstly we have to copy our real index.php twice. After that rename them with <span style="color: #ff0000;"><strong>index-ie6.php</strong></span> and <span style="color: #ff0000;"><strong>index-real.php</strong></span>. Clear <strong><span style="color: #ff0000;">index.php</span></strong>&#8216;s code and place that code below;</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false) {
include(TEMPLATEPATH . '/index-ie6.php'); }
else { include(TEMPLATEPATH . '/index-real.php');
}
?&gt;</pre>
<p style="text-align: justify;">After that we change index-ie6.php for IE6 users. I simply change <span style="color: #ff0000;"><strong>have_post</strong></span><span style="color: #ff0000;">s</span> function with a <span style="color: #ff0000;"><strong>h3</strong></span> :). Here is the <span style="color: #ff0000;"><strong>index-ie6.php</strong></span>;</p>
<pre class="brush: php; title: ; notranslate">&lt;?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

get_header(); ?&gt;

	&lt;div id=&quot;content&quot; class=&quot;narrowcolumn&quot; role=&quot;main&quot;&gt;
&lt;div&gt;&lt;h3&gt;Sorry You're using Internet Explorer 6 &lt;/h3&gt;&lt;/div&gt;

	&lt;/div&gt;

&lt;?php get_sidebar(); ?&gt;

&lt;?php get_footer(); ?&gt;
</pre>
<p style="text-align: justify;"><span style="color: #ff0000;"><strong>Don&#8217;t change index-real.php&#8217;s codes. This is the real index.php of your theme.</strong></span><br />
That&#8217;s All. There is no more code :) If you want i take some screenshots for this. IE6, IE8 and Firefox.</p>

<a href='http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html/attachment/firefox' title='Firefox Works Regularly'><img width="150" height="150" src="http://www.wpfunc.com/wp-content/uploads/2010/06/firefox-150x150.png" class="attachment-thumbnail" alt="Firefox Works Regularly" title="Firefox Works Regularly" /></a>
<a href='http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html/attachment/ie6' title='IE 6 shows what we write'><img width="150" height="150" src="http://www.wpfunc.com/wp-content/uploads/2010/06/ie6-150x150.png" class="attachment-thumbnail" alt="IE 6 shows what we write" title="IE 6 shows what we write" /></a>
<a href='http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html/attachment/ie8' title='IE8 Works Regularly'><img width="150" height="150" src="http://www.wpfunc.com/wp-content/uploads/2010/06/ie8-150x150.png" class="attachment-thumbnail" alt="IE8 Works Regularly" title="IE8 Works Regularly" /></a>

]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/udegbunam-asked-how-i-hide-my-content-from-ie6-users.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show Default Theme for IE6 Visitors!</title>
		<link>http://wpfunc.com/wordpress/show-default-theme-for-ie6-visitors.html</link>
		<comments>http://wpfunc.com/wordpress/show-default-theme-for-ie6-visitors.html#comments</comments>
		<pubDate>Thu, 24 Dec 2009 19:47:32 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[browser detect]]></category>
		<category><![CDATA[change theme]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[functions.php]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=331</guid>
		<description><![CDATA[You can show &#8220;default&#8221; or &#8220;classic&#8221; theme for ie6 visitors. Because IE6 broke our themes and the other people themes. And alot of people use IE6. Let&#8217;s Begin&#8230; Here is the code; Insert this code to your Theme&#8217;s functions.php. With this code we will make Browser detection and we tell wordpress &#8216;Change theme to default [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You can show &#8220;<em><strong>default</strong></em>&#8221; or &#8220;<em><strong>classic</strong></em>&#8221; theme for ie6 visitors. Because IE6 broke our themes and the other people themes. And alot of people use IE6. Let&#8217;s Begin&#8230;<span id="more-331"></span></p>
<h3>Here is the code;</h3>
<pre class="brush: php; title: ; notranslate">add_filter('template', 'serve_default_to_iesix');
add_filter('option_template', 'serve_default_to_iesix');
add_filter('option_stylesheet', 'serve_default_to_iesix');
function serve_default_to_iesix($theme) {
	if(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false)
		$theme = 'default';

	return $theme;
}</pre>
<p style="text-align: justify;">Insert this code to your Theme&#8217;s <em><strong><span style="color: #ff0000;">functions.php</span></strong></em>. With this code we will make Browser detection and we tell wordpress &#8216;<span style="color: #ff0000;"><strong>Change theme to default if our visitors are use IE6!</strong></span>&#8216;.</p>
<p style="text-align: justify;">You can change &#8216;default&#8217; to classic or any theme name. You have to edit this lines for make changes.</p>
<pre class="brush: php; title: ; notranslate">$theme = 'default';</pre>
]]></content:encoded>
			<wfw:commentRss>http://wpfunc.com/wordpress/show-default-theme-for-ie6-visitors.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

