Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Sharifur/f59d2813d276d183094f579b6603c52c to your computer and use it in GitHub Desktop.
Save Sharifur/f59d2813d276d183094f579b6603c52c to your computer and use it in GitHub Desktop.
add custom add on to elementor new controls icons
add_filter('elementor/icons_manager/native',array($this,'add_custom_icon_to_elementor_icons'));
public function add_custom_icon_to_elementor_icons($icons){
$icons['la-line'] = [
'name' => 'la-line',
'label' => __( 'Line Awesome - Accessibility', 'elementor' ),
'url' => XGENIOUS_MASTER_CSS .'/line-awesome.min.css', // icon css file
'enqueue' => [XGENIOUS_MASTER_CSS .'/line-awesome.min.css'], // icon css file
'prefix' => 'la-', prefix ( like fas-fa )
'displayPrefix' => 'las', //prefix to display icon
'labelIcon' => 'las la-bell', //tab icon of elementor icons library
'ver' => '1.3.0',
'fetchJson' => XGENIOUS_MASTER_JS .'/line-awesome.js', //json file with icon list example {"icons: ['icon class']}
'native' => true,
];
return $icons;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment