Shortcode Examples Tab
The plugin includes a built-in Shortcode Examples tab in the plugin configuration with 12 ready-to-use examples. Simply click "Copy" on any example to copy it to your clipboard, then paste it into your content.
Basic Syntax
Here is the syntax to integrate image overlays into your content. Write the code in your article where you want to show the image overlay.
Basic Image with Overlay Text
{imageoverlay image="images/sample.jpg" overlaytext="Click to View"}{/imageoverlay}
Image with Icon and Overlay
{imageoverlay image="images/sample.jpg" overlaytext="View Details" icon="fa-search"}{/imageoverlay}
Image with Link
{imageoverlay image="images/sample.jpg" url="https://example.com" overlaytext="Visit Site" icon="fa-external-link"}{/imageoverlay}
Image with Custom Colors
{imageoverlay image="images/sample.jpg" overlaytext="Read More" overlaybgcolor="#000000" overlaytextcolor="#ffffff"}{/imageoverlay}
Image with Custom Size
{imageoverlay image="images/sample.jpg" imgwidth="500px" imgheight="300px" overlaytext="Custom Size"}{/imageoverlay}
Available Parameters
- image: Path to the image file (required)
- overlaytext: Text to display in the overlay
- icon: Font Awesome icon class (e.g.,
fa-search, fa-play)
- url: Link URL when image is clicked
- overlaybgcolor: Overlay background color (hex or rgb)
- overlaytextcolor: Overlay text color (hex or rgb)
- overlayopacity: Overlay opacity (0.0 to 1.0)
- overlayfontsize: Font size for overlay text (e.g.,
16px, 1.2em)
- overlaypadding: Padding for overlay content
- overlay: Set to
true for always-visible overlay
- imgwidth: Image width (e.g.,
500px, 100%)
- imgheight: Image height (e.g.,
300px, auto)
- alt: Alt text for the image
- class: Custom CSS class
Where to Use
You can add image overlay shortcodes in:
- Joomla articles (Article Editor)
- Custom HTML modules
- Any content area that supports HTML