Jump to content

[SOLVED]remove scrolling block language


Recommended Posts

remove scrolling block language

 

 

Forgive me for my bad English.

I apologize, maybe the title of the topic is wrong, if so please to be able to inform and include a fair title.

 

this is my request, I would like to remove the drop-down menu, and make the flag appear on a single line like this site http://www.testsenvrac.com/

 

 

work on 1.5.4.1 ps this is the link http://iopistoia.wes...stoia/index.php where I installed ps to work on the topic

 

 

thanks

Edited by lui1969 (see edit history)
Link to comment
Share on other sites

hello

 

everything is clear for me, but unfortunately it isn't as simple as it seems.

open the blocklanguages.tpl file and use this code:

<div id="languages_block_top">
<div id="countries">
{* @todo fix display current languages, removing the first foreach loop *}
 <ul>
 {foreach from=$languages key=k item=language name="languages"}
  <li {if $language.iso_code == $lang_iso}class="selected_language"{/if}>
  {if $language.iso_code != $lang_iso}
{assign var=indice_lang value=$language.id_lang}
{if isset($lang_rewrite_urls.$indice_lang)}
 <a href="{$lang_rewrite_urls.$indice_lang|escape:htmlall}" title="{$language.name}">
{else}
 <a href="{$link->getLanguageLink($language.id_lang)|escape:htmlall}" title="{$language.name}">
{/if}
  {/if}
 <img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.iso_code}" width="16" height="11" />
  {if $language.iso_code != $lang_iso}
</a>
  {/if}
  </li>
 {/foreach}
 </ul>
</div>
</div>

 

then you will have to stylize it with css styles

  • Like 1
Link to comment
Share on other sites

not enough for me to say thank you,

 

Thank you Thank you Thank

 

 

to install a new theme, without losing the settings of this theme, how can I do? because every time I install a new one I always have to change something, there is a remedy to this?

 

thanks

Edited by lui1969 (see edit history)
Link to comment
Share on other sites

you can export the template with import / export theme tool. But remember, that this is only for export theme settings and theme files.

If you install new theme, and then change the sources of the /modules/ dir etc. (not related to the theme directory) then you will loose all changes for first theme.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

you can export the template with import / export theme tool. But remember, that this is only for export theme settings and theme files.

If you install new theme, and then change the sources of the /modules/ dir etc. (not related to the theme directory) then you will loose all changes for first theme.

Hi Vekia, but I try to figure out where exactly Im going to modify that?

 

Here is my code in blocklanguages.css

 

/* block top languages */

#header_right #languages_block_top {

    float:right;

    margin: 0;

    padding:2px 6px 1px 6px;

    -moz-border-bottom-right-radius: 3px;

    -moz-border-bottom-left-radius: 3px;

    -webkit-border-bottom-right-radius: 3px;

    -webkit-border-bottom-left-radius: 3px;

    border-bottom-right-radius: 3px;

    border-bottom-left-radius: 3px;

    background: none repeat scroll 0 0 #000;

}

#header_right #languages_block_top p {

    clear: left;

    padding-right:20px;

    font: 11px Arial,Verdana,sans-serif;

    color: #ccc;

    text-align: right;

    background: url("img/block_languages_top_p_bg.png") no-repeat scroll right 1px transparent;

}

#languages_block_top ul#first-languages li {

    float: left;

    margin-right: 3px

}

#languages_block_top ul#first-languages li.selected_language {

    float: left;

}

/*languages with jquery*/

#countries {

    cursor: pointer;

    position: relative;

    top: 1px;

}

#countries p {

    position: relative;

    top: 0;

    padding: 0;

}

#countries p img {

    padding-left: 5px;

}

#countries .countries_ul{

    display:none;

    z-index: 10000;

    padding:10px;

    list-style-type:none;

}

#countries .countries_ul_hover{

    display:block;

    z-index: 5000;

    position:absolute;

    right:6px;

    padding:5px 10px;

    height:auto;

    width:20px;

    background:#000000;

}

 

 

//Patrik

Link to comment
Share on other sites

×
×
  • Create New...