WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Newbie question regarding tab icons (4 posts)

  1. Prodromoi
    Member
    Posted 5 years ago #

    I'm a complete newb to WordPress, so this may be a common question, but I can't find the answer.

    I've installed WP onto my own site (hosted by my ISP), installed a theme (which I will likely change as I get things settled) and started to get the hang of things.

    How can I add a tab-icon (I think I've seen them referred to as 'favicons') to the blog I've set up? I know that I'll need to specify where the icon is stored online, but what's the simplest/best way of incorporating that into the blog?

    Thanks in advance.
    A

  2. The easiest way is to upload a favicon.ico into your root wordpress folder, and/or the root of your website. Most (if not all) modern browsers pick that up. I think even IE 6 does.

    Failing that, upload your favicon.ico and add the below code inside header.php for your theme:

    <link rel="shortcut icon" href="http://yourdomain.comfavicon.ico" type="image/x-ico"/>

    See also: http://en.wikipedia.org/wiki/Favicon
    and : http://www.amoswong.com/how-to-add-a-favicon-in-wordpress-blog.html

    for more info and advice :)

  3. Prodromoi
    Member
    Posted 5 years ago #

    Thanks, that's a great help. I hoped it would be simple but that was better than I could have hoped!

    Just putting it in the root directory didn't work (I tried both the main website root directory, and the root directory for the blog) but it didn't show up when refreshing, so I went for the second option.

    I used a relative location in the href in case I want to rename the directory or move it, so added this slight variation of your line:

    <link rel="shortcut icon" href="favicon.ico" type="image/x-ico"/>

    Many thanks.
    A

  4. Just remember that a relative location is relative to the page. If you put the icon in your theme folder, that should work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.