Jump to content

Backgrounds images css with if function


dozeko

Recommended Posts

Hi,

Looking for ideas how to do best option.
My eshop logo is made with Background images (css). Now I want to do multistore and need, that one logo will be showen with one language (shop no.1) and another logo will be showen with anothe language (shop no.2).

Now I have:

header .header-top .logo {

float: left;

display: block;

width: 106px;

height: 45px;

margin: 10px 0 0;

background: url(../images/logo.svg) no-repeat;

background-size: contain;

If this possible to find idea and do it something with "if" function? Exzpl.:

{if $cart->id_lang == 1}
<img src="URL_TO_LOGO_1" />
{/if}
{if $cart->id_lang == 2}
<img src="URL_TO_LOGO_2" />
{/if}     ????????????????????

 

Thanks!

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...