This is the main shortcode in the plugin which generates drop-down or flags on the front of the site which allow users to switch currencies.
Attributes:
- txt_type - 2 possible values: desc and code.
- flag_position - (ddslick only) flag position. You can set side: left or right.
- width - width in px or %. Set its value like '300px' or '75%'
- show_flags - show or hide flags. Possible values: 1 or 0
If you want to set the switcher somewhere in the site code, for example in your wp theme header.php or footer.php use next code please:
1 | <?php echo do_shortcode('[wpcs show_flags=1 txt_type="desc"]'); ?> |
