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

Hi guys,

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

Thanks!

2 Likes

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

http://vincent.polenordstudio.fr/snap/rbd1i.jpg

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:

http://vincent.polenordstudio.fr/snap/msp7a.jpg

http://vincent.polenordstudio.fr/snap/9fyaa.jpg

1 Like

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

1 Like

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.

2 Likes