• Resolved richardisaacphoto

    (@rich135792468)


    Hi,

    I am using only the Lazy Loading function with Autoptimize, however have realised that it is not working well with the slidehows (under portfolios) on my homepage.
    In most cases only a portion of the image is shown – a thin horizontal strip. Instead of the full image.

    I have currently disabled the plugin.

    Is there a fix?

    Regards,

    Richard

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Hmm … AO has an exclusion field that could come in handy, but the problem is the images in the slideshow currently don’t seem to have a specific class-value that could be used to target them.

    Maybe the slideshow-plugin you use allow you to add a class for all images in a slideshow, in which case adding notlazy would suffice?

    Thread Starter richardisaacphoto

    (@rich135792468)

    Thanks for the reply.
    Would I add a class value using CSS? Sorry I’m not very technical.
    I think my builder allows me to add CSS to these portfolios – would you suggest that route?
    ie class=notaolazy

    Thanks for your assistance,

    Best

    Richard

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    If you can add a CSS class to individual images in the portfolio slider, then yes, but not with CSS as such (because CSS defines styles for classes, but the classes are set in HTML).

    Thread Starter richardisaacphoto

    (@rich135792468)

    Sorry I don’t understand.

    If I can find a way of adding the HTML what would it be?

    class=notaolazy for instance still?

    What would I enter in the AO plugin exclusion?
    class=notaolazy
    or
    notaolazy

    Thanks

    Richard

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, if you have this simplified code for a slideshow;

    <div id="portfolio-slider-19796" class="slideshow-wrap">
    	<ul class="slideshow" data-id="portfolio-slider-19796" data-autoplay="4000" data-effect="slide" data-speed="500">
    		<li>
    			<a href="https://www.richardisaac.co.uk/project/portraiture/">
    				<img src="https://www.richardisaac.co.uk/wp-content/uploads/2019/09/portrait-photography-london-freelance-photographer-richard-isaac-09-3200-1-1600x1065.jpg" class=" wp-post-image wp-image-23963" />
    			</a>
    		</li>
    		<li>
    			<a href="https://www.richardisaac.co.uk/project/portraiture/">
    				<img src="https://www.richardisaac.co.uk/wp-content/uploads/2019/09/portrait-photography-london-freelance-photographer-richard-isaac-05-3200-1-1600x2404.jpg" class=" wp-post-image wp-image-23967" />
    			</a>
    		</li>
    	</ul>
    </div>

    then in each <img tag you would have to add notlazy to the class attribute value, e.g.;

    
    <img src="https://www.richardisaac.co.uk/wp-content/uploads/2019/09/portrait-photography-london-freelance-photographer-richard-isaac-05-3200-1-1600x2404.jpg" class=" wp-post-image wp-image-23967 notlazy" />

    it that is done, AO will automatically exclude that from lazyload, nothing to add to the exclusion list.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Lazy Loading issues with image slideshows’ is closed to new replies.