• Hi

    (Im using K2) and would like to have a favicon for my page. I have the favicon.ico ready, but I dont know how to integrate the bit of html that I have to put in the <head> html tags.

    I hope you can help.

    You can write me via jesperqvist.dk

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Add this into your theme’s header.php file, in the right place:

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

    Thread Starter 725074

    thanks… But you hit the nail right on the head… Where is the right place?

    Not finding it by trial and error, right?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    … I really don’t see how I could be any clearer.

    1. your theme’s header.php file
    2. in the <head> section (you knew that already)

    What more do you need to know?

    Thread Starter 725074

    Im a little bit worried about changing the code myself, but I tried. No change at all. I did add my page as a favorite to test it.

    Now I hope you will help me with the code:

    The original code is:<head profile=”https://gmpg.org/xfn/11″&gt;
    <title><?php

    // Page or Single Post
    if ( is_page() or is_single() ) {
    the_title();

    // Category Archive
    full path for the favicon.ico:
    https://www.jesperqvist.dk/JQ/favicon.ico

    And the link you provided was:
    <link rel=”shortcut icon” href=”https://example.com/favicon.ico&#8221; type=”image/x-icon” />

    How do they combine for the win?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Well, you obviously have to change the example.com bit to be the link to your favicon instead.

    However, I really fail to understand the problem you’re experiencing here. What is so difficult to understand about this? Do you not know HTML at all?

    <head profile="https://gmpg.org/xfn/11">
    <link rel="shortcut icon" href="https://example.com/favicon.ico" type="image/x-icon" />
    <title> ... whatever else ...

    What’s so bloody hard about that?

    Otto42, Either jesperqvist has trouble understanding some basics about code- not everyone is as familiar with you likely are with code- or there are some language difficulties. In either event, may I suggest that you tone down your responses a bit? “What more do you need to know?” and “What’s so bloody hard about that?” are not helpful responses, and in fact may be hurtful to some people. I know I, for one, would not like to read that in a reply from a moderator. You have a position of responsibility on this forum, and people turn to you for help, not insults. thank you for your consideration.

    @jfmclaugh

    For one thing, you just ranted at Otto over a month old post. Chill already. For another, the original poster asked a question that has nothing to do with WordPress so he’s lucky to have gotten any help at all. This is a WordPress forum not an HTML forum.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘favicon’ is closed to new replies.