• sheddy

    (@sheddy)


    Noticed my favicon has stopped working around the time upgraded to latest 4.4/4.5 versions of dkret3. Don’t know whether it is really anything to do with the theme, or just something else wrong in my WordPress configuration. According to the webserver log files the favicon is being looked for in the /public_html/library/images/ folder, which doesn’t exist It should be looking in /public_html/dkret3/library/images from what I can gather? Not sure where this gets set – in the theme files, or somewhere inside WordPress? Reading some of the WordPress articles about favicons, I expected to see something in the header.php file, but mine doesn’t, and I don’t remember ever changing it so it did when it had been working. Anyone else having any problems with favicons or can point me in the right direction? thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • beingzoe

    (@beingzoe)

    The easiest way to deal with favicons is to simply put them in the root of your website.

    /myhostlogindirectory/
        /httpdocs/
            /favicon.ico

    Or something like that. Wherever the main page of the site is (nothing to do with WordPress or your theme). There is no need to put anything your html to make a favicon work UNLESS you need to put somewhere besides in the root of your site.

    Be aware though that if your browser is showing another favicon then it can take a while before you see the change when you do put it in the right spot because browsers tend to cache that pretty hard.

    But if your server logs say that clients are looking elsewhere for the favicon then that means it is being set somewhere in your theme. Search for “favicon” in your entire theme and you should find something. Then remove that, put the favicon.ico in your root directory and be done ??

    Hope that helps. Find your day well.

    kretzschmar

    (@kretzschmar)

    Yes, you are right. There is still a bug in this version. I already fixed it here locally for the next version.

    You can fix the problem inside header.php. Just add a little “echo”:

    <link rel=”shortcut icon” href=”<?php get_stylesheet_directory_uri(); ?>/library/images/favicon.ico” />

    –>

    <link rel=”shortcut icon” href=”<?php echo get_stylesheet_directory_uri(); ?>/library/images/favicon.ico” />

    I suggest to remove this line if you don’t want to add your own favicon and ALSO don’t want the default dkret favicon.

    There will be a better fix in the next release, stay tuned.

    Thread Starter sheddy

    (@sheddy)

    many thanks for the answers.
    I’ll try changing the header shortly.
    best regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Favicon problem with dkret3 4.5?’ is closed to new replies.