• Resolved billygoldfang

    (@billygoldfang)


    Hey, I installed the plugin, was able to upload svg to media library, thumbnail displays, but when I set it as the image logo for the site is does not display. It’s just a blank space as if there is no logo on the site.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Daryll Doyle

    (@enshrined)

    Hi @billygoldfang,

    This plugin simply allows SVG uploads into the WordPress media library, it doesn’t do anything to make them work on the front end of the site, this is down to your theme to handle.

    That said, if you have access to the CSS, I’d imagine that setting a height and width on the SVG element would make it appear correctly!

    Cheers,
    Daryll

    Though I am obviously a WordPress fan (and also of Safe SVG!), WP themes are notoriously bad for SVG support. Daryll is right. I’m not sure of your CSS comfort, but a cheap CSS trick that you can try:

    img[src$=".svg"] { width: 100%; height: auto; }

    If the theme author is a wanker (and assuming he/she didn’t *inline style* [the horror] for inappropriate reasons, this might work but may come with consequences. Else move the above to the footer, if supported. YMMV.

    img[src$=".svg"] { width: 100% !important; height: auto !important; }

    I don’t know why ma.tt still has a war on SVG. Yeah, I’ve heard the argument. It is complete rubbish.

    (apologies if www.ads-software.com.com completely mangles the markup… Ironically, no Preview Post)

    ^By the way, the above wasn’t necessarily meant to be good advice, but rather a possible easy solution.

    EDIT: One that note, I see no img+svg tags in the page markup. 0_o

    • This reply was modified 6 years, 9 months ago by Daniel Hendricks. Reason: I wanted to
    Plugin Contributor Daryll Doyle

    (@enshrined)

    Thanks @hendridm ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘SVG Logo Not Displaying’ is closed to new replies.