• Austin SEO
    • About TastyPlacement
    • TastyPlacement in the Press
    • Meet the Team
  • Blog
  • Services
    • SEO Services
      • WordPress SEO Service
      • Magento SEO Services
      • Conversion Rate Optimization
      • SEO Audit Service
      • Why Google Certification Matters
      • ChatGPT SEO & AI SEO Service
    • PPC & Google Ads
      • Google Ads & PPC Management
      • Remarketing Services
      • Display Ad Management
      • Facebook Ad Management
      • Google Ad Grants Management for Non-Profits
      • Adwords App Install Ad Management
      • Product Listing Ad Management
    • Analytics & Data
      • Analytics and Monitoring
      • Google Tag Manager Experts
      • Data Studio Development & Consulting
    • Social Media & Local Marketing
      • Social Media Marketing
      • Local SEO
    • Web Development
      • Mobile Website Design
      • WordPress Development
  • Case Studies
    • SEO Case Studies
      • SEO Case Study: We Beat Lowes, Then We Beat Home Depot
      • SEO Case Study: Total Domination in Houston for Medical Provider
    • Analytics Case Studies
      • Case Study: Updated Design Yields 43% Increase in Conversion Rate
      • Case Study: PPC Optimization Yields Tripled Conversion Rate
    • Social Media Case Studies
      • Social Media Case Study: Hundreds of New Customers From Core Facebook Campaign
  • Portfolios
    • Display Ad Portfolio
    • Design Portfolio
    • Infographic Portfolio
    • SEO Testimonials
  • Contact
    • New Customers: Get to Know Us
    • Customer Service & Support
    • Referral Program
    • SEO Training Seminars
    • Job: Paid Search/PPC/Adwords Analyst
    • Job: Local Digital Marketing Specialist
    • Job: SEO/Marketing Junior Analyst
    • Privacy Policy & Terms of Use
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu

How to Use SVG Files With WordPress

WordPress

First Question: Why Use SVG Files With WordPress?

Answer: File size. SVG Graphics Files can reduce image file size by 99%. With the use of SVG files, we’ve reduced the entire load size of https://tastyplacement.com to 311k at the time of this writing.

SVG stands for Scalable Vector Graphics. Because an SVG file is vector-based, the image is essentially a tiny text file that defines image elements by vector position, not by storing byte-hungry, pixel-by-pixel information.

Lower file size/weight means faster loading times on all devices. Faster loading means a better user experience, lower bounce rates, and higher search rankings (so says Google, my friends).

Here’s a sample, here is a PNG file, compressed as aggressively as possible. At 800 x 344 pixels, weighs 44k:

But what can be done with SVG? The following file, which is infinitely expandable in display size, comes in at a slender 8k:

Some Limitations (and Dangers) With SVG Files in the WordPress Environment

First of all, SVG files are not native to WordPress–the media gallery doesn’t recognize the files. We’ll return to that in a minute. Second, SVG files, while rendered by modern browsers as graphics, are really text/script files. SVG files can contain exploits. So, if you maintain a website that allows the public to upload SVG files, you’d be exposing your site and site visitors to exploits. Remember I said that.

There is a third danger, and that is that older browsers may not render SVG files at all, or in an unexpected way. Microsoft’s IE8 and older are reported to not support SVG rendering. But I care so little about pandering to IE, that I haven’t even bothered to test it.

Setting WordPress to Support SVG

Okay, so WordPress doesn’t natively support SVG. There are a ton of ways to set WordPress to accept SVG files but most are not secure, and most do not enable thumbnails in the WordPress media gallery. Solution? There is a plugin that addresses both: the Save SVG plugin (link to repository files). Safe SVG does two things: it offers basic security sanitization, and it enables management of SVG files in the WordPress media gallery.

Next Steps With SVG

SVG files can be challenging to work with, they can’t be edited with traditional graphics software like Gimp and Photoshop. An SVG is more akin to an Adobe Illustrator file. Photographs aren’t suitable for SVG, but logos and patterns can be adapted to SVG quite easily.

The SVG sample above was created with Inskape SVG editing software. I struggled with that program for about the first hour but then found my sea legs and made some good progress. The “W” WordPress logo I got from the WordPress media kit and overlayed it on the pattern image with Inkscape.

Good luck with this–it’s a real benefit if your goals are site loading speed for your WordPress site.

July 6, 2017/by Michael David
https://tastyplacement.com/wp-content/uploads/wordpress-tutorial.svg 0 0 Michael David https://tastyplacement.com/wp-content/uploads/tastyplacementneedssvg.svg Michael David2017-07-06 15:25:142018-10-19 12:45:02How to Use SVG Files With WordPress
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tutorials & Case Studies

  • Analytics
  • Case Studies
  • Infographics
  • Local Maps and Local Listings
  • Magento
  • Mobile SEO
  • Our Book: SEO for Wordpress
  • PPC
  • Programming & PHP
  • SEO
  • SEO Power Tools
  • SEO Resources
  • Social Media Marketing
  • Web Design
  • WordPress

Our Most Recent Tutorials & Case Studies

  • Tired of Expensive Website Uptime Monitoring Services? Build Your Own Uptime Monitor, 100% Free
  • Determining how and when Google Analytics 4 collects website event data
  • Infographic: Fonts & Colors That Drive the World’s Top Brands
  • Research Shows a 23% Divergence Between UA and GA4
  • How to Track Google Analytics Conversions on BuilderTrend’s iFrame Form

Search

Search Search

Archives & Tutorial Categories

  • Analytics
  • Case Studies
  • Infographics
  • Local Maps and Local Listings
  • Magento
  • Mobile SEO
  • Our Book: SEO for Wordpress
  • PPC
  • Programming & PHP
  • SEO
  • SEO Power Tools
  • SEO Resources
  • Social Media Marketing
  • Web Design
  • WordPress

Austin SEO Company, TastyPlacement

Click Here to Explore a Free Consultation

Our Most Popular Services

  • Austin SEO [Home]
  • WordPress SEO Service
  • PPC Management
  • Social Media Marketing
  • Analytics and Monitoring
  • Remarketing Experts
  • Conversion Rate Optimization

Let’s Talk: How to Get in Touch With Us

TastyPlacement Inc.
1214 W. 6th St. Ste 201
Austin, TX 78703
Tel: (512) 535-2492


Get Directions or Read Our Awesome Reviews on Google Maps
© Copyright - Austin SEO Company | TastyPlacement
  • Link to Facebook Link to Facebook Link to Facebook
  • Link to Instagram
  • Link to LinkedIn Link to LinkedIn Link to LinkedIn
  • Link to Pinterest
Link to: The Truth About WordPress Hosting Link to: The Truth About WordPress Hosting The Truth About WordPress Hosting Link to: Google’s In-Market Audiences is Pure Gold for Auto Dealers and You’re Missing it Link to: Google’s In-Market Audiences is Pure Gold for Auto Dealers and You’re Missing it Google’s In-Market Audiences is Pure Gold for Auto Dealers and You’re...
Scroll to top Scroll to top Scroll to top