Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Commit

Permalink
Enqueue FontAwesome from CDN
Browse files Browse the repository at this point in the history
  • Loading branch information
olefredrik committed Aug 5, 2017
1 parent 05a89a2 commit 807f53e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/enqueue-scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ function foundationpress_scripts() {
// Enqueue Founation scripts
wp_enqueue_script( 'foundation', get_template_directory_uri() . '/dist/assets/js/app.js', array(), '2.10.0', true );

// Enqueue FontAwesome from CDN. Uncomment the line below if you don't need FontAwesome.
wp_enqueue_script( 'jquery', 'https://use.fontawesome.com/5016a31c8c.js', array(), '4.7.0', true );


// Add the comment-reply library on pages where it is necessary
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
Expand Down

2 comments on commit 807f53e

@viktoras
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the handle for fontawesome be 'jquery'?!

@olefredrik
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@viktoras : Certainly not! It's a glitch. Thanks for reporting it. Fixed #1030

Please sign in to comment.