Change Widget Counter Selector from CSS Class to Data Attribute #30396
jhned
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prerequisites
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 context
No response
Agreement
Beta Was this translation helpful? Give feedback.
All reactions