Skip to content
GeneratePress
  • Home
  • Premium
  • Site Library
  • Install
  • Help
    • Documentation
    • Support Forum
    • Contact
  • Log In
GeneratePress
  • Home
  • Premium
  • Site Library
  • Install
  • Help
    • Documentation
    • Support Forum
    • Contact
  • Log In
  • Log In
  • Free Support

[Resolved] How to add a site logo in SVG

Home › Forums › Support › How to add a site logo in SVG

  • This topic has 2 replies, 2 voices, and was last updated 5 years, 6 months ago by Peter Islin Nielsen.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 20, 2015 at 6:51 am #130865
    Peter Islin Nielsen

    Hi! Love working with this theme… But, is there a way to upload a site logo in SVG format? WordPress doesn’t allow SVG files to be uploaded in the media library by default, so can it be done without coding the logo URL directly in my header.php file.

    Thanks in advance ๐Ÿ™‚

    August 20, 2015 at 8:03 am #130869
    shorshe

    This is a wordpress core issue, as far as I know.
    You could add the SVG-Mimetype to the functions.php of your theme:

    add_filter( 'upload_mimes', 'generate_svg' );
    function generate_svg( $svg_mime ) {
        $svg_mime['svg'] = 'image/svg+xml';
        return $svg_mime;
    }

    https://css-tricks.com/snippets/wordpress/allow-svg-through-wordpress-media-uploader/

    or use a plugin i.e:
    https://wordpress.org/plugins/svg-support/

    August 21, 2015 at 12:16 am #131015
    Peter Islin Nielsen

    Thanks, I’ll try that. And yes, the SVG upload restrictions has nothing to do with GeneratePress โ€“ it’s due to some security measures in WordPress.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Common Issues

  • Missing style.css
  • Updating errors
  • Plugin Install Failed

Useful Articles

  • Installing GP Premium
  • Installing GeneratePress
  • How to add CSS
  • How to add PHP

GeneratePress

  • About
  • Premium
  • Site Library
  • Gutenberg
  • Affiliates
  • Reviews
  • Brand Assets
  • Blog
  • Weโ€™re Hiring!

Support

  • Documentation
  • Contact Us
  • Support Forums
  • Fastest WordPress Theme
  • Changelogs
  • Legal
  • Donate
  • Translate

Popular FAQs

  • Install GeneratePress
  • Installing GP Premium
  • Missing style.css
  • Plugin Install Failed
  • Adding CSS
  • Adding PHP
  • WordPress Hosting

Social

  • Facebook
  • Twitter
  • WordPress
  • GitHub
Made with on Vancouver Island
  • Home
  • Premium
  • Site Library
  • Install
  • Contact
  • Support Forum
  • Documentation
  • Account
  • Checkout