data-target=".selector" to a data-xf-click="overlay" element will load an overlay from that HTML. (It doesn't look like we use this in the default code though so it's possible there are some quirks.)I'm pretty sure that applyingdata-target=".selector"to adata-xf-click="overlay"element will load an overlay from that HTML. (It doesn't look like we use this in the default code though so it's possible there are some quirks.)
.overlay element, .overlay-title, .overlay-content, etc).<span data-xf-click="overlay" data-target=".custom-overlay">Click me!</span>
<div class="overlay-container custom-overlay">
<div class="overlay">
<div class="overlay-title">
Custom overlay title
</div>
<div class="overlay-content">
<div class="block-container">
<div class="block-body">
<div class="block-row">
This actually works :)
</div>
</div>
</div>
</div>
</div>
</div>
It removes the custom class of "custom-overlay" when it does load which is a bit disappointing as it doesn't seem you can set a unique class on that parent "overlay-container" level.
We use essential cookies to make this site work, and optional cookies to enhance your experience.