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

Allow setting dashicon on widget in customizer #84

Open
theenoahmason opened this issue Oct 2, 2022 · 0 comments
Open

Allow setting dashicon on widget in customizer #84

theenoahmason opened this issue Oct 2, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@theenoahmason
Copy link
Member

Widget icons in the customizer are purely CSS based. They provide the unicode character for dashicons on .widget-title::before. Add a config key that will allow for adding an inline style to set this on the customizer panel.

Below is the CSS that is used to set the widget icon in the available-widgets section of the customizer:

#available-widgets [class*=text] .widget-title:before {
    content: "\f478";
}
@theenoahmason theenoahmason added the enhancement New feature or request label Oct 2, 2022
@theenoahmason theenoahmason self-assigned this Oct 2, 2022
@theenoahmason theenoahmason changed the title Allow setting dashicon on widget in customizer. Allow setting dashicon on widget in customizer Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant