Advertisement
YordanSoares

[WordPress] Insertar ícono de marcadores (favicon)

Jun 19th, 2020
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. // Insertamos el ícono de marcadores (favicon)
  2. function ys_favicon() {
  3.   // La ruta generada será «https://tudomininio.com/images/favicon.png»
  4.   $favicon = home_url('/images/favicon.png');
  5.  
  6.   echo
  7.   '<link rel="icon" href="'.$favicon.'" sizes="32x32" />
  8.   <link rel="icon" href="'.$favicon.'" sizes="192x192" />';
  9. }
  10. add_action('wp_head', 'ys_favicon');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement