Created
March 12, 2020 15:54
-
-
Save Sharifur/f59d2813d276d183094f579b6603c52c to your computer and use it in GitHub Desktop.
add custom add on to elementor new controls 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_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