This is my original code that pulled Font Awesome icons, which is placed in my functions.php file:
wp_enqueue_style( 'prefix-font-awesome', '//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.1/css/font-awesome.min.css', array(), '4.6.1' );
They’ve recently started offering unique embed codes that appear like so:
<script src="https://use.fontawesome.com/##########.js"></script>
But I’m not sure how to use this with wp_enqueue_style.
1 Answer
The full snippet would be this:
wp_enqueue_script( 'prefix-font-awesome', 'https://use.fontawesome.com/##########.js' );