Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Alternate Favicon for the Admin?

    Hi!

    Is there a way to provide an alternate favicon for Admin pages?

    I often have a zillion tabs open, looking for a quick way to distinguish between tabs containing site pages and tabs containing Admin pages.

    My guess is I could provide an alternate favicon path in the admin index somehow? Or maybe I could simply drop a dif favicon into the folder where the admin index lives (so I didn't have to alter any core)?

    Dunno. Anybody done this?

    Thanks!

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,489
    Plugin Contributions
    88

    Default Re: Alternate Favicon for the Admin?

    What you're requesting is "difficult" because of the way that the admin-level tools/pages work. Each page/tool controls its own <head> information, so there would need to be a way to inject that updated favicon's name into all.

  3. #3
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Alternate Favicon for the Admin?

    Exactly. lat9 is right. It's ugly:
    You'd need to edit (nearly) all of your /admin/*.php files (but not likely the files in any admin subdirs) and search for this:

    Code:
    <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
    and add this on a new line below it:
    Code:
    <link rel="icon" href="admin_favicon.ico" type="image/x-icon" />
    <link rel="shortcut icon" href="admin_favicon.ico" type="image/x-icon" />
    ... or some variation of that.
    Remember, every browser handles favicons with its own quirks, so you might need to flush cache, make bookmarks, delete history for old admin pages in your browser history, and experiment with various .ico file formats.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Re: Alternate Favicon for the Admin?

    Yuck, what a pain.

    As convenient as it would be, looks like it's not worth the effort.

    If I end up doing it, I'll come back and list off the steps and files to edit.

    Thanks for the input you guys!

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Alternate Favicon for the Admin?

    FYI, it'll be a breeze in v160 ... as we've already centralized that part of the code. (Introduced here: https://github.com/zencart/zencart/c...695feef6af70f4 )
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Re: Alternate Favicon for the Admin?

    sweeeet

 

 

Similar Threads

  1. v154 Where does the image for the favicon.ico go?
    By SilverHD in forum General Questions
    Replies: 16
    Last Post: 1 Dec 2015, 04:09 AM
  2. Specifying unique favicon for admin
    By ronlee67 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 14 Jan 2012, 12:15 AM
  3. Alternate favicon from root directory?
    By Lyon in forum General Questions
    Replies: 8
    Last Post: 15 Dec 2010, 08:36 AM
  4. Replies: 2
    Last Post: 8 Sep 2010, 01:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR