1. 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

Discussion in 'Styling and Customization Questions' started by fredrikse, Feb 8, 2015.

  1. fredrikse

    fredrikse Active Member


    Is it possible to create an overlay for an opt-in form in Xenforo?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yes it's possible.

    XenForo's API lets you do this:

    <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).
  3. fredrikse

    fredrikse Active Member

    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?
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    fredrikse likes this.

Share This Page