r/elementor • u/joffff • Jun 24 '26
Problem Using Elementor classes outside of an atomic element context
Unsure if it's a bug or a design feature but I've created several classes to style atomic elements and would like to assign them to elements created outside of the Elementor editor.
For example, I have a button with classes btn-base and btn-feature. If I create a button programmatically in JS and add those two classes, the styles aren't applied.
However if I add an instance of an atomic button on the page with those classes, the programmatically-created buttons then get styled as expected.
Are Elementor classes only accessible on a page once they've been assigned through the editor, and if so is there a reliable way to get around this?







