elementor / elementor/elementor

📚 🧩 ❓ Controls_Manager::ICONS render unicode font awesome

Open
#14,202 0 comments 0 reactions 0 assignees View on GitHub
compatibility/3rd-party-code control/icons integration/fontawesome mod/m* mod/q* type/developer-api
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

## Prerequisites

- [x] I have searched for similar features requests in both open and closed tickets and cannot find a duplicate.
- [x] The feature is still missing in the latest stable version of Elementor ( Elementor Pro. )

**What problem is your feature request going to solve? Please describe.**
I want to retrieve the unicode code of the font awesome i selected in the control

**Describe the solution you'd like**
The control return an array containing Icon data [value, library]
But i would like to alter a pseudo element with the selectors

$this->add_control('stm_display_icon',
[
'type' => Controls_Manager::ICONS,
...
'selectors' => ['{{WRAPPER}} .myclass::before' => 'content: {{ID}};'], // in the place of 'content: {{VALUE}};'
]);

Maybe it exists a workaround for that ?

**Describe alternatives you've considered**

**Additional context**
Elementor 3.1.3 WP 5.6

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.