• Heya, me again!

    So I’ve noticed that my favicon only shows up on the home page (https://wavegaming.net/) and not on other pages and individual posts. Is there any way I can fix this?

    The code for the favicon in the header.php is this

    <link rel="icon" href="href="animated_favicon1.gif" type="image/x-icon" />
    <link rel="shortcut icon"href="animated_favicon1.gif">

    I’ve also added <link rel="shortcut icon"href="animated_favicon1.gif"> to my 404 template, page template and single post template, but still nothing :/

    Is there something I’m doing wrong?

    Any help is appreciated

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You have to reference the proper directory. If your favicon is in your template directory (same as styles.css) use this:

    <link rel="icon" href="<?php bloginfo('template_url'); ?>/animated_favicon1.gif" type="image/x-icon" />
    <link rel="shortcut icon"href="<?php bloginfo('template_url'); ?>/animated_favicon1.gif">

    Thread Starter Wavegaming

    (@wavegaming)

    I inserted what you said in the header.php file and used https://wavegaming.net/wp-content/themes/aristo/header.php as the link, but now it doesn’t work at all :/

    Thread Starter Wavegaming

    (@wavegaming)

    Haha, nevermind, got it to work by simply using <link rel=”shortcut icon”href=”<?php bloginfo(‘template_directory’); ?>/animated_favicon1.gif”>

    Thanks for your help!

    Thread Starter Wavegaming

    (@wavegaming)

    But I have another issue and I wouldn’t want to create another topic for it :/

    Whenever you click on an image in my theme it takes you to a page where the image is shown as if it were a post itself. Is there any way I can send it directly to a blank page?

    For example I don’t want it to show like this

    I want it to show like this

    Once again any help is appreciated ??

    Thread Starter Wavegaming

    (@wavegaming)

    Any help on this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Favicon only showing on home page’ is closed to new replies.