You cannot directly set an ID on the internal parent node of a built-in Rich Text Field, but you can wrap it in a parent element and apply the ID there.
1. Rich Text Fields Are Component Blocks
- Webflow treats the Rich Text element as a self-contained structure, where the internal parent nodes (like the wrapper
div
) are system-generated and inaccessible in the Designer. - This means you cannot directly assign an ID to these internal parent containers.
2. Wrap Rich Text in a Div Block
- The recommended solution is to place the Rich Text element inside a Div Block manually.
- Then, select the Div Block (the custom parent) and assign your desired ID to it in the Settings Panel.
- This parent div can now be used for targeting via Anchor Links, JavaScript selectors, or custom styling.
3. Use Custom Attributes if Needed
- If you need more advanced targeting, add Custom Attributes (like
data-id="custom-section"
) to the parent wrapper instead of or in addition to an ID.
Summary
You cannot set an ID on the system-generated parent of a Rich Text Field, but you can wrap the Rich Text in your own Div Block and assign an ID to that wrapper. This achieves the same effect for anchors or scripts.