Streaming live at 10am (PST)

Is there a way to add comments to your code in Webflow?


#1

Hi guys,

Is there a way to add comments to your code in Webflow to make it easier to read after export?

Thanks!


#2

Not really... You can use the Custom Code widget to add HTML comment but they will be wrapped into the widgets' div.

Also takes up space in the design layout, so it's not ideal.

You can hack the custom attributes to add comments but it's kind of dirty:


#3

@vincent yeah I figured as much :frowning: would be a nice new light feature though!


#4

Not only for checking after export, but in the designer too. I'd like a Note field for interaction triggers :smiley: to add a decription for later.


#5