• Resolved katerila

    (@katerila)


    Galleries are not showing up on mobile on any of my posts. It’s just white space but if I tap on the white space it opens the image lightbox of the gallery that’s supposed to be there. I checked two different iPhones using Safari.

    I read on a similar thread that it could be a problem with lazy load plugin, but i really need my lazy loading as it makes my site run faster.

    Is there any way to make my galleries work even with lazy loading enabled?

    thanks!

    • This topic was modified 4 years, 10 months ago by katerila.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @katerila,

    Can you please let me know what lazy load plugin are you using?
    Have you tried turning it off? Does it work with it disabled?
    Also please keep in mind that FTG has a Lazy Load option as well.
    I recommend using that instead and see if it fixes it.
    You can find it in your gallery > Advanced > loading method.

    Warmly,
    Mihaela

    Thread Starter katerila

    (@katerila)

    Hi Mihaela,

    I’m using WP Rocket with Lazy Loading enabled. I paid someone to optimize my entire site for speed a while ago and it’s working great so I don’t really want to mess with his settings.

    If I turn off WP Rocket’s lazy load and enable lazy load on FTG, wouldn’t that mean I’d only have lazy load on FTG photos but not on the rest of my photos? Is FTG incompatible with lazy load settings from other plugins?

    thanks!
    Katerina

    Hello Katerina,

    The only solution would be to disabled WP Rocket’s lazy load from those specific images.
    To do this please add this code in your theme’s function.php file at the end.

    function rocket_lazyload_exclude_class( $attributes ) {
    	$attributes[] = 'data-class='item'';
    
    	return $attributes;
    }
    add_filter( 'rocket_lazyload_excluded_attributes', 'rocket_lazyload_exclude_class' );

    This should fix it.

    Thank you,
    Mihaela

    Thread Starter katerila

    (@katerila)

    This code took my site down :/ Do you have any other solutions?

    Hello @katerila,

    Apologies for the inconvenience!
    I’ve made a change to that code, and instead of adding it to your theme’s functions.php I have made it into a small plugin so you no longer have to edit that file.
    Please download it from here: https://www.dropbox.com/s/glbg57qijioat4u/wp-ftg-fix.zip?dl=0
    And then go to your dashboard > Plugins > add new > install and activate it.
    It should work now.

    Thank you,
    Mihaela

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Galleries not showing on Mobile’ is closed to new replies.