New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Favicon Not Being Used by RSS Readers #4869
Comments
Note: browsers heavily cache favicon requests, so if you visit the site normally first, and then go directly to the favicon, you may see the custom one. There are 2 potential solutions to this:
2 Possibly makes more sense, as for most people, switching theme wouldn't necessitate switching the favicon, but it has the downside of being yet-another-setting. |
I dig the idea of being able to upload and set the favicon via the GUI. What would be great is if the workflow could guide users and perhaps provide a crop function so they could upload any image and then crop it to the size of the file we end up serving, particularly for less technically minded users. |
another thought I just had is to automatically use the site "Blog Logo" as the favicon... |
See #4453 - if you can find a way to do the server side cropping in JS without external dependencies and to then create the .ico format then I would merge the PR ;) We'd love to be able to have one logo upload and generate all manner of icons from it, but as far as I am aware, it's pretty much a pipe dream at present. Would ❤️ to be proved wrong. Image processing chat should probably be moved onto #4453, because although a logo-to-icon UI is definitely a nice idea, it is a new feature with a lot of deep requirements rather than being a fix for the bug described here. |
As a sidenote, I was doing some local casper customization for one of my blogs after I updated to 0.5.8, and I can verify what @dbalders wrote. Perhaps off-topic here (IDK)? But even putting a favicon.ico file at my theme root (as well as in the assets directory) does not suffice. As a workaround, I simply replaced the default favicon file located at my/path/to/core/shared/favicon.ico with the one I wanted to use. The result works for me here. Hope this helps. Cheers. |
Putting a favicon.ico in your theme root won't have any impact, because Ghost doesn't serve directories, it serves requests - it's a different approach which is common across ruby/python/node but quite different to the PHP / plain HTML web which is based on documents in a folder structure. The way to use a custom favicon is to put it in assets and use the asset helper: http://themes.ghost.org/v0.5.8/docs/asset#favicons This will work when requesting pages from the theme, but does not work when making a direct request to the file, because in this case the browser is not being told to request the correct file. That's what the bug is here - we need to add additional logic to override the favicon regardless of how it's requested. |
Thanks, I gotcha on all that. I'm using the asset helper (as noted in the docs) to get my favicon from my assets dir and moved the one from my theme root to the shared directory. No problem. I've some time to explore the adding "additional logic" thing, but I've not contributed to before. I've read the Contribute page, and I'm exploring the favicon-relevant bits in |
Most rss readers like feedburner and feedly look for favicons automatically at the website root (ex. blog.com/favicon.ico). The problem with this, is that when you have a favicon in your theme, the default favicon still shows up at the website root because the theme favicon lives in 'blog.com/assets/favicon.ico'.
The favicon works just fine in browsers because you can specify the location in the html, the only problem is when there is a direct request specifically for the favicon at the root that the default shows up instead of the custom one.
Ex. http://ghostforbeginners.com/favicon.ico shows the default, but the site has its own custom favicon working just fine.
The text was updated successfully, but these errors were encountered: