Hello @Racimo,
Thanks for writing in!
Instead of Modal Element, I would suggest we use the [button]
and [lightbox]
shortcodes to achieve this.
Button shortcode info: https://theme.co/apex/forum/t/shortcodes-button/151
Modal shortcode info: https://theme.co/apex/forum/t/shortcodes-lightbox/165
Please add this code in your page.
<!-- This is where you can add your content for your modal -->
<div id="my-content">
Content Here...
</div>
<!-- This is the button shortcode -->
<div style="text-align: left;">
<a href="#my-content" class="lightbox-selector x-btn" data-type="inline">Click Me</a>
</div>
<!-- This is the modal element shortcode -->
[lightbox selector=".lightbox-selector"]
Kindly read the notes in the code above enclosed by <!-- NOTES HERE -->
on what each line of code pertains.
Hope this helps.