Thank you, Stan.
Sorry but I came here to Webflow based on the promise of it being a no-code application. What I mean is I have a rather basic knowledge of HTML and CSS but I’m willing to learn Javascript. Right now I still need a bit more specific instructions for certain things to understand.
So please bear with me.
You’re saying that I can add the code manually when I open the SVG in a code editor, correct?
I just opened the file in an online code editor. It looks like this:
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 26.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<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 290 290" style="enable-background:new 0 0 290 290;" xml:space="preserve">
<style type="text/css">
.st0{fill:#2E2E2E;}
</style>
<path class="st0" d="M145,1C65.6,1,1,65.6,1,145s64.6,144,144,144s144-64.6,144-144S224.4,1,145,1z M280.8,145
c0,8.4-0.8,16.7-2.3,24.9h-8.6c-13.8,29.3-48.7,41.9-78,28.1c-29.3-13.8-41.9-48.7-28.1-78c13.8-29.3,48.7-41.9,78-28.1
c12.4,5.8,22.3,15.8,28.1,28.1h8.6C280,128.3,280.8,136.6,280.8,145z M145,9.2c66,0,121.1,47.3,133.3,109.8
c-14.3-33.9-53.5-49.9-87.4-35.5c-22.2,9.4-37.6,30-40.3,53.9V79.5h-8.5v57.9c-4.2-36.6-37.3-62.9-73.9-58.7
c-31,3.6-55.5,28.2-58.8,59.2C13.1,66.3,72.5,9.2,145,9.2z M134.4,145c0,32.4-26.3,58.6-58.6,58.6S17.1,177.4,17.1,145
s26.3-58.6,58.6-58.6l0,0C108.1,86.4,134.4,112.6,134.4,145z M145,280.8c-72.5,0-131.9-57.1-135.6-128.7
c3.9,36.7,36.8,63.2,73.4,59.3c31.1-3.3,55.7-27.7,59.2-58.8v57.9h8.5v-57.9c4.2,36.6,37.2,62.9,73.8,58.8
c23.9-2.7,44.6-18.1,53.9-40.3C266.1,233.5,211,280.8,145,280.8z"/>
</svg>
So where do I add vector-effect="non-scaling-stroke"
? Anywhere within the style tags?
I’m assuming that, after adding that line, I save the file and replace the logo in Webflow with that file (just like uploading an image). And that should do the trick? Or do I need to add code in Webflow as well?
I have an additional question (I’m learning…):
Looking at the svg code, what does the text/css property within the style tags do? Are they just defining that document is a CSS text file, or are the vectors and lines in an svg handled like text?
I guess .st0 is the path class, which has the color E2 applied to it, and the numbers following within the path tags are coordinates that define the shape/placement of the paths which make up the shape…?