Not signed in ( Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorUnicorn
    • CommentTimeOct 9th 2007 edited
     permalink
    i would like to have an own icon in the browser favorite list. where must i code the icon script in flatpress?

    please help, Unicorn
    •  
      CommentAuthorNoWhereMan
    • CommentTimeOct 9th 2007 edited
     permalink
    you can put it right in your theme with

    <link rel="icon" href="http://example.com/favicon.ico" />

    in header.tpl anywhere between and

    or you can even do a plugin:

    plugin.favicon.php
    ----------------------
    <?php
    /*
    Plugin Name: FavIcon
    Plugin URI: http://www.flatpress.org/
    Description: Adds a favicon to FlatPress
    Author: NoWhereMan
    Version: 1.0
    Author URI: http://www.nowhereland.it/
    */

    function plugin_favicon_head() {
    echo '<link rel="icon" href="' . plugin_geturl('favicon') .'imgs/favicon.ico" />';
    }

    add_action('wp_head', 'plugin_favicon_head');

    ?>



    create a 'favicon/' folder, create a favicon/imgs/ subdirectory and put there a favicon.ico file
    put in favicon/ your plugin.favicon.php file (with the contents above), save, enable from the panel, enjoy

    bye
    •  
      CommentAuthorUnicorn
    • CommentTimeOct 12th 2007
     permalink
    merci...i have done the first way.....works fine!

    thanks, Unicorn
    •  
      CommentAuthorNoWhereMan
    • CommentTimeMar 19th 2008
     permalink
    this plugin is now in SVN as part of the standard distribution