Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/06/20 in all areas

  1. you should have just needed to copy the link line of code from the hook - I probably should have made that bit clear to you. 🙂 all the hook does is insert this favicon html code into the header template for you... but with the login page, you'll do it manually.
    1 point
  2. no it lacks something - it isn't an admin area page and therefore isn't designed to accept the values from the hook that will work on the admin pages... just adding it to the login.tpl template would be the simplest way... it will get overwritten during an update, so you'll just have to remember to put it back afterwards.
    1 point
  3. and to you too. 🙂
    1 point
  4. if you cut the hook down to it's absolute simplest, then it works for me (obviously change the URL to the path of your favicon!)... <? add_hook('AdminAreaHeadOutput', 1, function($vars) { return '<link rel="icon" href="https://www.domain.com/favicon.ico"/>'; }); possibly you might need to add... type="image/x-icon" into the link code, but i'm not seeing the need locally.
    1 point
  5. you could cut the number of lines, e.g instead of declaring an array and returning it, just return the string. you should just need to change the filename in the link - that's all. if you're not going to view your admin area via mobile devices, or at least don't need to see facicons when doing so, then you won't need those middle 2 lines - just the first and the return.
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated