X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Change Header with Language (https://forum.x-cart.com/showthread.php?t=48010)

info@mea.li 06-09-2009 05:24 AM

Change Header with Language
 
Hi Guys

My online store is multilingual (german/english). There is the "Select Language" chooser right in the top of the header.
I want that also my header graphic changes when i change the language. How can i solve this?
That means i want to show header XY for german verison and i want to show header XY for english version.

Thanks a lot for your help.

Regards
Manuel

NelsonLaRocca 06-09-2009 09:15 PM

Re: Change Header with Language
 
I took a little time to do that and filled the top from the code itself instead of the css background. The matter is that the background is repeated if used within the table tag itself and NOT if used from the css file.

info@mea.li 06-09-2009 11:55 PM

Re: Change Header with Language
 
Hi Nelson

Thanks for your reply. Since i'm newbie here and not so familiar yet with this i would be grateful if you could explain it a lil bit how to solve this. Because i don't really know how to start now with your reply.

Thanks
Manuel

pauldodman 06-10-2009 12:26 AM

Re: Change Header with Language
 
See if the if statements in this thread work for you...
http://forum.x-cart.com/showthread.php?t=20598

info@mea.li 06-11-2009 12:08 AM

Re: Change Header with Language
 
hi pauldodman

thanks a lot for your help, that was the right impulse to solve the problem.

i did now change head.tpl and main.css ...

head.tpl before:

<div class="line1">
<div class="logo">

head.tpl now:

<div class="line1">
{if $store_language eq "DE"}<div class="logo">{/if}
{if $store_language eq "US"}<div class="logo3">{/if}


main.css before:

#header .line1 .logo {
background: transparent url(images/custom/top_image1.jpg) no-repeat left top;
height: 192px;
position: relative;
}


main.css now

#header .line1 .logo {
background: transparent url(images/custom/top_image1.jpg) no-repeat left top;
height: 192px;
position: relative;
}
#header .line1 .logo3 {
background: transparent url(images/custom/top_image2.jpg) no-repeat left top;
height: 192px;
position: relative;
}


thanks a lot, it's working now like this...

regards
manuel

pauldodman 06-11-2009 12:11 AM

Re: Change Header with Language
 
Good to hear - and thanks for posting an update so other users may benefit too ;)


All times are GMT -8. The time now is 02:55 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.