• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

SVG For older browser's

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › SVG For older browser's

This topic is: resolved

Tagged: SVG

  • This topic has 4 replies, 2 voices, and was last updated 8 years, 12 months ago by horace1.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 12, 2017 at 10:14 am #202934
    horace1
    Member

    Hi,

    Is there a way to allow older browsers to view SVG images, Some sort of fallback method?

    March 12, 2017 at 4:02 pm #202955
    Victor Font
    Moderator

    You could reference a PNG or JPG from your src attribute and use a srcset attribute to reference the SVG. Only supporting browsers will load the SVG — older browsers will load the PNG instead:

    <img src="equilateral.png" alt="triangle with equal sides" srcset="equilateral.svg">


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 13, 2017 at 7:14 am #202992
    horace1
    Member

    Thanks so much, is there one which you could use from a background image as it was more for the logo i was trying to make a svg and then make a png in in the fallback.

    March 13, 2017 at 7:17 am #202993
    Victor Font
    Moderator

    It depends in the image's subject. Try them both and then pick the one that looks the best at scale.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    March 13, 2017 at 8:50 am #202999
    horace1
    Member

    Thanks,

    I found a fallback from Bill Erickson

    SVG Logo with PNG Fallback

    but I just ended up putting it like this

    background: url(images/logo.png) no-repeat;
    background-image: url(images/logo.svg), none;

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘SVG For older browser's’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble