How to place currency switcher on the site bottom?
- Using Smart Designer create currency switcher and remember its ID
- On the current WordPress theme file functions.php add next code:
add_action('wp_footer', function () { echo '<div class="woocs_bottom_switcher">' . do_shortcode("[woocs sd=14]") . '</div>'; ?> <style> .woocs_bottom_switcher{ position: fixed; right: 5px; bottom: 5px; rotate: 180deg; z-index: 99999; } .woocs_bottom_switcher .selectron23-container > div{ rotate: 180deg; backface-visibility: hidden; } .woocs_bottom_switcher .selectron23-container > span{ left: 10px; backface-visibility: hidden; } </style> <?php });
- Change 14 to to your shortcode ID
- Use 🙂