[wpcs]
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.
- desc – on the front will be shown currency description in the drop-down option
- code – will be shown currency code and its sign in the drop-down options
- 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:
<?php echo do_shortcode('[wpcs show_flags=1 txt_type="desc"]'); ?>