Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress From Bootstrap to WordPress Create Bootstrap Styled Theme Templates The Header and Footer Templates

The code for my favicon does not show up in the source code, and so obviously I don't see the favicon. What can I do?

I have typed in the code for my favicon in the header.php page, right before the call to wp_head(). But when I go to the source page, it's not there. I have faithfully copied Zac's code, except for the folder path. My folder is img and not images. I am stumped. I have no idea why this is happening. Can someone help?

Chris Shaw
Chris Shaw
26,676 Points

Hi Sue,

Could you please post the HTML you've used for the favicon, thanks.

https://teamtreehouse.com/forum/posting-code-to-the-forum

2 Answers

 <link rel="shortcut icon" href="<?php bloginfo('template_directory');?>/img/favicon.ico">

Hey, it's working now. And I have no idea why. The source code shows the line for the favicon and the favicon is showing up on the browser tab. It's really weird.

Thanks, Chris, for your interest.

Chris Shaw
Chris Shaw
26,676 Points

It could have been your browser caching the page which happens very often, typically if you see a result different to what you expect either disable your cache via the browsers developer tools or use an incognito window.

Okay. Thanks.