Add icon to Browser tab in Quarto? - tabs

I was wondering if it is possible to add an icon to your own website to show in the tab of your browser in Quarto? Here you can see an example of my website tab without an icon and the website of Quarto with an icon:
I can imagine there should be an option using the Bootstrap Icons as you can use in your sidebar and navigation bar. But how is this possible for the browser tab?

You could use this website called realfavicongenerator to generate a favicon. You only need to set the .png file generated on that site, in your right directory and set the name of the file in your .yml file like this:
website:
favicon: icon.png
icon.png is the image of the favicon. It seems that now all browser are supported by what I know.
Google Chrome
For Google chrome the result looks like this:
This works!
Safari
When I do the same and open it in safari it returns:
As you can see it doesn't return the favicon.

Related

Why Firefox does not show pictures of my web?

I have an issue with web I am developing HTML/CSS (only design), if I open it in firefox from my harddrive no pictures are displayed, there is a small icon instead like picture can not be loaded. If I rightclick on a icon and select open picture in new tab than picture is displayed on a new tab without issue.
But if I open webpage from my hardrive in IE, edge or chrome than all pictures are displayed directly on a page in a browser without issuel.
What can be wrong with mozilla or with page?
I tried all these recomended fixes: https://support.mozilla.org/en-US/kb/fix-problems-images-not-show.
this is picture URL: img src="D:/UserData/z003xner/Documents/My Web Sites/bubabikes/Images/30.1.2023.jpg" and i tried forward slash and bacward shash and nothing helps
Try to put the image inside the project folder for eg : {project_path}/images/1.jpg and call the image using the domain name in the project suppose the project domain is https://example.com call the image using
<img src="https://example.com/images/1.jpg" class="image" />
or if in localhost :
<img src="http://localhost/project-name/images/1.jpg" class="image" />
It’s hard to tell, but the issue may be the spaces in your file path — try replacing them in your html with %20 like this
my/file%20path%20has/spaces.jpg
You can look up “url encoding” for more information!

Favicon not showing on quick links on Android Google Chrome

The way I use to display the favicon on my website is to add a favicon.ico in the root folder.
It is working alright on the tabs of the desktop and also the tabs on Chrome in phone itself, but when it's in the quick links, I only see the first letter of my website name. so if the domain is example.com I see E instead of the favicon:
Will I have to add meta tag for favicon to make it show here, or it has nothing to do with it?
favicon.ico is used for low resolution icons, such as the one that appears in the tab. However, bookmark and add-to-home-screen images must be high resolution icons.
In order to have such icons for Android Chrome:
Preferably, provide a Web App Manifest, along with a 192x192 icon.
If you don't want to create such file, you can provide a 180x180 Apple Touch icon. It is simpler and more platforms support it (eg. iOS Safari).
As an alternative, you can use online favicon generators, such as RealFaviconGenerator, to create all these files for you. Full disclosure: I'm the author of this service.

How to set the favicon when viewing source in Chrome?

I have a page that displays the incorrect favicon when I view its source.
In the following image, you can see in the first tab (which is viewing the page) using the correct favicon - favicon-tenaya.ico.
However, when you go to view the page's source via Ctrl + U, it seems to display the default favicon - favico.ico, which is in the website's root folder:
Is there a way to get around this? We don't want the favicon changing when they view the source. How does the view source page in Chrome decide which favicon to use?
Viewing the source of a page is browser-dependent. There nothing you can do to force it to display a specific icon. For example, Firefox doesn't display any icon at all for a "View source" tab.
However, you can influence browsers to achieve this. For Chrome and your particular web site, replace the existing favicon.ico at the root of your web site with your favicon. This is what Chrome displays and yours is the black and white icon you don't want. Even better: rename favicon-tenaya.ico to favicon.ico (thus replacing the existing favicon.ico) and change the HTML accordingly.
As an aside, you don't need two declarations. Just keep the shortcut icon one, although the other one should do just as well.
Since Chrome does not parse the html it uses default file "/images/favicon.ico" to show as favicon in view-source. If it doesnt find it it look into different other locations too. for example if you use wordpress it uses http://[domain]/wp-content/themes/[theme]/images/favicon.ico
In Website, you can mention the favicon like below
<link rel="shortcut icon" href="/favicon-tenaya.ico"/>
and its working fine.
Where as in view source of chrome, they automattically find the favicon on below path
https://www.tenayalodge.com/favicon.ico
Favicon to be fetched from added favicon.ico after your website.
A very simple way:
put your favicon.ico file on the root of the website.
That should be accessed like: http://www.[domain].com/favicon.ico

Favicon without HTML code

I noticed that Future Friendly's source code doesn't contain any code for their favicon. Yet, there is a blue star as their favicon in my browser's tab. Is this witchcraft?
you can just put a favicon.ico file in the root level of the website. in your sample http://futurefriend.ly/favicon.ico
You don't need code to reveal a favicon. Simply add the image to your site root folder and all newer browser (IE 7 +?) find it and show it automatically.

how to change the title bar image in IE browser

i have to change the internet explorer icon in the title with customized image not the one which appears on the address bar.
You can set your favicon by putting it in the root of your site or you can set it int he html like so
<link rel="icon" href="http://www.quotes.co.uk/favicon.ico" type="image/x-icon">
If your using photoshop this is a good plugin to create your flavicon:
http://www.telegraphics.com.au/sw/
You need to use a favicon.ico.
The site icon file can be located anywhere in the site directory tree.
Because site icons are used both by Internet Explorer and Windows, only the .ICO file format is supported. If you change your site icon during development, you might need to clear the browser cache or rename the file to cause Internet Explorer to refresh its copy of the site icon.