Support » Themes and Templates » Word-Space for “subnav” class with Wp-Multilanguage

  • Hi
    I’ve installed WP_Multilangues and now active languages are showing properly except for one point: there is now space between words.

    This is the multilanguage code:

    echo “<div id=’subnav’>”;
    foreach($GLOBALS[‘AviableLanguages’] as $_K=>$_I){
    if ($_I[‘lang_shortcode’] != $language){
    $link = WP_Multilingual::LanguageLink($_SERVER[‘REQUEST_URI’], $_I[‘lang_shortcode’]);
    echo “<span>”.$_I[‘name’].”</span>“;
    }} echo “</div>”;?>

    And this is the CSS:

    #subnav {
    float: right;
    color: #666666;
    font-size: 10px;
    width: 675px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-transform: uppercase;
    text-align: right;
    padding-right: 10px;}
    #subnav a:link {
    color: #666666;
    font-size: 10px;
    text-transform: uppercase;}
    #subnav a:hover {
    color: #990000;
    font-size: 10px;
    text-transform: uppercase;}

    Web Site is:

    I’ve tried using “word-spacing” tag and it didn’t work out. Could anyone help me with this? Thanks

Viewing 1 replies (of 1 total)
  • define the span class…in the php first change:
    `echo “<span class=”span-1″>”.$_I[‘name’].”</span>”;

    then define the span attribute in your css…example:
    span-1 {word-spacing: 10px}

    maybe even this will work in your php file:
    echo "<span style="word-spacing:10px;">".$_I['name']."</span>";

Viewing 1 replies (of 1 total)
  • The topic ‘Word-Space for “subnav” class with Wp-Multilanguage’ is closed to new replies.