Hello to you all, I’m trying to creat a WPML language switcher (flag only) and tied doing that by following instructions from other threads. But no flag is showing in the topbar. Can you tell me what I missed?
-
turned on Topbar in the Customizer
-
Enabled WPML language switcher in custom locations
-
Created this _topbar.php file in wp-content>themes>x-child>framework>views>global
<?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; ?>
Thanks!

Thanks a lot!