Tagged: x
-
AuthorPosts
-
April 24, 2016 at 1:05 pm #897615
Hello, can you describe me step by step, how to place WPML switcher to the topbar?
My website is http://www.fullon.cz
thank you so much
vojtech
April 25, 2016 at 2:27 am #898204Hi Vojtech,
To achieve that, create file _topbar.php in wp-content/themes/x-child/framework/views/global then copy the code below into that file.
<?php // ============================================================================= // VIEWS/GLOBAL/_TOPBAR.PHP // ----------------------------------------------------------------------------- // Includes topbar output. // ============================================================================= ?> <?php if ( x_get_option( 'x_topbar_display' ) == '1' ) : ?> <div class="x-topbar"> <div class="x-topbar-inner x-container max width"> <?php if ( x_get_option( 'x_topbar_content' ) != '' ) : ?> <p class="p-info"><?php echo x_get_option( 'x_topbar_content' ); ?></p> <?php endif; ?> <?php x_social_global(); ?> <span class="language-switcher"><?php do_action('icl_language_selector'); ?></span> </div> </div> <?php endif; ?>
Hope that helps.
-
AuthorPosts