Jump to content

Move blockcurrencies and blocklanguage and change text with icon


Recommended Posts

Hi all,

 

I would like to move blocklanguage and blockcurrencies on the left as the pic.

Then I'd like to change text of this modules with icons like italian and english flasg and euro and dollar icon for the block currencies.

 

How can I do this????

 

Here the pic:

 

p8lm.png

Link to comment
Share on other sites

change float to left, like i show below:

currencies-block-top {
float: left;
border-left: 1px solid #515151;
position: relative;
}

and

#languages-block-top {
float: left;
border-left: 1px solid #515151;
position: relative;
}

files:

/themes/default-bootstrap/css/modules/blocklanguages/blocklanguages.css

/themes/default-bootstrap/css/modules/blockcurrencies/blockcurrencies.css

Link to comment
Share on other sites

So blocklanguage ok but blockcurrencies has a problem...it remains on the right but if I click on it the result is in the pic (I click on the right and the list appear on the left under block language :| ):

 

qjov.png

 

and how can I change text in icon?

 

Thanks Vekia

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

in this case it will be necessary to modify module .tpl file

by default there is a code like

{foreach from=$languages key=k item=language name="languages"}
			{if $language.iso_code == $lang_iso}
				<div class="current">
					<span>{$language.name|regex_replace:"/\s.*$/":""}</span>
				</div>
			{/if}
		{/foreach}

change it to

{foreach from=$languages key=k item=language name="languages"}
	{if $language.iso_code == $lang_iso}
		<p class="selected_language">
			<img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.iso_code}" width="16" height="11" />
		</p>
	{/if}
{/foreach}

you want to change text to flag also for not selected languages?

Link to comment
Share on other sites

you used this code in proper file?

if module file exists in theme directory- you have to apply changes there.

 

in addition, due to the caching system is always worth to clear shop cache and turn on force compile while you work on your theme

Link to comment
Share on other sites

×
×
  • Create New...