Jump to content

Logo änderunge nach Sprache


atiart

Recommended Posts

\themes\default\header.tpl Zeile 79 austauschen mit

{if $lang_iso=="de"}

    <img class="logo" src="{$img_dir}logo_de.jpg" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if}/>

{elseif $lang_iso=="en"}

    <img class="logo" src="{$img_dir}logo_en.jpg" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if}/>

{/if}

Probier mal bitte, ob es funktioniert.

{$img_dir} ist der relative Pfad vom PrestaShop-Root zum img-Theme-Verzeichnis

 

Viele Grüße

Chris

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

Pardon hatte die $ im Variablennamen vergessen ($img_dir):

{if $lang_iso=="de"}

    <img class="logo" src="{$img_dir}logo_de.jpg" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if}/>

{elseif $lang_iso=="en"}

    <img class="logo" src="{$img_dir}logo_en.jpg" alt="{$shop_name|escape:'htmlall':'UTF-8'}" {if $logo_image_width}width="{$logo_image_width}"{/if} {if $logo_image_height}height="{$logo_image_height}" {/if}/>

{/if}
  • Like 1
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...