1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to add a Smarty into url('') on a CSS file

Discussion in 'CSS' started by MosesTheTool, Aug 21, 2012.

  1. #1
    Hi,

    Before I break my pc, I'd like to ask, is it possible to add a Smarty to Background-img url('') on a CSS file?

    I have something that looks like:
    #cart_block h4 { background-image: url('../../../img/block_header_exclusive_cart.png') ; }
    HTML:
    I need to add Smarty:
    {'lang_iso'}
    HTML:
    So it'd look like:
    #cart_block h4 { background-image: url('../../../img/block_header_exclusive_cart_en.png') ; }
    HTML:
    When the English language is selected for example.

    I need the 2 last letter to change with the language.
    This doesn't work:
    #cart_block h4 { background-image: url('../../../img/block_header_exclusive_cart_{'lang_iso'}.png') ; }
    HTML:
    Thank you.
     
    MosesTheTool, Aug 21, 2012 IP