Favicon links

Discussion in 'Customization & add-ons' started by toddro, Aug 21, 2021.

  1. toddro

    toddro aMember Pro Customer

    Joined:
    Apr 4, 2016
    Messages:
    10
    Can anyone tell me where to put favicon links (like the one below) in the Amember folder so that the favicon will show up on Amember pages?

    <link rel="icon" href="https://www.domain.com/image/favicon.svg">
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    Hello,

    You can either add it to template file:
    application/default/views/layout.phtml

    or put the following code snippet to site.php file:
    https://docs.amember.com/docs/Site_php_file

    PHP:
    Am_Di::getInstance()->view->placeholder('head-start-user')->append(<<<CUT
    <link rel="icon" href="https://www.domain.com/image/favicon.svg">
    CUT
    );

Share This Page