Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons Hook #1260

Closed
joelbqz opened this issue Jan 31, 2017 · 1 comment
Closed

Icons Hook #1260

joelbqz opened this issue Jan 31, 2017 · 1 comment

Comments

@joelbqz
Copy link

joelbqz commented Jan 31, 2017

Hi,

Is there a way/hook to add our own iconfonts to the ICON CONTROL list?

$this->add_control( 'icon', [ 'label' => __( 'Social Icon', 'your-plugin' ), 'type' => Controls_Manager::ICON, 'include' => [ 'my-icon icon-name-1', 'my-icon icon-name-2', ], ] );

I was thinking to add some CSS to identify the icon in the list, but I dont think this is the correct way

.select2-results__option .icon-name-1:after { content: 'icon-name';  }

Cheers

@arielk
Copy link
Member

arielk commented Feb 1, 2017

Thanks for your feedback!
We're considering it for the future, right now I merge it to previous issue in the same subject #110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants