Calling Login Overlay within WordPress

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.

Code:
                        <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.
 
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.
 
  • Like
Reactions: LPH
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.

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:
 
Top Bottom