Hello
we don’t have really good results in page speed tests in mobile view
we would like to remove Fullwidth Easy Slider from loading only in mobile, not just hide it from css as I see in some post in the forum.
Is it possible?
Thank you
Mauro
Hey profumopuntoit,
Can you try to modify this file: slideshow_fullsize.php, you should find it in wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/ folder. Find this code at the bottom:
return $output;
and replace it with:
if ( !wp_is_mobile() ) {
return $output;
} else {
return '';
}
Hope this helps :)
Best regards,
Nikko
ok thank you it works
How to protect it from overrriding in the future updates? We do have a child theme
I have modified it like this
if ( !wp_is_mobile() ) {
return $output;
} else {
// return ‘‘;
return ”;
}
to display an image instead of the slider but it doesn’t work
It would be nice if it could be managed form the backoffice. Enfold doesn’t have a great score on page load on mobile view and this could be a little trick to improve load time
Thank you
Mauro
Sorry I adjusted the code to
if ( !wp_is_mobile() ) {
return $output;
} else {
return ‘‘;
// return ”;
}
and it works
But how to make it correctly responsive?
Thank you
Mauro
Hi!
Please give your image element a custom class as following
<img src="http://kriesi.at/wp-content/themes/kriesi/images/logo.png" class="my-logo"/>
To make the changes update proof, please refer to this post – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Regards,
Yigit
Hello,
is there an already existing class in Enfold to render an image to full browser width?
Thank you
Mauro