Tramposch 1 Report post Posted January 10, 2009 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
truefusion 3 Report post Posted January 10, 2009 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
Tramposch 1 Report post Posted January 10, 2009 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
rpgsearcherz 5 Report post Posted January 10, 2009 Out of curiosity, why are you wanting different templates for IE and Firefox or whatever anyways?Is it due to incompatibilities or something? Share this post Link to post Share on other sites
Tramposch 1 Report post Posted January 10, 2009 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
rpgsearcherz 5 Report post Posted January 10, 2009 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
Tramposch 1 Report post Posted January 11, 2009 I will check again, it might have been a temporary error. But I still would like to have a different theme for IE, though. Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted January 11, 2009 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