Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kaskad88/a83d2548bc801288074737d3ee3439d4 to your computer and use it in GitHub Desktop.
Save kaskad88/a83d2548bc801288074737d3ee3439d4 to your computer and use it in GitHub Desktop.
/**
* Adding custom icon to icon control in Elementor
*/
function jet_add_custom_icons_tab( $tabs = array() ) {
// Append new icons
$new_icons = array(
'account',
'airplane',
'wordpress',
);
$tabs['my-custom-icons'] = array(
'name' => 'my-custom-icons',
'label' => esc_html__( 'My Custom Icons', 'text-domain' ),
'labelIcon' => 'fas fa-user',
'prefix' => 'mdi-',
'displayPrefix' => 'mdi',
'url' => 'https://cdn.materialdesignicons.com/4.5.95/css/materialdesignicons.min.css',
'icons' => $new_icons,
'ver' => '1.0.0',
);
return $tabs;
}
add_filter( 'elementor/icons_manager/additional_tabs', 'jet_add_custom_icons_tab' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment