Hi,
For some reason any custom css that I’ve written to reduce font sizes and page styling across different devices has stopped working.
It’s fine on desktop and iPad, but not on mobile, but it was all fine yesterday? I’ve started all css entries with, for example:
@media only screen and (max-width: 768px) {
@media only screen and (min-width: 769px) and (max-width: 989px) {
@media only screen and (min-width: 990px) {
I did install WP Fastest Cache yesterday and the site was functioning okay, but not today so I’ve removed it with no effect. I’ve cleared the cache on my mobile and also tried different mobile browsers, but again with no effect.
Would you mind taking a look please, site details in private section.
Thanks in advance,
Johnny
Hey StormWebDesign,
Thanks for the login details. Could you point out an example which is not working on mobile? I had a quick look in your Quick CSS box and it looks like you have open media queries, for example:
@media only screen and (min-width: 768px) {
#top .logo img {
width: auto;
height: auto;
max-height: 100%;
margin: 24px 0 0 0;
}
/* Logo on Scroll */
.header-scrolled .logo img, .header-scrolled.header-scrolled-full .logo img {
max-height: 25px !important;
margin-top: 8px !important;
}
You need to close all queries properly, otherwise all CSS within them will only apply to that screen width.
Best regards,
Rikard
Hi Rikard,
Thank you for taking the time to look into this. Ive been through the CSS several times and didn’t spot that. I appreciate the time you took to provide your feedback. Excellent support.
Johnny
Hi Johnny,
Thanks for your kind feedback. So your CSS is working now after you fixed the open media query?
Best regards,
Rikard
Hi StormWebDesign,
We’re glad to hear that :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko