Drupal 8.1.7

Within the tree Home > Administration > Appearance > Appearance settings

Under the section titled "Logo Image Settings"

There is a text that suggests SVG images "Examples: logo.svg (for a file in the public filesystem), public://logo.svg, or themes/paxton/logo.svg."

but when the user actually uploads an SVG file, such as test image I downloaded from Wikipedia:

https://en.wikipedia.org/wiki/Scalable_Vector_Graphics#/media/File:SVG_l...

The user is informed that this file type is invalid for this use.

The specified file SVG Logo.svg could not be uploaded.

  • Image type not supported. Allowed types: png jpeg gif
  • Only files with the following extensions are allowed: jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp.

The logo could not be uploaded.

The text describing the suggested file format should be adjusted to reflect the reality of what the software supports.

Comments

RichGreder created an issue.

snsblvd’s picture

You need first to upload the svg logo to our drupal and then just link it (e.g. in the theme directory: themes/<themename>/logo.svg), uploading a svg from the theme setting is not possible.

See here for more information, is a drupal core issue:
https://www.drupal.org/node/2259567

RichGreder’s picture

Ah thanks, got it working. I created a folder called images/ and chown'd it to www-data and put the image in there. Seems to work.

For the main image, I couldn't change it. Or at least it wasn't documented how to change it. I renamed my image to ny-slider.jpg and copied it into themes/paxton/images/ and got it to work that way.

snsblvd’s picture

For changing the main background, I had to edit the css/parallax-slider.css (class .da-slider) file.

walidzaki’s picture

you can upload your SVG Logo in this path sites/default/files/ and use it in Path to custom logo of appearance/settings