Created
March 31, 2020 10:03
-
-
Save alcaudon89/46b66984873d65f0dd8e0e2c34a0a1a7 to your computer and use it in GitHub Desktop.
Añadir soporte Fontawesome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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