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

XF 1.2 XenOverlay Class

Discussion in 'Styling and Customization Questions' started by Warchamp7, Apr 3, 2015.

  1. Warchamp7

    Warchamp7 Active Member

    When you open say, a member card, the resulting XenOverlay div it creates has the classes .XenOverlay and .memberCard

    If I'm modifying something to open in a XenOverlay, how do I go about having a class get added to the XenOverlay div itself like that?
     
  2. Mike

    Mike XenForo Developer Staff Member

    You define it in your template. You can see an example in language_chooser:
    Code:
    <div class="section" data-overlayClass="chooserOverlay">
     
  3. Warchamp7

    Warchamp7 Active Member

    Awesome, thanks.

    Is there a graceful way to prevent the default inline styles from being applied? Or do I simply have to use !important to override it?
     

Share This Page