Plugin Support
Rica
(@ricav)
Hi Paloma,
Here are a few workarounds you can use to prevent Elementor from stripping out your id attributes:
- Use Empty Span Tags inside the Text Editor: Instead of placing
id attributes directly on headings or paragraphs (which the editor’s sanitizer often cleans up), insert an empty span element right before or around your anchor target text: <span id="your-anchor-id"></span>
- Use Custom HTML Widgets: Place a Custom HTML widget where you want the anchor to be, or wrap your content inside one. Unlike the Text Editor widget, the Custom HTML widget does not sanitize or filter attributes on save.
- Use Menu Anchor Widgets: Drag Elementor’s native Menu Anchor widget directly above each target section or paragraph and set the anchor ID name in its settings.
Kind regards,