Login in header of WP template

Discussion in 'Integration' started by bob911, Mar 18, 2013.

  1. bob911

    bob911 New Member

    Joined:
    Mar 8, 2013
    Messages:
    6
    I would like to have a login/out link somewhere in the header of my wordpress theme i know there is a widget for the sidebar but i only have the sidebar on some of the pages and I want the login/out link shown in the header all through out the site

    any advice would be great thanks :)
  2. gswaim

    gswaim CGI-Central Partner

    Joined:
    Jul 2, 2003
    Messages:
    641
    Assuming you have a widget area in your header, you could use 2 aMember text widgets to display one set of links to a visitor and one set of links to a logged in user. You can see this concept used in a sidebar widget in this screencast.

    You create the hyperlinks using the standard HTML code. You could just put a "Login" link in an aMemeber text widget configured to be visible to someone not logged in. And pug a "Logout" link in an aMember text widget configured to be visible only to someone logged in.
  3. bob911

    bob911 New Member

    Joined:
    Mar 8, 2013
    Messages:
    6
    thanks, i think that will work fine :)

Share This Page