-
AuthorPosts
-
October 24, 2016 at 3:48 pm #703325
Hello,
My previous thread got closed without a solution (I posted it was fixed but meant the login details)
https://kriesi.at/support/topic/layer-slider-multiple-jquery-issue-and-not-hiding-on-mobile/Hello Enfold,
I’m getting warnings from the layerslider:
Multiple jQuery issue.
It advices to “put JS includes to body”. At the page the layerslider warns to only do this with enough experience because it can break the site.
So how big are the risks?Also the layer slider does not completly hide on mobile. The place of the layerslider is now blank instead of gone.
thanks
-EDIT-
Also the layer slider on desktop doesn’t load all the time. It stays white a lot of the time
Mostly on chrome. But it is starting to get worse. It hardly ever loads. Only after a hard refresh or mulitple hard refreshes-EDIT2-
Removing the layerslider.js files from minify worked to get the slider back. But it still leaves a blank space on mobile.-EDIT3-
THis works:
/* All Mobile Sizes (devices and browser) */
@media only screen and (max-width: 767px) {
.avia-layerslider {
display: none !important;
}
}-EDIT 4-
Is it possible to not only hide the layerslider on mobile but completly remove it?
The .js is not minified now and the google pagespeed rank for mobile went down a lot because of scripts that aren’t used now- This topic was modified 8 years, 2 months ago by Wolf.
October 27, 2016 at 4:58 am #704644Hey WolfvanHaeren,
Sorry I was the one who closed, I thought it was fixed when I saw your last reply.
Caching plugin might be causing it. Try to disable the caching plugin and test if the issue still persists. If it works consistently, you can either try to change the settings of w3 total cache or you try other caching plugin.
Regarding the layerslider I think it’s possible but might be tricky since you will be editing core files which will be overwritten during theme update.
Best regards,
NikkoNovember 15, 2016 at 9:35 am #712369I changed the settings and it works now. I would still like to find a way to completly remove it from mobile because of speed etc.
November 15, 2016 at 9:56 am #712374Hey!
You would need to hire a freelancer, who will need to modify the WordPress Enqueue method to make it work different for mobile devices
Cheers!
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.