<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>svg on {bjørn:johansen}</title>
    <link>https://bjornjohansen.com/tag/svg/</link>
    <description>Recent content in svg on {bjørn:johansen}</description>
    <generator>Hugo -- 0.118.2</generator>
    <language>en-US</language>
    <lastBuildDate>Thu, 26 May 2016 20:02:07 +0000</lastBuildDate>
    <atom:link href="https://bjornjohansen.com/tag/svg/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SVG uploads in WordPress (the Inconvenient Truth)</title>
      <link>https://bjornjohansen.com/svg-in-wordpress/</link>
      <pubDate>Thu, 26 May 2016 20:02:07 +0000</pubDate>
       <guid isPermaLink="false">urn:uuid:30303135-3439-5535-b863-313431636535</guid> 
      <description>&lt;p&gt;Enabling uploads of SVG files in WordPress is quite easy, and there is a tonne of posts on the Interwebs explaining how you do it. Usually along the lines of:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;function add_svg_to_upload_mimes( $upload_mimes ) {
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;	$upload_mimes[&amp;#39;svg&amp;#39;] = &amp;#39;image/svg+xml&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;	$upload_mimes[&amp;#39;svgz&amp;#39;] = &amp;#39;image/svg+xml&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;	return $upload_mimes;
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;add_filter( &amp;#39;upload_mimes&amp;#39;, &amp;#39;add_svg_to_upload_mimes&amp;#39;, 10, 1 );
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And that’s pretty much it.&lt;/p&gt;
&lt;p&gt;Except it is not.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Allow SVG uploads to WordPress when behind Sucuri CloudProxy</title>
      <link>https://bjornjohansen.com/svg-upload-cloudproxy/</link>
      <pubDate>Wed, 25 May 2016 19:29:02 +0000</pubDate>
       <guid isPermaLink="false">urn:uuid:32346432-3434-5362-b664-313863323232</guid> 
      <description>Uploading SVG files to WordPress when you’re behind the Sucuri CloudProxy Web Application Firewall isn’t that straightforward, but it is possible.</description>
    </item>
  </channel>
</rss>
