Okay
  Public Ticket #2067997
Lazyload Images
Closed

Comments

  •  1
    dimmisel started the conversation

    Hello guys.

    We try to configure lazyload from WP Rocket but it doesn't work because your theme seems to lazyload images already. If this is true, is there any way to disable it?

    Otherwise, our problem is the data-src attribute added in all images. Your theme use this for what?

    Thanks in advance

  • [deleted] replied

    Hi dimmisel,

    You can disable our lazyload plugin with this custom code:

    add_action( 'aurum_get_attachment_image_lazy_load', '__return_false' );
    This should work for you.

  •  1
    dimmisel replied

    Hi Arlind.

    When I apply your code, the product image in product page dissapears! 

    Could you please check for that and tell me if we can fixed that with your lazy load disabled?

  • [deleted] replied

    Hi dimmisel,

    Sorry I forgot to give you this CSS to also disable it in the CSS:

    .image-placeholder>img {
        opacity: 1;
    }
    
    I tried and it worked:

    medium
    (view large image)

  •  1
    dimmisel replied

    Perfect my friend. 

    This solved my problem.

    Cheers!

    You can close the ticket

  • [deleted] replied

    Happy to hear that everything is alright now

    I wish you a great day!

    P.S: If you like the theme, it would help us a lot if you could give us a five-star rating on Themeforest from your Downloads tab.

    A huge thank you from me and Laborator in advance.