Add site name to page titles?

Discussion in 'aMember Pro v.4' started by krhaynes, Mar 22, 2012.

  1. krhaynes

    krhaynes New Member

    Joined:
    Oct 17, 2011
    Messages:
    22
    Anyone know how to make aMember pages output/display the site name (from Setup/config "Site Title" in admin) in the page titles all I get now is the name of the page... I'm not sure which template I should edit or what setting to adjust. I looked through the docs.

    for example:

    "Please login |"

    should be:

    "Please login | Site Name"
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Think you can just edit layout.phtml. amember/application/default/views

    <title><?php echo $title ?></title>

    Add your site title after the php tags

    David
  3. krhaynes

    krhaynes New Member

    Joined:
    Oct 17, 2011
    Messages:
    22
    Thank you for the reply, David. It didn't work for me...I added it like this (as I think you suggested?) to the layout.phtml file:
    <title><?php echo $title ?>My Site</title>

    Any ideas?
    Kevin
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    What exactly layout.phtml did you add it to ? (must be application/default/views/layout.phtml)
    Also, are you using WP theme integration?
  5. krhaynes

    krhaynes New Member

    Joined:
    Oct 17, 2011
    Messages:
    22
    Yes, that is what I edited:
    (must be application/default/views/layout.phtml)​

    Yes, I am using a WP theme, and all other pages display the site title correctly, its just the aMember pages. It sounds like there is a conflict, any suggestion on how to fix it?​
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Can you contact me in helpdesk? I can't recreate this issue on my local installation.
  7. krhaynes

    krhaynes New Member

    Joined:
    Oct 17, 2011
    Messages:
    22
    Sure thing, I'll send you a message now.
  8. mpowerme

    mpowerme New Member

    Joined:
    May 2, 2009
    Messages:
    1
    How do I integrate my site theme with aMember for things like the sign=up pages?
  9. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Was this figured out?
    What page needed to be edited?

    David
  10. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    This depends on theme being used.
    Some themes change a way wordpress work with site templates and do not execute native wordpress hooks.

Share This Page