Hi Mohammed,
Big thanks…but again…rookie status kicks into play.
Attempted 2 variations, details below. Can you please advise further?
Big thanks, much appreciate your bearing with me!
—
1. ADDED CODE TO BOTTOM OF FUNCTION.PHP, UNDERNEATH FINAL BIT OF CODE. CREATED ERROR (ATTACHED) AND ICONS DIDN’T APPEAR (ATTACHED). EXAMPLE:
}
if (class_exists(‘Envato_WP_Toolkit’)) {
add_action( ‘admin_init’, ‘sf_envato_toolkit_admin_init’ );
}
?>
function sf_enqueue_styles_new(){
wp_deregister_style(‘fontawesome’);
wp_dequeue_style( ‘fontawesome’ )
wp_register_style(‘fontawesomeNew’, ‘//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css’, array(), NULL, ‘all’);
wp_enqueue_style(‘fontawesomeNew’);
}
add_action(‘wp_enqueue_scripts’, ‘sf_enqueue_styles_new’, 111);
2. ADDED CODE TO BOTTOM OF FUNCTIONS.PHP, BEFORE FINAL BIT OF CODE. IT CRASHED THE SITE (NO DOUBT YOU’RE NOT SURPRISED!), HAD TO DELETE VIA FTP. EXAMPLE:
}
if (class_exists(‘Envato_WP_Toolkit’)) {
add_action( ‘admin_init’, ‘sf_envato_toolkit_admin_init’ );
}
function sf_enqueue_styles_new(){
wp_deregister_style(‘fontawesome’);
wp_dequeue_style( ‘fontawesome’ )
wp_register_style(‘fontawesomeNew’, ‘//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css’, array(), NULL, ‘all’);
wp_enqueue_style(‘fontawesomeNew’);
}
add_action(‘wp_enqueue_scripts’, ‘sf_enqueue_styles_new’, 111);
?>
Attachments:
You must be
logged in to view attached files.