WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Opengraph: SVG to PNG (1 post)

  1. alternn
    Member
    Posted 1 year ago #

    Hello,

    I use SVG images extensively with a fallback for PNG images (at the same URLs).

    As Facebook does not support SVG yet I'd like to make all SVG be presented as PNGs in the opengraph metatags. Now I use:
    $img = str_replace("svg", "png", $img);
    in class-opengraph.php

    Would it be possible to do it in a more elegant way in theme functions for instance? (npw every plugin update removes it)

    http://wordpress.org/extend/plugins/wordpress-seo/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic