WordPress.org

Ready to get started?Download WordPress

Forums

Tonic
- How to add favicon image? (1 post)

  1. tg1
    Member
    Posted 7 months ago #

    Hey,

    Have tried adding favicon through functions code - but not appearing.

    Need some help. Thanks!

    Code used:

    <?php
    function blog_favicon() {
    	echo '<link rel="Shortcut Icon" type="image/x-icon" href="'.get_bloginfo('stylesheet_directory').'/favicon.ico" />' . "\n";
    }
    add_action('wp_head', 'blog_favicon');
    ?>

Reply

You must log in to post.

About this Theme

About this Topic