FeatureFuel
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.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests