-
AuthorPosts
-
May 29, 2017 at 1:14 pm #801066
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
MauroMay 29, 2017 at 5:06 pm #801150Hey 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,
NikkoJune 7, 2017 at 1:19 pm #805068ok thank you it works
How to protect it from overrriding in the future updates? We do have a child themeI 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 workIt 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
MauroJune 7, 2017 at 1:30 pm #805075Sorry 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
MauroJune 7, 2017 at 3:24 pm #805116Hi!
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,
YigitJune 8, 2017 at 2:45 pm #805580Hello,
is there an already existing class in Enfold to render an image to full browser width?Thank you
MauroJune 8, 2017 at 3:27 pm #805606 -
AuthorPosts
- You must be logged in to reply to this topic.
