Created
March 29, 2018 17:49
-
-
Save azzcatdesign/a4b5badf980c51a20dca7bed1b2704e9 to your computer and use it in GitHub Desktop.
Adding Nucleo custom font icons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add Custom Nucleo Font Icons to Shiftnav Plugin | |
*/ | |
add_action( 'shiftnav_register_icons' , 'nucleo_custom_icons' , 20 ); | |
function nucleo_custom_icons(){ | |
if( !function_exists( 'shiftnav_register_icons' ) ) return; | |
shiftnav_register_icons( 'nucleo' , array( | |
'title' => 'KE_icon_font', | |
'class_prefix' => 'nc-', | |
'iconmap' => array( | |
'minimal-down' => array( | |
'title' => 'Minimal Down', | |
), | |
'minimal-up' => array( | |
'title' => 'Minimal Up', | |
), | |
'delivery-truck' => array( | |
'title' => 'Delivery Truck', | |
), | |
//list additional icons to register | |
) | |
)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment