Why is it still accessed from IE (Internet Explorer)? What should I do with a WordPress site?
- Published:
category: WordPress

Basically, how are people who create homepages and run blogs displayed on their own browsers? I think that even if I check it, I have not checked the display on other browsers.
I usually use “Google Chrome”, so I don’t basically check it with other browsers. How about the only other browser? I have a chance to see the Chromium version of Microsoft Edge used by my family. I just happen to check this because someone close to me is using it (I have a chance to see it), and since the Edge is also based on Chromium like Chrome, basically there is no inconvenience, so there is nothing wrong with it. ..
But if this is another site, the story is different. The other day, I was asked to “fix the part that is not displayed in IE” along with various customizations.
I answered, “Isn’t it necessary to support legacy (old / non-mainstream) browsers anymore?”, But the other party said, “I have about 10% access from IE, so I’d like to ask if possible.” Reply. Certainly there was something wrong with checking with IE, so I responded while thinking “I will not use it soon …”.
Then, I was curious about how much IE access to this site, and when I looked it up, about 5% of the total was accessed from IE.
I was wondering “Why ???”, so this time I investigated a little more about the current state of “Internet Explorer”.
Conclusion: The reality that “Internet Explorer” is not a legacy browser
It was completely blue sky. Looking at Microsoft’s homepage, it seems certain that development will be stopped, but there was no mention of end of support anywhere. By the way, it seems that there was no such rumor …
So, when I googled about “Internet Explorer” and looked at it in various ways, it turned out that “Internet Explorer” was bundled up to Windows 8 which is relatively still used. Naturally I thought it was because Edge came out, but it wasn’t.
Also, even in Windows 10, although the standard browser is Edge, the program itself is installed so that IE users will not be confused, and it can be called from Program Files, so “What is Edge?” In some cases, people are looking for IE and using it.
Until now, I knew that there was some access from IE, but I thought lightly that “I’m accessing from an old computer in the WinXP era!”, But I see, it is bundled with Windows 8 or later. Since the version of IE is 11, is it almost 100% final even if accessed from IE? I’m a little convinced that it’s version 11.
reference:Microsoft Windows Wiki/Internet Explorer Wiki
Also, although it is instructed to use Microsoft Edge for the time being, there is also an official Internet Explorer download page, so I think that it will not be zero for a while.
In that case, the fact that “the browser is no longer in use, so there is no need to take any action” will be shaken.
Then what do you do? For WordPress! I will introduce it with a limitation.
What to do with IE support on sites operated by WordPress?
To be precise, what should you do with the theme you are using, not how to deal with it in WordPress? However, I think it is important to understand how your site is actually displayed in IE and to decide what to do with the part that has a problem in display or operation.
First of all, can IE be used on the current personal computer? about.
As mentioned above, IE is installed on Windows 10 and is ready to use. Click the Windows mark and there is a shortcut in “Windows Accessories” so you can’t find it at a glance, so please visit your own site.
If you display it in IE and think, “Well, that’s a little, but it’s not that you can’t see it, isn’t it okay?”, I don’t think you need to do anything, but it’s like displaying something new. It is recommended to check again when a plug-in is installed.
I was surprised to see it on the contrary! !! I have to do something! If you feel that, “OK, I’ll try to display it properly in any browser!”, But it seems that it is displayed without problems in other browsers, so it is forcibly supported including IE. You don’t have to let it.
Therefore, I will introduce two methods to apply functions and design elements only in the case of IE (Internet Explorer).
Stop things that don’t work in IE
WordPress has global variables that make decisions across sites. There is a judgment as to whether the accessed browser is IE, and if you use it, you can easily create content that outputs only IE.
As a code, just enclose the description to be inserted in the theme PHP file in the following.
$is_IE = ( $is_macIE || $is_winIE );
if(!is_IE){
Write code here
}
On the contrary, to write something limited to cases other than IE
$is_IE = ( $is_macIE || $is_winIE );
if(!$is_IE){
Write code here
}
※It seems that is_IE alone works, but just in case, it’s for both Windows and Mac! It seems more certain if you declare it (the difference is unconfirmed).
As an aside, like the two codes in ↑, conditional branching is paradoxical if you add a “!”, So it is convenient, but if you do not decide which one to use as a reference, you will make a mistake when correcting it later. Be careful as it will cause it.
Also, since there are many global variables, please also see Codex of WordPress.
Change the display method only in IE
I think that this is quite different between IE and other browsers. Especially in the method of displaying columns side by side, in most cases IE often collapses.
In such a case, if you write a description that applies only to IE and write a design element for IE, you can have other browsers handle it only for IE.
The method is simple, just write the design instructions for IE in the part sandwiched by the following code.
/********** Design elements that apply only for IE **************/
@media all and (-ms-high-contrast: none) {
Write design instructions here that apply only for IE
}
This isn’t all OK, but it’s enough for the time being.
How was it?
It is possible to branch (switch) in an unexpectedly simple way, so please use it if you like.
However, it is still quite difficult to make it 100% compatible, so if you use the following plug-in and let us know that it may not be displayed properly in this environment, a person who visited with IE said, “It’s a strange page to display … It may be possible to reduce the misunderstanding (it is a plug-in that is also used on this site as of December 2020).
※Of course, this plug-in also uses the “is_IE” variable to determine whether it is IE, so it may be a good idea to take a look.
- Tags:
- Internet Explorer
Post Author: Knowledge Base Admin