Tagged: 404, custom.css, hide on mobile
Before our Enfold version-update we had some content that we did not want to display on mobile.
On purpose we did not configure this with the WordPress functionality ‘Screen Options’ as this takes too much toll on our page performance.
So we added the following custom CSS:
/* #Show only on desktop */
@media only screen and (max-width: 990px) {.only-desktop {display: none !important;
}
}
And used a div class for certain content that we did not want to display on mobile:
<div class="only-desktop">Lorum Ipsum</div>
This worked in the old version, and after updating it gives a 404 error when opening the page on mobile.
Any suggestions or ideas what to look for here?
Hi there,
It is fixed already. I think it was something else (although still unknown for me). When I deleted all the code and entered it again it seemed to be resolved.
Best,
Scarlet