• Resolved Anonymous User 15236515

    (@anonymized-15236515)


    Hi,

    Do the uploaded svg-files need a width & height ? Because I remove them always after exporting the images from illustrator. So they look like :

    <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 425.2 301.6" enable-background="new 0 0 425.2 301.6" xml:space="preserve">
    <path d="M70.5.........../>
    </svg>

    But without W & H the svg’s don’t show up on my site. So I wonder if that’s the culprit !?

    Regards,
    Fritz.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Benbodhi

    (@benbodhi)

    Hi there,

    I don’t believe they do, but you will need to set a size using CSS on the site still, otherwise it will display at 0px… which is obviously invisible.

    So yeah, you should be able to use it just like that.

    Let me know how you go.

    Also note, the size in there won’t really matter if you set it using CSS anyway, so you may as well leave a size in there so it displays in most places by default, even if the wrong size, then set the size using CSS. The beauty of using SVG is that the file size is the same regardless of the size (I believe), and you can scale it to any size and it’s no bigger in file size/load times.

    I hope this helps!

    Thread Starter Anonymous User 15236515

    (@anonymized-15236515)

    Hi Benbodhi,

    Thanks for your info, I know what to do now.

    Regards,
    Fritz.

    Plugin Author Benbodhi

    (@benbodhi)

    Happy to help 🙂

    Thanks for your support.

    Please consider leaving a review 😉

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘width & height’ is closed to new replies.