1

I have a website: My Website

it is hosted on godaddy, it has an preload intro animation using .svg file and it is not showing, also the svg logo in my footer.

I already tried everything, like adding a .svg MIME type in my web.config, editing my .htaccess but wasn't able to solve it.

Do you have any suggestion on what might be the solution for this?

2 Answers 2

1

Your svg files are served with MIME-Type application/octet-stream, but should be served with image/svg+xml. Try in your .htaccess "AddType image/svg+xml"

3
  • garcestechnology.com/wp-content/themes/gt2014/images/logo/… and the other SVG are still served with "Content-Type: application/octet-stream". So maybe you don't have the rights to define MimeTypes in your .htaccess Commented Jan 6, 2014 at 20:35
  • your right, I just called them, they said to switch the environment to linux. Commented Jan 6, 2014 at 22:56
  • Just had to fix this for someone: Try this instead of what's in the answer: AddType image/svg+xml svg svgz <NewLine> AddEncoding gzip svgz From: davidwalsh.name/serve-svg-image
    – Casey
    Commented Sep 12, 2016 at 16:54
0

You are probably missing "xmlns="http://www.w3.org/2000/svg" as an attribute attribute of the root element. Your svg tag should look START this:

Read more about it here: http://www.w3.org/TR/SVG11/struct.html#NewDocument

Not the answer you're looking for? Browse other questions tagged or ask your own question.