{"id":996,"date":"2020-08-28T19:47:18","date_gmt":"2020-08-28T23:47:18","guid":{"rendered":"https:\/\/websitepsychiatrist.com\/?p=996"},"modified":"2025-03-20T09:37:19","modified_gmt":"2025-03-20T13:37:19","slug":"allow-svg-file-uploads-in-wordpress","status":"publish","type":"post","link":"https:\/\/websitepsychiatrist.com\/allow-svg-file-uploads-in-wordpress\/","title":{"rendered":"Allow SVG file uploads in WordPress"},"content":{"rendered":"\n<p>We love SVG files at Website Psychiatrist. Once you go to vector graphics, you&#8217;ll never want to go back to raster for logos and layouts.<\/p>\n\n\n\n<p>Problem is, WordPress, for security reasons, won&#8217;t allow SVG files to be uploaded. So if you wanted to use them, you&#8217;d have to manage them outside of WordPress.<\/p>\n\n\n\n<p>No more! Thanks to the plugin &#8220;<a href=\"https:\/\/wordpress.org\/plugins\/safe-svg\/\" class=\"rank-math-link\" target=\"_blank\" rel=\"noopener\">Safe SVG<\/a>&#8220;. From their plugin page: Safe SVG is the best way to Allow SVG Uploads in WordPress! It gives you the ability to allow SVG uploads whilst making sure that they\u2019re sanitized to stop SVG\/XML vulnerabilities affecting your site. It also gives you the ability to preview your uploaded SVGs in the media library in all views.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We love SVG files at Website Psychiatrist. Once you go to vector graphics, you&#8217;ll never want to go back to raster for logos and layouts. Problem is, WordPress, for security reasons, won&#8217;t allow SVG files to be uploaded. So if you wanted to use them, you&#8217;d have to manage them outside of WordPress. No more! &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Allow SVG file uploads in WordPress\" class=\"read-more button\" href=\"https:\/\/websitepsychiatrist.com\/allow-svg-file-uploads-in-wordpress\/#more-996\" aria-label=\"Read more about Allow SVG file uploads in WordPress\">Read more<\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[159],"tags":[],"class_list":["post-996","post","type-post","status-publish","format-standard","hentry","category-future-problems","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/posts\/996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/comments?post=996"}],"version-history":[{"count":2,"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/posts\/996\/revisions"}],"predecessor-version":[{"id":998,"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/posts\/996\/revisions\/998"}],"wp:attachment":[{"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/media?parent=996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/categories?post=996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/websitepsychiatrist.com\/api\/wp\/v2\/tags?post=996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}