Shortest way to add a favicon on your siteLa manera más corta de agregar un favicon al sitio

Drop this code in functions.php:

/*
name: Favicon Action
author: FZSM
url: http://www.wpgetready.com
description: shortest way to add favicon to your site
*/
function tabs_favicons() {
?>
<link rel="shortcut icon" href="<?php echo bloginfo('stylesheet_directory') ?>/images/favicon.ico">
<?php
}
add_action('wp_head', 'tabs_favicons');

You can create favicon.ico with  IcoFx for example and it has to be in the images folder in the current theme.Dejar este código en functions.php:

/*
name: Favicon Action
author: FZSM
url: http://www.wpgetready.com
description: la manera más corta de agregar un favicon al sitio
*/
function tabs_favicons() {
?>
<link rel="shortcut icon" href="<?php echo bloginfo('stylesheet_directory') ?>/images/favicon.ico">
<?php
}
add_action('wp_head', 'tabs_favicons');

Puedes crear  favicon.ico usando  IcoFx por ejempo y dejarlo en la carpeta images del tema en curso.

No Comments


Leave a Reply

Your email address will not be published Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*