Wpml language switcher (only flags) in topbar

Hi, I would like to add a language switcher to the topbar. I followed a previous thread (closed, otherwise I would have written there), and I managed to insert in the file _topbar.php this code:

<?php

// =============================================================================
// VIEWS/GLOBAL/_TOPBAR.PHP
// -----------------------------------------------------------------------------
// Includes topbar output.
// =============================================================================

?>

<?php if ( x_get_option( 'x_topbar_display', 0 ) == 1 ) : ?>
<?php if ( x_get_option( 'x_topbar_content' ) != '' ) : ?>

<?php echo x_get_option( 'x_topbar_content' ); ?>

<?php endif; ?> <?php do_action('icl_language_selector');?> <?php x_social_global(); ?>
<?php endif; ?>

but, as you can see by the screenshot,
it shows only words. I would like to add only flags in the exact same position.
Thank you very much for your support.

Sorry guys, I managed to have what I needed. For those who have my same problem, there is an option in wpml menu (language) to switch on custom langage selector and customise it.
Thank you again and sorry if I have bothered you.

No worries. Glad you’ve sorted it out.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.