Skip to content

Instantly share code, notes, and snippets.

@alcaudon89
Created March 31, 2020 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alcaudon89/46b66984873d65f0dd8e0e2c34a0a1a7 to your computer and use it in GitHub Desktop.
Save alcaudon89/46b66984873d65f0dd8e0e2c34a0a1a7 to your computer and use it in GitHub Desktop.
Añadir soporte Fontawesome
<?php
/**
* Plugin Name: Añadir soporte Fontawesome
* Plugin URI: https://www.davidrd.es/trucos-wordpress/anadir-soporte-fontawesome
* Description: Añadir soporte Fontawesome.
* Version: 1.0
* Author: alcaudon89
* Author URI: https://davidrd.es/
* License: GPLv3 or later
*
* Agradecimientos: https://www.tipsandtricks-hq.com/a-simple-guide-to-adding-font-awesome-icons-to-your-wordpress-site-9617
*
**/
add_action( 'wp_enqueue_scripts', 'tthq_add_custom_fa_css' );
function tthq_add_custom_fa_css() {
wp_enqueue_style( 'custom-fa', 'https://use.fontawesome.com/releases/v5.0.6/css/all.css' );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment