Last active
August 29, 2015 14:10
-
-
Save vsalda/70c89baf609c7c861cfc to your computer and use it in GitHub Desktop.
Añadir a favicon en formato png a un tema hijo.
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 // <-- ignorar el inicio de las etiqueta PHP, el codigo debe ir en el archivo functions.php del tema hijo | |
// Enganchamos la función twentyfourteen_child_favicon_link al hook wp_head | |
add_action( 'wp_head', 'twentyfourteen_child_favicon_link' ); | |
/** | |
* Incluir un favicon en formato png | |
*/ | |
function twentyfourteen_child_favicon_link() { | |
echo '<link rel="shortcut icon" type="image/x-icon" href="'. get_stylesheet_directory_uri() .'/images/favicon.png" />'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment