How to add Font Awesome 5 icon support for Elementor

Put the follwing lines of code in your functions.php

function enqueue_icon_font() {
    wp_enqueue_style('font-awesome-5', 'https://use.fontawesome.com/releases/v5.1.0/css/all.css');
}

add_action('wp_enqueue_scripts', 'enqueue_icon_font', 1);
add_action('elementor/editor/before_enqueue_styles', 'enqueue_icon_font', 1);

add_action('elementor/controls/controls_registered', function ($controls_registry) {
    $icons = $controls_registry->get_control('icon')->get_settings('options');
    $new_icons = array_merge(
        array(
            'fab fa-elementor' => 'elementor',
        ),
        $icons
    );

    $controls_registry->get_control('icon')->set_settings('options', $new_icons);
}, 10, 1);