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

XF 1.1 Overlay for opt-in form

Jake Bunce

XenForo moderator
Staff member
#2
Yes it's possible.

XenForo's API lets you do this:

Code:
<a href="LINK" class="OverlayTrigger">TEXT</a>
That will open the link in an overlay. But the content of the linked page must be suitable for an overlay which means:

1) The background should be opaque.

2) The content template should have a single top-level element (e.g. everything contained in one parent div).
 

fredrikse

Active member
#3
That's great news! What I really would like is what you just described plus some mechanism that randomly makes the overlay pop up and let the user sign up for a newsletter (opt-in code for the form is done). Is that possible?