Jump to content

Webflow SVG import clash with Affinity SVG file


Recommended Posts

 

This is more of a conflict with Webflow than a bug with Affinity.

I have begun using Affinity 2 with Webflow and I came across a conflict between the Affinity svg save file and how Webflow handles it. Perhaps I am doing something wrong on my end, but I tried saving colored svg's using a combination of ways.

 
So the issue is with Webflow's "No Code" principals. Most people follow tutorials and the most used way of embedding an svg into their website is to use the "SVG Import" plugin. This plugin sets "fill" to be "currentcolor" for most cases or sets the color on fill. Anyway, this causes an error/conflict with Affinity's svg file. If the svg was given fill before saving the Affinity file uses CSS, "style="fill:[color]"" for the fill.
 
When uploaded to Webflow using this commonly used plugin, it is embedded as "["style="fill:[color]"" ]" and for a reason I am not sure of, this ends up rendering nothing or an all black svg that you cannot change the color of.
 
The fix is simple enough. On the 'Path' settings you will have to change the left and right of the '=' to 'fill' = [#[hex] or 'currentcolor'], but because so many people do not know code it may cause frustration.

Screenshot 2024-08-29 at 3.29.30 PM.png

Screenshot 2024-08-29 at 3.31.16 PM.png

Screenshot 2024-08-29 at 3.35.49 PM.png

Link to comment
Share on other sites

Hi @Alan7 and welcome to the forums,

My first question is, why are you using a plug-in in Webflow to import your SVG file? Webflow has native support for SVG files...

This logo was exported as an SVG from Affinity Designer and imported directly into Webflow...

image.thumb.png.969eb5592d97977216a846e0b50258ae.png

Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5
Affinity Designer Beta 2.6.0.2861 | Affinity Photo Beta 2.6.0.2861 | Affinity Publisher Beta 2.6.0.2861

MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse
HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.