Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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
    Mauro

    #801150

    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

    #805068

    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

    #805075

    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

    #805116

    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

    #805580

    Hello,
    is there an already existing class in Enfold to render an image to full browser width?

    Thank you
    Mauro

    #805606

    Hi Mauro,

    You can try adding “avia_image ” class to your image :)

    Best regards,
    Yigit

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.