Skip to content

Instantly share code, notes, and snippets.

@vsalda
Last active August 29, 2015 14:10
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 vsalda/70c89baf609c7c861cfc to your computer and use it in GitHub Desktop.
Save vsalda/70c89baf609c7c861cfc to your computer and use it in GitHub Desktop.
Añadir a favicon en formato png a un tema hijo.
<?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