Changing Header Logo Link

Discussion in 'Templates customization' started by chrome62, Apr 14, 2015.

  1. chrome62

    chrome62 Member

    Joined:
    Apr 22, 2008
    Messages:
    90
    This should be simple, but I can't find where the link is set.

    All I want to do is change the link that is set to www.domain.com/member/application/default/views/public/img/header-logo.png

    Currently it takes the user to /member/

    I would rather it take the user to /
    (www.domain.com/)

    The problem is that with mobile, once someone hits the signup page, there is no way back to the site.
    Then they usually just leave.

    Would also be nice to set an alt text for that or a title attribute so when you mouse over, you see the text that would say "return to main site". TIA.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You can change this link in amember CP -> Setup -> Default Theme -> Logo Link URL
  3. chrome62

    chrome62 Member

    Joined:
    Apr 22, 2008
    Messages:
    90
    Thanks for the reply Alexander!
    Any reason why that URL text would be greyed out and unable to change?
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    No reason for this.
    Do you use different (not default theme)?
  5. lucky_ray

    lucky_ray aMember Pro Customer

    Joined:
    May 27, 2013
    Messages:
    31
  6. lucky_ray

    lucky_ray aMember Pro Customer

    Joined:
    May 27, 2013
    Messages:
    31
    I had the same problem. The header's url was mysite/amember/. This url seems to be derived from what is set in Setup/Configuration main page for "Root URL and License Keys". I didn't want to change it there because the example given on that dialog suggests that it's supposed to be mysite/amember.

    Instead I edited _logo.phtml found in /amember/application/default/views/

    Changed first line from:

    <a href="<?php p($theme->getConfig('home_url', REL_ROOT_URL . '/')) ?>">

    to:

    <a href="http://mysite.com">

    Seems to work for me.
  7. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    It is better to change this url in theme configuration. This way it is upgrade proof. Gray text is placeholder that show default value of this settings (root url of your aMember installation). You can change it to any desired value.
  8. lucky_ray

    lucky_ray aMember Pro Customer

    Joined:
    May 27, 2013
    Messages:
    31
    I can change the root url at Setup/Configuration, Root URL and License Keys? I was afraid to change it because the text beneath those fields that describe its content is:

    "root script URL, usually http://www.yoursite.com/amember"

    So I thought it had to be the amember directory. That would be much easier and that's how I will do it in the future.
  9. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    You do not need to change root url. I mean you can change link of logo in theme configuration at
    aMember CP -> Configuration -> Setup/Configuration -> Default Theme (Logo Link URL)
  10. lucky_ray

    lucky_ray aMember Pro Customer

    Joined:
    May 27, 2013
    Messages:
    31
    oh I see... I have my own theme and it looks like that option is not available to me...

Share This Page