Adding a span with a class within an h4 tag directly in the Webflow editor requires a workaround since HTML element editing isn't available through the GUI. Here's how you can manage it without manual code editing:
1. Use Text Block and Span Styling
- Create a Text Block: Drag a Text Block element into your canvas instead of directly using an h4 element.
- Style as h4: Apply a class to the Text Block and adjust its typography settings to match your desired h4 styling.
- Highlight Text for Span: Click to edit the text in the Text Block. Highlight the specific portion you want to style with a span.
2. Apply a Span
- Open Span Menu: Use the popup toolbar that appears when text is highlighted. Choose the option to add a span.
- Style the Span: Assign a class to the new span for custom styling, such as color or font weight.
3. Final Validation
- Preview Changes: Use Preview Mode to review the text structure and styling.
Summary
You can simulate an h4 tag with a span in Webflow by using a Text Block styled as an h4 and applying span styling to parts of the text. This method avoids manual code editing while allowing for precise styling.