Skip to content

Examples of how to add custom admin menu icons — the MP6 way.

License

Notifications You must be signed in to change notification settings

jg314/MP6-Icon-Examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MP6 Icon Examples

The code examples in this repository demonstrate how to set scalable/colorable admin menu icons for MP6, the experimental interface for WordPress.

Method A: Dashicons

The easiest way to set an icon for plugin/theme menu items, is picking a Dashicon and setting it the way mp6-dashicon.php illustrates.

Method B: Custom Icon Font

Using another icon font is easy, too. The code in mp6-font-icon.php demonstrates how to do it.

Method C: SVG as Background Image

Adding a custom SVG as CSS background image is a little trickier. Because SVG browser support is limited, this method requires a Dashicon as fallback. The example code in mp6-svg-icon.php shows how to do that and contains a few more details about this method.

About

Examples of how to add custom admin menu icons — the MP6 way.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%