Skip navigation.

Wandering electrons... but not too far

Like free electrons, but with less direction

Opera tips and tricks: Create favicons for your personal bar bookmarks that don't have one

, , ,

Favicons are the little itty-bitty images that appear on the tab, in the address bar and in your bookmarks to visually identify a website. Sometimes however, a website won't have a favicon. Generally, "on s'en fout un peu" as the French would say (we'll translate with "yeah, so?"), but if, for example, you use only images on your personal bar, the lack of a favicon can be aggravating because in this case Opera's generic bookmark icon will be used, and, well, that just doesn't help much to tell you where you're going to go if you click on it.

If you got a little time on your hands, here's how you can fix that.

This tips and tricks is for 9.2x versions and earlier.

What we're going to do hear is create favicons for those sites that don't have one, and tell Opera to use it for bookmarks and by extension the personal bar.

What you will need

  • A basic photo editing program (I'll be using photoshop, but that's arguably overkill for what we're doing here) that has...
  • ...the ability to create an ".ico" file
  • A little imagination

That's all!

An example

First of all take a look at your address bar. See that red O there that's casting a shadow? That's the Opera website's favicon. It's a small image file that measures only 16X16 pixels. The opera web-page HTML markup has a command that makes your browser go get this image and use it as it's "symbol" if you will. If you have Opera web-pages bookmarked, this same image will display in your bookmark list, unless you've instructed your browser not to do so.

Let's find a website that doesn't have a favicon...let's see... ah! Here's one: "The all one search page" (A search motor that doesn't have a favicon, what's the world coming to?)

Go ahead and click the link, and you'll see that the website does not have it's own favicon. Since there isn't one, Opera just puts in a generic icon somewhere between the new tab icon and the bookmark icon.

When you bookmark the site, Opera will use its generic bookmark icon. Go ahead and bookmark it just to see; you can always delete it later

The Problem

In the bookmarks, the lack of a favicon is not really a problem because you have the name of the website written next to it. But what happens if you put this on the personal bar? Well if you have your personal bar set up to show images and text, or text only, again there is no problem because the written name will appear. But if you use the personal bar with images only, there will be nothing that identifies the favicon-less website. Let's go ahead and put our example on the personal bar to see what this looks like: Click right on the bookmark, and check "Show on personal bar".

One is no big deal, but when there are 3 or 4 of these cases it starts getting problematic.

The Fix

Now, I'm in no way proposing that you do this for all the favicon-less bookmarks that you have. No, let's just do the following for those bookmarks that you put on your personal bar.

Step 1: Find what could be used as a favicon.

Let's look at our all one search web-page again and try to find something that would be a good symbol for it.

Hmmm.

I don't know about you, but I think that blue swirly thingamajig will be just perfect. Why? Two reasons: in your mind it will be very quickly associated to the website; and it is roughly square... well it's more so rectangular but it'll work anyway.

Step 2: Harvest the image and edit it in your photo editing program.

I've gotten in the habit of just hitting "Print Screen" then opening my photo editor then Ctrl+N (new document), then Ctrl+V (paste in the screen shot).

Now crop down to just the blue swirly, cutting as close as you can:


OK, now we need to resize this down to 16 pixels wide by 16 pixels high. This is going to deform the current shape slightly because we're going to force a rectangular image to become square. But for our needs that isn't important. Generally however you do want to try to find something that is more or less square to begin with.

Anyhoo, in Photoshop, click Image>Image size... Uncheck "Constrain proportions", then under "pixel dimensions" type 16 in both the width and height boxes, keeping "pixels" in the neighboring drop-down menu. Hit "OK". Your image should now be square, measuring 16X16 pixels:


Step 3: Save the image in the right format and in the right folder

Now we need to save this image as a Windows icon; this is a special type of file who's extension is ".ico". Go to File>Save as. In the "Format" drop-down menu, choose "ICO (Windows Icon)". (There is a chance that this format will not be present in the format drop-down menu. If this is your case, search on the web for a plug-in for your photo editing program; you can almost always find one for free somewhere.)

Still in the "Save as..." dialog, name the favicon with the name of the website. In our example this would be "www.allonesearch.com.ico".

Now you need to save it in the "Images" folder of Opera. It's location may vary according to your setup:
C>Program files>Opera>Profile>Images
Or
C>Documents and Settings>(user account)>Application Data>Opera>profile>images

Step 4: Make sure you don't accidentally lose it.

Got it saved in the right place and in the right format? OK. Now using your Windows Explorer (or equivalent) navigate again to the Images folder, where you saved the new favicon and find it. Click right on it, choose "Properties" and check the "Read only" box, then click "OK". This will prevent the favicon from being erased when you delete your private data. The last thing you want to do is to accidentally erase this file, because it won't be regenerated when you re-visit the website; this favicon is unique to your computer.

While you're here, go ahead and copy the name of the file onto your clipboard: right-click>Properties>"General" tab--highlight the file name and hit "Ctrl+C". Then click on "Cancel" in the dialog box.

Step 5: associate the favicon with your bookmarked website.

IMPORTANT: CLOSE OPERA BEFORE DOING THE FOLLOWING.
(I know, I know, "I can't read these instructions if I close Opera!?" That's what's called a "paradoxical situation". But I'm sure you'll figure out a way.)

Navigate to your Opera "profile" folder (see above) and open the file "opera6.adr" in your notepad application. This is the file that keeps track of your bookmarks. As you can see, each bookmark has a unique ID and then a list of information: Name, URL, CREATED, VISITED, etc. Using the Find feature (Ctrl+F), find the website for which you made the favicon. In our example you would search for "http://www.allonesearch.com/", or a fragment thereof. It is possible that a single website exists more than once in your bookmarks. You want to find the bookmark that contains the information: "ON PERSONALBAR=YES".

Did you find it? good. You will see a line "ICONFILE=Bookmark Visited" (or possibly "ICONFILE=Bookmark Unvisited"). Replace the "bookmark (Un)Visited" part by the file name of your newly created favicon. In our example this will be "www.allonesearch.com.ico" (no quotation marks). (If you copied the name of the file to the clipboard in the previous step, you can just highlight the "bookmark (Un)Visited" part and hit Ctrl+V). The line should now look like this:

ICONFILE=www.allonesearch.com.ico

Save the change and close notepad.

Step 6: Enjoy!

Reopen Opera:


Repeat these steps for each personal bar item that doesn't have its own favicon. The first time you do this, it seems long, but once you get in the habit, making a personal favicon only takes 3 or 4 minutes, so it's well worth the effort!

One last tip: When you remove a bookmark from your personal bar, be sure to right click it, select "Properties" and uncheck the "Show on personal bar" box. As you know, you can also remove it by simply clicking right and choosing directly "Remove from toolbar". Indeed that's less clicks, but this deletes as well the favicon association that you so carefully created in step 5 above. I have no idea why. In any case, passing by the "Properties" dialog avoids this problem.

Ciao!

The baby duck syndromeCan the direction of the "cascade windows" function in Microsoft be reversed?

Comments

avatar
Thanks; I'd never noticed where the favicon was assigned.

To streamline the process a little, you could do the editing within Opera - loading an alternate bookmark file while you're editing, or just for a moment while you save the edited file. I do this with all my config files.

There are two ways to load a bookmark file in standard config: File / Import... / Import Opera bookmarks, and the dropdown Bookmark Item File Menu you get from the disk icon in Manage Bookmarks. To speed that up a little, you could add "Item, Load bookmarks =Open bookmarks file" to your Browser Bookmarks Menu.

To edit the ADR file, use View Document Source. For local files, clicking the Reload button on the View Source toolbar saves to disk.

I had to add ADR (and INI) to the MIME-type list for text/plain to get Opera to open these files without a download prompt; this seems to be inconsistent. Done at Prefs/Advanced/Downloads; uncheck "hide file types...", type "text/plain" in quickfind, click edit.

By bpm, # 27. December 2007, 22:45:32

avatar
Ignore the above: there's a bug in the "open bookmarks file" function which nullifies the otherwise-benefit of editing in Opera. The personal bar goes blank - you have to restart Opera to get it repopulated - so there's a shutdown & restart in the process no matter what.

By bpm, # 13. January 2008, 00:43:37

avatar
Maybe I'm doing something wrong here but it didn't work for me.

None of my saved personal bar bookmarks have an ICONFILE= line even though all of them except two have a favicon on the personal bar. I tried inserting that in the personal bar bookmark that had no favicon and adding a favicon and zip nothing.

How are they linking to the favicon? I've got the latest beta build maybe its a glitch.

By jteloffthegrid, # 22. January 2008, 22:00:07

avatar
jtel: must be a communication glitch here - these ICONFILE lines ARE what links favicons to bookmarks; system can't work any other way. When you open your opera6.adr file in a text editor, what you should see is a list of items like this:

#URL
ID=28
NAME=Bookmarks: backup/duplicate and so on.
URL=http://my.opera.com/community/forums/topic.dml?id=212487
VISITED=1199729590
DESCRIPTION=explain Find Duplicate
ICONFILE=my.opera.com.ico

Are we on the same page here? If so, note that you can have duplicate bookmarks: two listings for same URL (used if you want multiple nicknames, by the way) - maybe that's the explanation: listings you're not seeing with iconfile lines, and duplicates without.

By bpm, # 22. January 2008, 22:53:46

avatar
Heres an example of whats in my opera6.adr file for a link on the personal bar that has a favicon:


ID=76
NAME=Speakeasy - Speed Test
URL=http://www.speakeasy.net/speedtest/
CREATED=1201026894
VISITED=1201042088
DESCRIPTION=Test the speed of your internet connection with Speakeasy's speed test.
ON PERSONALBAR=YES
PERSONALBAR_POS=16
UNIQUEID=19CDD80A350AEB47BE2A504ABE8141F8

How does that link to the favicon which IS in Opera's image file and does show up on the personal bar? There is no ICONFILE= I copied it as is. An idx file is also saved to the image folder when putting a link to the personal bar.

My thinking was that I should be able to just save a favicon from another website as sometimes the actual link that is saved doesn't have a favicon but the site has one somewhere, gastus.com for example and then rename it and change the ICONFILE= but there aren't any in my setup. Maybe I can but I have to get past this! :-)

By jteloffthegrid, # 23. January 2008, 00:15:26

avatar
Something new alright: that UNIQUEID line, which seems to have started with 9.5. In my 9.5, items have both the UNIQUEID and the FAVICON lines; but your experience seems to show that UNIQUEID can take on function formerly performed by FAVICON. (Theoretical possibility that you have duplicate bookmarks could be excluded by search on URL.)

Connection presumably passes through that IDX file you mention: can you open that? Is it in addition to an image file, such as an ICO or PNG? If it is essentially a connecting link which ties UNIQUEID string to image-file name, association procedure should not be too hard to parse.

By bpm, # 23. January 2008, 00:59:59

avatar
I can't open the IDX file but I can rename it, maybe thats all I need to do to link it? I'll give it a shot.

It would be nice if the link could just be made in the properties of the link, say an extra line for a favicon link.

I only started using Opera a few days ago, this is an amazing product.

By jteloffthegrid, # 23. January 2008, 02:13:26

avatar
Looked into this a bit. IDX file will open in Notepad (rightclick, "open with"). Here's what's in one (www.websudoku.com.idx):

http://www.websudoku.com/
http%3A%2F%2Fwww.websudoku.com%2Ffavicon.ico

Just URL, and filename of icon. Also tried removing ICONFILE line from my file - favicon on personal bar unharmed. Interpretation: ICONFILE lines in my ADR file are relics from 9.2 bookmarks I imported; 9.5 doesn't use them, has switched to IDX system, and you don't have them because you started clean with 9.5.

Also tried changing name of icon file, and second line of IDX, to simply sudoku.ico, to verify hunch that any name will work and format used by Opera is not essential. This worked fine.

So all you need to do is get the image file you want to use, and make an IDX file which ties the URL of the bookmark to the filename of the icon. Simplest: use Notepad; edit an existing IDX file and then save (that way you don't need to get the separators right: don't touch them, only edit the plain text in between). For example, to change icon associated with www.speakeasy.net: open www.speakeasy.net.idx, and replace the second line (second segment, when viewed in Notepad - linebreak becomes a blocky symbol) with filename of icon you want to use. For item currently lacking a favicon, name IDX file URL-from-bookmark.idx.

(System seems redundant: URLs serve as IDX file names, and then are repeated inside the IDX file. Could experiment to determine which really matters - or just copy redundant format.)

By bpm, # 23. January 2008, 07:44:37

avatar
When 9.5 becomes an official release I'll surely update this article. Indeed, this article applies to 9.2x versions, and maybe earlier versions, but I haven't tested that.
Thanks for stepping in in my absence bpm!

By Wandering electrons, # 23. January 2008, 08:14:26

avatar
Thanks I decided to leave it alone for now. My personal bar is full and only two sites have no favicon so they are identifiable for me.

I'll be back when 9.5 comes out of beta, thanks again!

By jteloffthegrid, # 23. January 2008, 23:50:51

avatar
can you do this with a mac, too? if so, how?

By papasmurfrock, # 17. May 2008, 15:35:58

avatar
Yes, you bring up a good point: the instructions here are de facto for Windows users (because I'm on windows). As for how to do it in a Mac, :left: :right: :confused: I have no idea. If anybody out there wants to do a "how to" for this for Mac users I'll add a shortcut to it from my article.

By Wandering electrons, # 17. May 2008, 17:12:21

avatar
Just to let you know: this doesn't work for javascript urls (bookmarklets). Not in 9.5

By kkad, # 17. July 2008, 00:27:30

avatar
Anonymous writes:

does anyone know how to put a favicon on a bookmark folder on the personal bar?

By anonymous user, # 2. August 2008, 22:10:29

avatar
That is presumably one of the things lost with the IDX system (along with icons for bookmarklets and data URLs). Used to be possible with the ICONFILE line, but now the system matches URLs - and the folder doesn't have one.

By bpm, # 2. August 2008, 23:09:59

avatar
Anonymous writes:

Thanks, bpm.

And how about to create a custom button that opens the bookmark folder? It would be essentially the same, but buttons can have icons.

I tried to create a custom button but I can't find the command for opening bookmark folders....

Any ideas?

By anonymous user, # 3. August 2008, 14:35:13

avatar
Nickname the folder, and give the button the action, Go to page,"nickname",,,"icon name". (To call a custom-made button, you will have to have put it into your skin folder and zipped that back up - which adds it to the set of named icons.) Come to think of it, that works for bookmarklets and data URLs too - more hassle than it used to be, but not impossible.

By bpm, # 3. August 2008, 14:47:45

avatar
Anonymous writes:

Hi,
I am using
http://www.mobilefish.com/services/favicon/favicon.php to create my favicons. This site also contains other useful tools.

By anonymous user, # 16. August 2008, 13:38:37

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

Please type this security code : e3ac18

Smilies