To set default styling for text links in Webflow without manually adding a class to each link inside a CMS/Rich Text field, you need to style the "All Links" tag and adjust the Rich Text element settings.
1. Style the "All Links" Tag
- Go to the Style panel in Webflow.
- In the Selector field, type and select "All Links" (this applies globally to all
<a>
elements). - Make your desired styling changes (e.g., color, hover effects, text decoration).
- These styles will now apply to all links on the website unless overridden by another class.
2. Style Links Inside a Rich Text Element
- Add a Rich Text block to any page.
- Place a temporary link inside the Rich Text element.
- Select the link and go to the Style panel.
- In the Selector field, Webflow should show something like "All Links inside of Rich Text".
- Apply your desired default styles for Rich Text links.
3. Ensure CMS Links Follow the Global Style
- CMS Rich Text fields will now inherit the default styles from "All Links inside of Rich Text" unless manually overridden.
- If needed, adjust Rich Text styles under Typography settings to ensure consistency.
Summary
To style text links globally in Webflow, edit the "All Links" tag in the Style panel. For CMS-generated Rich Text links, style links inside a Rich Text element by selecting the appropriate nested selector. This ensures uniform styling without manually adding classes.