Home Forums WoodMart support forum Feature Request: Exclude RSS Feed from lazy loading

Feature Request: Exclude RSS Feed from lazy loading

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #173068

    carolynwin
    Participant

    Woodmart Lazy loading breaks the RSS feed images that are consumed by Mailchimp, resulting in the Mailchimp emails containing blown up, blurry images of the base 64 encoded image (which looks to be about 10px x 10px).

    To fix, please add the is_feed() check to exclude the RSS images from the lazy loading code.

    Had to turn off lazy loading to fix, which is obviously not ideal for the rest of the website speeds.

    #173128

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for purchasing our theme and contacting our support center.

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    if( ! function_exists( 'woodmart_lazy_loading_rss_deinit' ) ) {
    	function woodmart_lazy_loading_rss_deinit() {
    		if ( is_feed() ) {
    			woodmart_lazy_loading_deinit(true);
    		}
    	}
    	add_action( 'wp', 'woodmart_lazy_loading_rss_deinit', 10 );
    }

    Regards

    #173729

    carolynwin
    Participant

    That worked great, thanks!!!

    #173757

    Artem Temos
    Keymaster

    Fine, you are welcome!

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Feature Request: Exclude RSS Feed from lazy loading’ is closed to new replies.