2
Change Widget Counter Selector from CSS Class to Data Attribute
Source: elementor/elementor#30396 · opened by @jhned
Prerequisites • I have searched for similar feature requests in both open and closed discussions and cannot find an existing request. • I have verified that the feature is still missing from the latest stable versions of Elementor or Elementor Pro. What problem is your feature request going to solve? Please describe.. I'm working with an optimization process that minifies HTML and CSS class names. The getDefaultSettings function hard codes the selector to .elementor-counter-number. Describe the solution you'd like. I'd propose that the selector change to [data-js="elementor-counter-number"] and that includes/widgets/counter.php be updated to include the attribute. Describe alternatives you've considered. This could also be solved with JavaScript hooks in order to override widget settings before they're used. I've also considered registering a duplicate Counter widget in Elementor and modifying the JS that way. Additional c…
No pledges yet. Be the first to back this.
Comments
Similar requests
Add CSS Class for Menu Items in Menu Widget
1 vote · 0 comments
Override Theme styles with custom selector for more CSS specificity
2 votes · 0 comments
Class editing auto-select is a footgun (unclear class vs element styling scope)
3 votes · 0 comments
Duplicate Class or Create Class From Existing Styles
5 votes · 0 comments
Element Manager for Custom CSS
4 votes · 0 comments
No comments yet.