• Resolved thibautdzebayi

    (@thibautdzebayi)


    Hi guys,

    I’m using shortpixel on my wordpress, which convert my jpg to webp, changing the markup to <picture></picture>. The problem is venobox won’t work with this markup.

    How could I solve that ?

    Thank you !

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter thibautdzebayi

    (@thibautdzebayi)

    Ok, i’ve just replaced

    return /[.](png|gif|jpg|jpeg)$/.test(this.href.toLowerCase());

    by

    return /[.](png|gif|jpg|jpeg|webp)$/.test(this.href.toLowerCase());

    in /plugins/venobox-lightbox/js/venobox-init.js

    Quick fix, not sure if it has some consistency, but it works !

    I really appreciate a native support for webp, as venobox is my favourite lightbox so far !

    Plugin Author neilgee

    (@neilgee)

    Yes that fix will do it, will include webp it in the next update.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WebP support’ is closed to new replies.