Add a Favicon to the Admin Interface


(Squiz) #1

If you’re like me and have a bunch of app tabs, the Matrix Admin Interface stands out like a sore thumb without a favicon. Fortunately it’s reasonably easy to add one.


This involves editing Matrix source files, so if you’re not comfortable with this you should stop here. you should also take care to make backups of any files you do edit.



[list=1]

  • Upload a new favicon sized file to your Matrix site. I made a quick and dirty one which you can use if you’d like.

    [] On your web server make a backup of the core/include/backend.inc file, and open it in your editor.

    [
    ] Search for
        <?php echo $page_title; ?>


    [] Enter the following line (customised to taste) after the content-type definition:
        


    [
    ] Save and enjoy your favicon.


    Hopefully this will one day be a default but until then, this will work just as well.

  • (Benjamin Pearson) #2

    [quote]
    If you’re like me and have a bunch of app tabs, the Matrix Admin Interface stands out like a sore thumb without a favicon. Fortunately it’s reasonably easy to add one.



    This involves editing Matrix source files, so if you’re not comfortable with this you should stop here. you should also take care to make backups of any files you do edit.



    [list=1]

  • Upload a new favicon sized file to your Matrix site. I made a quick and dirty one which you can use if you’d like. [] On your web server make a backup of the core/include/backend.inc file, and open it in your editor.[] Search for
        <?php echo $page_title; ?>
    [] Enter the following line (customised to taste) after the content-type definition:
        
    [
    ] Save and enjoy your favicon.



    Hopefully this will one day be a default but until then, this will work just as well.

    [/quote]



    Added as a minor enhancement to the bug tracker: Enhancement #5045

  • (Squiz) #3

    Thanks. I probably should have done that, but I just wanted to document this in case I needed it in future. :slight_smile:


    (Benjamin Pearson) #4

    [quote]
    Thanks. I probably should have done that, but I just wanted to document this in case I needed it in future. :slight_smile:

    [/quote]



    No probs :slight_smile: . It is probably something that should be added since the new browsers (Firefox 4, Chrome 10+ etc) can pin tabs (favicons identify the different tabs).


    (Squiz) #5

    Actually, have you guys got a better favicon somewhere? I tried to scrape that out of the logo on matrix.squiz.net but it's pretty wonky and it's been bugging me.


    Or is there a Squiz/Matrix branding document somewhere?


    (Greg Sherwood) #6

    We have a Squiz Matrix favicon on our site. You can grab it at: http://matrix.squizsuite.net/favicon.ico


    Don't have one handy for the old product name/colours.


    (Squiz) #7

    Perfect, thanks! :slight_smile:


    (Anton Babushkin) #8

    I've always just uploaded a favicon.png file under my site asset and it worked perfectly fine (e.g. mysite.com/favicon.png).