• 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

LPH

Well-known member
#1
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.
 

Jake Bunce

XenForo moderator
Staff member
#2
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

Well-known member
#3
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: