There’s a new feature that slipped into the admin side of WordPress with the recently-released 3.8 – Dashicons! Very similar to Font Awesome, Dashicons give plugin developers a nice set of pre-made icons to use. The cool thing is that Dashicons come pre-loaded, and using them in your WordPress custom post types is as simple as adding a parameter to your register_post_type() function, like so:
// Register a new custom post type named "Portfolio" register_post_type('portfolio', array( 'public' => true, 'menu_icon'=> 'dashicons-portfolio', 'label' => __( 'Portfolio', 'local' ), );
Here’s a screengrab from our Lowrize plugin using Dashicons:
Pretty nifty, eh?!
More posts from themightymo.com
Yesterday I ran into an issue where I needed to convert .aiff files to .mp3. DBPowerAmp was recommended to me as a paid GUI tool. But I wanted something more lightweight, since this is a task I rarely need to do (most of the time, I’m already in Logic Pro, and exporting is simple there).…
I was about to send an email to a potential customer pointing them to our 5-star Google Reviews via our Google Business profile (e.g. the Google Map), hoping this added information about our customers’ past experiences might help me close a deal. But when I checked the Google Reviews link, it was down. And after…
Cloudways Off-Site Backup Pricing Calculator: The Ultimate Cost Guide