WordPress.org

Forums

Tonic
- How to add favicon image? (2 posts)

  1. tg1
    Member
    Posted 1 year 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');
    ?>
  2. Rob
    Member
    Posted 8 months ago #

    try using all in one favicon plugin

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic