BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › FAV Icon
- This topic has 3 replies, 3 contibutors, and was last updated 9 years, 6 months ago by Alyssa.
Question
May 13, 2015 at 3:54 pm #40167@wc7080Hello,
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
May 13, 2015 at 4:21 pm #40168@tradingpremiumIn 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!
May 13, 2015 at 4:53 pm #40171@wc7080Thank 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.
May 19, 2015 at 8:52 am #40390
- The question ‘FAV Icon’ is closed to new replies.