IDs, classes, and HTML
Inspect element identity and apply validated HTML with the correct permissions.
Reference#
Open Advanced → ID, classes and HTML for the selection's identity and markup:
- CSS classes: the element's classes, straight from the theme's stylesheet. Classes the editor or the page's
scripts manage (
ce-…, anything intransient) are shown as a warning and never saved. Unknown names do nothing. - HTML (only for people with
unfiltered_html, usually administrators): the element exactly as it will be saved. Edit it and choose Check and apply HTML. It is one Undo step, new IDs are made unique, and the server's sanitizer still removes scripts, event handlers and unsafe URLs. Safe inline styles from the visual inspector are preserved. - For live content, Advanced holds the raw Shortcode (see below). A Shortcode element has its own field in Content instead.
Prefer the theme's styles lists (in cantata-edit.json) over classes typed by hand. A choice in a list is
something a client can see and undo. A hand-typed class is invisible to them.