Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author matthias.wagner

    (@matthiaswagner)

    no, you would need to code it for yourself – this is not part of the plugin…

    Thread Starter martahv

    (@martahv)

    Thanks anyway. Found a way to do it, in case it helps someone

    //Favicons
    function landing_favicon() {
      $host = $_SERVER['HTTP_HOST'];
      if($host == "yourdomainA.com") {
        ?>
        <link rel="shortcut icon" href="<?php echo bloginfo('stylesheet_directory') ?>/favicon/favicon-A.ico" >
      <?php
      }
      elseif($host == "yourdomainB.com") {
        ?>
        <link rel="shortcut icon" href="<?php echo bloginfo('stylesheet_directory') ?>/favicon/favicon-B.ico" >
      <?php }
      elseif($host == "yourdomainC.com") {
        ?>
        <link rel="shortcut icon" href="<?php echo bloginfo('stylesheet_directory') ?>/favicon/favicon-C.png" >
      <?php }
    }
    add_action('wp_head', 'landing_favicon');

    Hello Marta,

    Thank you for your code!

    Do you think you can amend the code for the page title as well? Right now, it’s showing the page title from the main domain.

    Thanks,
    Luigi

    Thread Starter martahv

    (@martahv)

    I usually use Yoast SEO plugin to change page titles. Have you tried that ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Favicon’ is closed to new replies.