I really count on your help in this. I searched a lot and did not find a solution. I want to have a custom icon for my plugin in the admin menu, and I want it to integrate well with the color scheme.
I looked here https://codex.wordpress.org/Function_Reference/add_menu_page under $icon_url
(WP 3.8+) If "data: image / svg + xml; base64 ...", the specified data SVG image is used as CSS background
However, if I put the URL in the SVG icon, all I get is img with SVG in its src attribute, so it doesn't integrate with the color scheme at all. It should be a CSS background.
Also, I do not understand this data:image/svg+xml;base64... What does this mean?
I tried $icon_url built-in SVG in $icon_url , but obviously this will not work, but I just had to try it.
Dashikon is not an option, there is no icon suitable for my project.
css wordpress svg
Maciej Krawczyk
source share