Home > OS >  Elementor custom widget's icon doesn't display
Elementor custom widget's icon doesn't display

Time:09-28

Now I am going a Wordpress lesson and do everything what teacher do on Youtube lesson. Just made custom widget in Elementor. But it is no icon in it.

Here is a pic

Here is a code inside of Widget. What I don't understand?

/**
 * Get widget icon.
 *
 * Retrieve About widget icon.
 *
 * @since 1.0.0
 * @access public
 *
 * @return string Widget icon.
 */
public function get_icon() {
    return 'fa fa-code';
}

CodePudding user response:

Just figured out that such class as was in default "fa fa-code" doesn't work in Elementor. For Elementor works only "eicon-code" Here is all list:

Elemetor icons

For example this code will work:

public function get_icon() {
    return 'eicon-code'; 
}
  • Related