Allow use of {{VALUE}} in css selectors #23200
P-ZeN
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.
Hi,
I'd like to offer the possibility of choosing a variation in the rendering of loop items by using the css :nth-of-type( XXn + 1).
I read this article: https://letswp.justifiedgrid.com/selectors-elementor-control-css-values/ which says "However, you cannot use values from other settings in the CSS selector part, only in the declaration!"
How inconvenient!
Describe the solution you'd like
I would like to be able to write something like this:
'selectors' => [ '{{WRAPPER}} .loop_container .loop_item:nth-of-type({{VALUE}}n + 1)' => '...' ],
Describe alternatives you've considered
For now, i'll recommand users to use custom css to write their own rules, but i think it would be really nice if possible to use value in selector...
Thank you for your cool work!
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions