Support » Plugin: WP External Links (nofollow new tab seo) » How to display font awesome icons

Viewing 1 replies (of 1 total)
  • it seems your site doesn’t load fontawesome by default….

    The most basic remedy should be to read https://fontawesome.com/get-started and include the stylesheet link in your theme.

    The more advanced method is to download the package from fontawesome, upload the necessary files to your website (preferably in your child theme folder) and properly enqueue the stylesheet(s) in your functions.php like e.g.

    function child_load_local_fonts() {
    	wp_register_style( 'font-awesome', get_stylesheet_directory_uri() . '/fontawesome-all.min.css' );
    	wp_enqueue_style( 'font-awesome' );
    }
    add_action( 'wp_enqueue_scripts', 'child_load_local_fonts', 100 );

    YMMV

    edit:
    I just tried to use the fa-external-link icon and had to learn that this is only included in the Pro version of Fontawesome 5 – the free version only includes fa-external-link-alt
    So either you buy the pro version or you modify wp-external-links/data/json/fontawesome.json accordingly (or fall back to an older version of fontawesome, 4.x should be ok)

    • This reply was modified 5 months, 2 weeks ago by  the.mnbvcx.
    • This reply was modified 5 months, 2 weeks ago by  the.mnbvcx.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.