Macro Variables supported by Wonder Carousel
A macro variable supported by Wonder Carousel starts with two underscores and ends with two underscores. The list of supported macro variables is as follows:
Macro Variable | Description |
---|---|
__IMAGE__ | Image HTML code |
__TITLE__ | Title text |
__DESCRIPTION__ | Description text |
__BUTTON__ | HTML code for the button |
__SOCIALMEDIA__ | HTML code for social media buttons |
__HREF__ | URL for the slide |
__TARGET__ | Link target for the slide |
__CLICKHANDLER__ | JavaScript onclick event handler script for the slide |
__ID__ and __TOTAL__ | ID of the slide and total slide number of the carousel.
These two macro variables will function correctly only in the absence of dynamically created carousel items, such as WordPress posts or YouTube playlist, etc. If you are creating a carousel with dynamically generated items, choose the option 'Support macro variables on the front-end' and utilize the macro variables listed in the following table. |
If the option 'Support macro variables on the front-end' is selected, the macro variables in the following table will be supported. These macro variables must be placed inside DIVs with the CSS class names amazingcarousel-title
, amazingcarousel-description
, amazingcarousel-button
or amazingcarousel-socialmedia
.
Macro Variable | Description |
---|---|
__SLIDEID__ and __SLIDETOTAL__ | ID of the slide and total slide number of the carousel. |
__SLIDECOPYLINK__ | Add a button to copy the slide URL to the clipboard |