I'm trying to make an upgrade of awesome fonts on the theme salient because the current version which is integrated in the theme is 4.6 the icons in visual mode do not appear it is necessary to upgrade the latest version 5.10.1, I created the child theme and in the file functions.php of the child theme I added this piece of code
I'm trying to make an upgrade of awesome fonts on the theme salient because the current version which is integrated in the theme is 4.6 the icons in visual mode do not appear it is necessary to upgrade the latest version 5.10.1, I created the child theme and in the file functions.php of the child theme I added this piece of code
add_action( 'wp_enqueue_scripts', 'update_font_awesome');
add_action( 'admin_enqueue_scripts', 'update_font_awesome');
function update_font_awesome() {
wp_dequeue_style( 'font-awesome' );
wp_deregister_style( 'font-awesome' );
wp_enqueue_style( 'font-awesome', 'https://use.fontawesome.com/releases/v5.10.1/css/all.css', '', '5.10.1' );
wp_enqueue_style( 'font-awesome-shim', 'https://use.fontawesome.com/releases/v5.10.1/css/v4-shims.css', array('font-awesome'), '5.10.1');
}
How can I change icons classes since with the new version they do not have the same prefix and class name?