Hi,
i wish Xtheme staff a Merry Christmas and a Happy New Year.
I´m trying to put language switcher in Top Bar, i´ve added Polylang custom code to _topbar.php via child theme, /themes/x-child/framework/legacy/cranium/headers/views/global
<?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(); ?>
<ul class="language-switcher right">
<?php pll_the_languages( array( 'show_names' => 1 ) ); ?>
</ul>
</div>
</div>
<?php endif; ?>
This part is OK to show custom language switcher.
I´ve tried tweak the switcher via CSS on Theme Global CSS with this code:
/language switcher align/
.lang-item {
display: inline;
content: “|”;
padding: 0 .5em;
}
It should stay like this: PT | EN
What is wrong here, can you help me with this?
Att.
José Lampreia