1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Calling Login Overlay within WordPress

Discussion in 'Styling and Customization Questions' started by LPH, Jan 11, 2013.

  1. LPH

    LPH Well-Known Member

    Is it possible to call the login overlay from within WordPress?

    This is what is in the header.php WordPress theme file. It simply rolls to /community/login.

                            <script>XenForo.LoginBar = function(a){};</script>
                            <span id="member" class="logIn_menu_class">
                            <a href="/community/login" class="OverlayTrigger concealed noOutline">Log In or Sign Up</a></span>
    Maybe the script needs to be changed. It was taken from this thread and works on the community side.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Just using OverlayTrigger will do it, but XenForo's javascript needs to be made available to the page. That means js includes in the head and perhaps inline javascript elsewhere. This isn't always clear cut and there can be conflicts when adding js like this.
    LPH likes this.
  3. LPH

    LPH Well-Known Member

    Ah - thank you for the guidance. I'll work on attempting to get the javascript into the WP side.

    PS - Guess that means I get to learn some javascript, too. :ROFLMAO:

Share This Page