- This topic has 11 replies, 2 voices, and was last updated 3 years, 9 months ago by David.
-
AuthorPosts
-
July 7, 2020 at 7:17 am #1355207Jeremy
Hello,
I hope you can help me.
I noticed that my site had a 99% bounce rate when viewed through the IE9 browser.
I suspect that my site is not loading correctly there as visitors bounce in 3 seconds.
In my child theme additional CSS I have the following code which I suspect could be the issue:/* GeneratePress Site CSS */ .inside-article,
.sidebar .widget,
.comments-area {
border: 1px solid rgba(232, 234, 237, 1);
box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}/* Featured widget */
.sidebar .widget:first-child {
background-color: #FFFFFF;
color: #000000;
}.sidebar .widget:first-child .widget-title,
.sidebar .widget:first-child a:not(.button) {
color: #000000;
}.sidebar .widget li {
margin-bottom: 15px;
}.button.light {
background: #fff;
color: #000;
}.button.light:hover {
background: #fafafa;
color: #222;
}.separate-containers .page-header {
background: transparent;
padding: 20px 0;
}.page-header h1 {
font-size: 30px;
}
@media (min-width: 769px) {
.post-image-aligned-left .post-image img {
max-width: 300px;
}} /* End GeneratePress Site CSS */
If so, could you please advise if I need to change that code anywhere or if there is anything I can add to improve how my site loads across devices including IE9?
Many thanks
JeremyJuly 7, 2020 at 7:31 am #1355227DavidStaffCustomer SupportHi there,
Microsoft ended support for IE8,9 and 10 over 3 years ago.
And as much we like to develop with backwards compatibility, and GP is built to ‘work’ with those browsers, we cannot support custom development for IE8,9 or 10.But looking at your custom CSS – i think that is highly unlikely to be the cause of the bounce rate. None of that CSS would have a negative effect if it were unsupported by the browser – it just simply would not apply.
It’s more likely to do with other scripts running on the site … or some other reason that would be as bizarre as the reason for using IE9 in the first place.
Unless you have a huge IE9 user base i would probably move focus elsewhere.
July 7, 2020 at 7:41 am #1355232JeremyHello David,
Thanks for your response and makes sense.
Its over 15,000 visitors per month so am keen to get it resolved ideally.
That being said do you think I need to edit the CSS? I am thinking of adding the following code:
@media (max-width: 768px) {
/* CSS in here for mobile only */
}
@media (min-width: 769px) and (max-width: 1024px) {
/* CSS in here for tablet only */
}
@media (min-width: 1025px) {
/* CSS in here for desktop only */
}I got this from your support article here: https://docs.generatepress.com/article/responsive-display/#ie10-specific-styles
Does this need to be changed somewhat?
Thanks!
JeremyJuly 7, 2020 at 7:53 am #1355416DavidStaffCustomer SupportIt is this CSS that you need to add around you styles for 10+ support:
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) { /* IE10+ specific styles go here */ }
https://docs.generatepress.com/article/responsive-display/#ie10-specific-styles
July 7, 2020 at 7:56 am #1355420JeremyOkay thanks fort all your help David and promptly response!
I have added this code to my additional CSS along with the media code, so my additional CSS file now looks like this:
/* GeneratePress Site CSS */ .inside-article,
.sidebar .widget,
.comments-area {
border: 1px solid rgba(232, 234, 237, 1);
box-shadow: 0 0 10px rgba(232, 234, 237, 0.5);
}/* Featured widget */
.sidebar .widget:first-child {
background-color: #FFFFFF;
color: #000000;
}.sidebar .widget:first-child .widget-title,
.sidebar .widget:first-child a:not(.button) {
color: #000000;
}.sidebar .widget li {
margin-bottom: 15px;
}.button.light {
background: #fff;
color: #000;
}.button.light:hover {
background: #fafafa;
color: #222;
}.separate-containers .page-header {
background: transparent;
padding: 20px 0;
}.page-header h1 {
font-size: 30px;
}
@media (max-width: 768px) {
/* CSS in here for mobile only */
}
@media (min-width: 769px) and (max-width: 1024px) {
/* CSS in here for tablet only */
}
@media (min-width: 1025px) {
/* CSS in here for desktop only */
}
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
/* IE10+ specific styles go here */
}} /* End GeneratePress Site CSS */
Please let me know if this looks okay, or if you think it will cause any issues loading my site across different devices or else I’ll close off the ticket as resolved.
Thanks! ๐
July 7, 2020 at 8:32 am #1355461DavidStaffCustomer SupportYou’re CSS needs to go inside the IE10 media query – so it should look like this:
@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) { /* IE10+ specific styles go here */ /* GeneratePress Site CSS */ .inside-article, .sidebar .widget, .comments-area { border: 1px solid rgba(232, 234, 237, 1); box-shadow: 0 0 10px rgba(232, 234, 237, 0.5); } /* Featured widget */ .sidebar .widget:first-child { background-color: #FFFFFF; color: #000000; } .sidebar .widget:first-child .widget-title, .sidebar .widget:first-child a:not(.button) { color: #000000; } .sidebar .widget li { margin-bottom: 15px; } .button.light { background: #fff; color: #000; } .button.light:hover { background: #fafafa; color: #222; } .separate-containers .page-header { background: transparent; padding: 20px 0; } .page-header h1 { font-size: 30px; } }
July 7, 2020 at 8:36 am #1355463JeremyThanks David, but what about the remaining media code, is that all good or does that need to go inside a query too?
Sorry for the all questions and appreciate the support. I’m pretty new to this so if you wouldn’t mind laying out the full code I’m sure we will get there sooner!
July 7, 2020 at 8:44 am #1355473DavidStaffCustomer SupportNo apologies necessary.
No you don’t require the other @media queries.All they are is a conditional wrapper – so IF the condition is met then the CSS gets applied.
What i did was make it so all your Custom CSS only gets applied when the IE10+ conditions are met.July 7, 2020 at 8:54 am #1355485JeremyThat makes sense and will update the code accordingly,
I just want to ensure my site loads optimally on all devices and mobile, hence why I added those media queries. But if you do not think they are necessary, I will take them out and add the code you provided.
Thanks!
July 7, 2020 at 8:59 am #1355501DavidStaffCustomer SupportThey are only necessary if you add something inside them ๐
You’re welcome
July 7, 2020 at 9:02 am #1355506JeremyThanks for all your help today David!
July 7, 2020 at 9:03 am #1355507DavidStaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.