• Resolved samthedev

    (@samthedev)


    Hello SPAI,

    On https://kiawahislandgetaways.com/vacation-rentals/the-ocean-blue-at-seascape/ , notice the background image behind the “play” button is super blurry. We have been looking to exclude that image from SPAI without success

    We added the folliwing selector under Excluded selectors > Leave out completely :

    .ldx-property-slide.video-slide .ldx-carousel-image

    But SPAI still resizes the image. We then tried to exclude the individual pages by adding the following path under Excluded URLs :

    /vacation-rentals/

    This doesn’t work either.

    Are we missing something here?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi @samthedev,

    That image is coming from Vimeo, so it’s not optimized by ShortPixel. That’s why nothing happens if you exclude it.

    The image is https://i.vimeocdn.com/video/1446401614-4235877a84d8fe5697689a2bcda1646060f2f0157eacf30b88949f781e810c0c-d_640?tw=2772&webp=1
    and it’s blurry because it’s very small, and the placeholder very big.

    I hope that helps!

    Thread Starter samthedev

    (@samthedev)

    I understand. Apparently we had written some code to load a higher resolution image, but it wasn’t working doe to a type. It’s not the best, but it’s working perfectly well now. Thank you for your time!

    add_action( 'wp_footer', function () {
    	
    if ( is_singular( 'ldx-properties' ) ) {
                                        
    ?>
    
    <script>
    	
    	jQuery(document).ready(function( $ ){ 
    		
    		var bg = $(".ldx-property-slide.video-slide .ldx-carousel-image").css("background-image");
    		
    		bg = bg.replace(/.*\s?url\([\'\"]?/, '').replace(/[\'\"]?\).*/, '');
    		
    		var bglarge =  bg.replace("-d_640?", "-d_1920?");
    		
    		$(".ldx-property-slide.video-slide .ldx-carousel-image").css("background-image", "url(" + bglarge + ")");
    	
    	});
    	
    </script>
    
    <?php }
    	
    });
    Plugin Support Gerard Blanco

    (@sixaxis)

    You are welcome!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Exlusions not working’ is closed to new replies.