• 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

Warchamp7

Active member
#1
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?
 

Mike

XenForo developer
Staff member
#2
You define it in your template. You can see an example in language_chooser:
Code:
<div class="section" data-overlayClass="chooserOverlay">
 

Warchamp7

Active member
#3
You define it in your template. You can see an example in language_chooser:
Code:
<div class="section" data-overlayClass="chooserOverlay">
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?