WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to make favicon show on register/login page? (15 posts)

  1. Owen
    Member
    Posted 1 year ago #

    I currently have a favicon on every page of my site(including the admin) except the register/login page. On there for some reason the oldest favicon on my site is there a modification I can make so the RIGHT favicon will show?

  2. Ayman
    Member
    Posted 1 year ago #

    I just checked your website and the same favicon is rendering everywhere even on register/login page.

  3. Owen
    Member
    Posted 1 year ago #

    What favicon is it? Is it the transparent one or the one with the white backround

  4. Ayman
    Member
    Posted 1 year ago #

    It looks like transparent for me...

  5. Owen
    Member
    Posted 1 year ago #

    can you send me a picture of both the site and the login/register page please?

  6. Owen
    Member
    Posted 1 year ago #

    oh wait, I know why it wasn't showing on my browser because my browser is an older browser and HTML kit favicon validator said the favicon will only work with newer browsers, so how can I make the favicon on the login/register page show on older browsers aswell?

  7. Owen
    Member
    Posted 1 year ago #

    oh wait, I know why it wasn't showing on my browser because my browser is an older browser and HTML kit favicon validator said the favicon will only work with newer browsers, so how can I make the favicon on the login/register page show on older browsers aswell?

  8. Owen
    Member
    Posted 1 year ago #

    found a suloution!

    function favicon4admin() {
     echo '<link rel="Icon" type="image/x-icon" href="http://www.owensinclairjones.co.uk/wp-content/uploads/2013/07/favicon5.ico" />
     <link rel="Shortcut Icon" type="image/x-icon" href="http://www.owensinclairjones.co.uk/wp-content/uploads/2013/07/favicon5.ico" />';
     }
     add_action( 'login_head', 'favicon4admin' );
     add_action( 'admin_head', 'favicon4admin' );
  9. Lab Lover
    Member
    Posted 1 year ago #

    Can you tell me where you inserted the code which you published above?

  10. Owen
    Member
    Posted 1 year ago #

    At the bottom of functions.php

  11. Lab Lover
    Member
    Posted 1 year ago #

    I see thank you! This means that every time we update WordPress we will have to re-modify the functions.php file, correct?

  12. Owen
    Member
    Posted 1 year ago #

    I suppose so. It might be able to be made into a plugin though or you could use child theme.

  13. Lab Lover
    Member
    Posted 1 year ago #

    Wait, the functions.php file in the theme folder, correct? If so, I think we can avoid losing the modifications by creating a child theme.

  14. Owen
    Member
    Posted 1 year ago #

    Yes. Thats what I suggested above

  15. Lab Lover
    Member
    Posted 1 year ago #

    Yes, you did! Apparently I am not only losing my hair but my reading comprehensions skills as well! :-)

    Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic