[Resolved] Update src and scrset logo attributes to include data-src and data-srcset

Home Forums Support [Resolved] Update src and scrset logo attributes to include data-src and data-srcset

Home Forums Support Update src and scrset logo attributes to include data-src and data-srcset

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1336781
    vast

    The generate_logo_output filter offers the option to alter the HTML code for the logo -https://docs.generatepress.com/article/generate_logo_output/.

    What is the equivalent filter to dynamically add data-src and data-srcset as well as custom CSS to the image attributes? This is to utilize libraries such as lazysizes.

    #1337097
    David
    Staff
    Customer Support

    Hi there,

    we don’t recommend using lazy loading on logos – they generally cause issues such as layout shifting on initial load.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.