Skip to content

Instantly share code, notes, and snippets.

@azzcatdesign
Created March 29, 2018 17:49
Show Gist options
  • Save azzcatdesign/a4b5badf980c51a20dca7bed1b2704e9 to your computer and use it in GitHub Desktop.
Save azzcatdesign/a4b5badf980c51a20dca7bed1b2704e9 to your computer and use it in GitHub Desktop.
Adding Nucleo custom font icons
/**
* 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