Jump to content
xisto Community
Tramposch

Load Separate Theme For Ie In Wordpress

Recommended Posts

Anybody know how to load a completely separate theme for IE in Wordpress 2.7? I don't really know how to call specific themes, which prevents me from figuring it out myself. And there might even be a function for it, but I haven't found one. So any help is appreciated. Thanks.

Share this post


Link to post
Share on other sites

If the reason is due to standards incompliancy, why not use IE hacks? If IE hacks is out of the question, then i have an idea that wouldn't require much knowledge on the structure of WordPress. Since i'm a WordPress novice, you'll have to figure out how to implement this idea yourself. Make a new, empty template. This template will only be used for including other templates. Insert the following code and modify as needed:

if (preg_match("#MSIE#", $_SERVER['HTTP_USER_AGENT'])){	 include "file"; // modify} else {	 include "file"; // modify}
What i meant by you implementing this code, i mean there's bound to be some template variables that need to be set before (or after) this code (and the files it includes). This should decrease the learning curve. The only problem with this is that though the browser sent a MSIE header, it does not mean that it is a MSIE browser.

Share this post


Link to post
Share on other sites

Yea, the implementation is what I am confused about. I don't know how to call specific themes other than the global one. I wish it were just as easy as putting in that PHP code and telling it to load the other theme :/

Share this post


Link to post
Share on other sites

The current theme that I designed for Passtheboll, i designed using firefox, not even thinking of testing with internet explorer, and just today, I opened internet explorer and went there, and the whole site was not working properly. I want to set a temporary template for IE while i fix the current one to work in IE

Share this post


Link to post
Share on other sites

What issues did you have with it? I use IE and I've yet to experience any issues, whether it's from clicking things, the actual view of the site, etc.On my side everything is normal.It may also have to do with resolution, rather than internet client. I'm on 1280*1024.

Share this post


Link to post
Share on other sites

Internet Explorer allows for Conditional Comments to supply CSS to IE only Browsers.Would that work to serve the IE code to IE Browsers only?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.