WebP support

#326678
  • Resolved Aref Mosaffaei
    Rank Math free

    Rank Math is great. It’s easy to use and has a lot of useful features. However, it really really needs to add WebP support. Even WordPress added it in 5.8. There’s absolutely no reason not to support it. I share my products on Twitter n Telegram. They both support WebP to some extend, at least for cards. Who cares if Facebook likes WebP or not, let us choose.
    I used to manually add the WebP to the plugin’s code in class-image and class-common and it would work. Now even that solution doesn’t work. I’m not a developer but I know it’s super easy for your devs to add the WebP support. Please do it I don’t wanna change my Seo plugin 🙁

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    We are going to add this to the internal list of suggestions and if the dev team decides to implement the support for WebP images for Twitter we’ll also let you know in this ticket.

    For now, a workaround for this is to make use of a filter.
    Please see my example code here:

    add_filter( "rank_math/opengraph/twitter/image", function( $attachment_url ) {
        $attachment_url = 'https://yourdomain.com/your-image-path.webp';
    	return $attachment_url;
    });

    Have a look at this knowledge base article to understand how to add filters to your site – https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Looking forward to helping you. Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘WebP support’ is closed to new replies.