Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #40167
    @wc7080

    Hello,

    While other themes have the option to change the FAV icon from the admin panel, Boss doesn’t have it. I used FTP and uploaded my FAV icon to the child theme and replaced the old one. I still can’t see it. Any insights?

    Thanks

    Answers

    #40168
    @tradingpremium

    @wc7080,

    In order to get various shortcut icons, I’ve added the following code to functions.php to achieve the desired result…

    function add_favicons()
    {
      echo "<link rel=\"shortcut icon\" href=\"http://tradingpremium.com/assets/icon-32.png\">\n";
      echo "<link rel=\"apple-touch-icon-precomposed\" href=\"http://tradingpremium.com/assets/icon-57.png\">\n";
      echo "<link rel=\"apple-touch-icon-precomposed\" sizes=\"72x72\" href=\"http://tradingpremium.com/assets/icon-72.png\">\n";
      echo "<link rel=\"apple-touch-icon-precomposed\" sizes=\"114x114\" href=\"http://tradingpremium.com/assets/icon-114.png\">\n";
      echo" <link rel=\"apple-touch-icon-precomposed\" sizes=\"144x144\" href=\"http://tradingpremium.com/assets/icon-144.png\">\n";
    }
    add_action('wp_head', 'add_favicons');

    Then, I copied header.php to the child theme and removed the existing favicon code:
    <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/images/favicon.ico" type="image/x-icon">

    Hope this helps!

    #40171
    @wc7080

    Thank you for your help. I think there must be a solution up front for this in the theme structure itself. I am using multisite. That’s why.

    #40390

    Alyssa
    Participant
    @alyssa-buddyboss

    @wc7080 Brad’s code is also for mobile device icons. We have specified the favicon file in the theme folder under images. So to change the favicon you will need to upload the file to your child theme images folder with the file named favicon.ico

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘FAV Icon’ is closed to new replies.