Webp in twitter

#324320
Viewing 14 replies - 1 through 14 (of 14 total)
  • Chandni
    Rank Math free

    Hello,

    Thank you for contacting Rank Math, and sorry for any inconvenience that might have been caused due to that.

    I agree that og:image and twitter:image are two different protocols. However, Rank Math recommends only the standard image types which are jpeg/jpg, PNG and GIF.

    In case you do upload a webp image type, then it will be applied to both the protocols, and it will throw an error for open graph.

    To summarize it all, when uploading images for your social meta, please upload the following image type jpeg/jpg, PNG and GIF to avoid any errors.

    Here is an article from our Knowledge Base that might come in handy to know more about Meta Box Social Tab in Rank Math:

    https://rankmath.com/kb/meta-box-social-tab/

    We hope this answers your question. Please let us know if you need help with anything else.

    Thank you

    Javi M
    Rank Math free

    Thanks for quickly answer.

    The rank math plugin allow upload image for a diferent social network.

    Why rank math not supported to diferent protocols? You can upload one image to Facebook Social Network and other image to Twitter Social Network.

    We only use twitter to share our contents.

    Can you consider this point to another releases please? Our objective it’s use webp in all web and we can to share tweets with webp image.

    Thanks.

    Hello,

    Rank Math isn’t recommending the webp image format as WordPress also isn’t allowing you to upload it by default. You can upload it if you allow the said format over the server settings.

    A workaround for this is to make use of our 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;
    });

    You may insert this in your theme’s functions.php file.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Javi M
    Rank Math free

    how can we fix this problem?!

    Javi M
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Javi M
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    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.

    Don’t hesitate to get in touch if you have any other questions.

    Anonymous
    Rank Math free

    Same issue here this is really backwards that WebP won’t be standard, any progress on this?

    Hello,

    This ticket is already attached to the submission so when our devs make a decision on this we are going to let you know here, until then we don’t have any ETA or any more information that we can share about this feature.

    Don’t hesitate to get in touch if you have any other questions.

    Anonymous
    Rank Math free

    Thanks Jaideep, any step by step workaround in the interim? the filter solution mentioned above is rather vague.

    Hello @javier15,

    Are you referring to the filter here?

    You simply need to change the variable $attachment_url and this should overwrite the current Twitter image URL for the meta tag.

    If you wish for this to be automated, I would suggest hiring a coder to create the logic for you.

    We have a detailed guide on how to apply our filter to your WordPress website: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Anonymous
    Rank Math free

    Thanks but that is not a solution my client is prepared to embrace so we might need to stop using this plugin unfortunately one would think that paying for a premium version would have this type of basic functionality covered.

    Hello,

    You can already use WebP images for the Twitter images by setting them inside the Social tab of Rank Math SEO Controls.

    This compatibility was added in the latest version of the plugin: https://rankmath.com/changelog

    If you have any other questions don’t hesitate to open a ticket about that particular situation.

    Thank you.

Viewing 14 replies - 1 through 14 (of 14 total)

The ticket ‘Webp in twitter’ is closed to new replies.