FAQ
Does Reveal Modal need jQuery?
- No. v1.5 is pure vanilla JavaScript.
What is the basic shortcode?
{reveal text="Click Here"}Your content{/reveal}
Which attributes are supported?
text,class,title,id,size,width,height,animation,speed,closebg,closeesc.
How do I change the trigger label?
- Use
text="My label"on the opening shortcode.
- Use
How do I style the trigger as a button?
- Add
class="btn btn-primary"(or your template’s button classes).
- Add
How do I set the modal size?
- Use
size="sm|md|lg|xl|full", or set exactwidth/height.
- Use
How do I choose an animation?
- Set
animation="scale",fade,slide, ornone. Optionalspeed="400".
- Set
Can I add a title heading?
- Yes —
title="Welcome"adds an accessible dialog heading.
- Yes —
How do I open a modal from a URL hash?
- Set
id="welcome-modal", then link to#welcome-modalor callRevealModal.open('welcome-modal').
- Set
How do I embed a YouTube video?
- Put an iframe (ideally inside
.reveal-modal__media) between the shortcode tags. Playback pauses when the modal closes.
- Put an iframe (ideally inside
How do I make a confirmation popup?
- Use
closebg="false"and action buttons with classclose-reveal-modal.
- Use
Can I customize colours and blur?
- Yes — in plugin Styling Settings (overlay, blur, background, text, close colour, padding, margin, radius).
Can I use multiple modals on one page?
- Yes. Each gets a unique id automatically, or set your own with
id.
- Yes. Each gets a unique id automatically, or set your own with
How do I close a modal?
- × button, backdrop click (if enabled), Escape (if enabled), or a
close-reveal-modalbutton.
- × button, backdrop click (if enabled), Escape (if enabled), or a
Where are shortcode examples?
- Plugin parameters → Shortcode Examples tab (copy buttons included).
Which Joomla versions are supported?
- Joomla 4.x, 5.x, and 6.x (PHP 8.0+).
Where should I place shortcodes?
- In articles or Custom HTML modules — not in CSS files.