Problem with my multilanguage site - Home option

GK User
Tue Jul 28, 2015 11:37 am
Hi,

I have a problem with my multilanguage site. (test.myslivnarozvadov.cz)

I have czech (cs) and german (de) languages installed and the site works ok switching between languages.
The problem I have is when I click the "Home" option in the german page menu. For some reason it redirects to the czech home page.

I know that this is already solved here: [url]https://www.gavick.com/forums/university-joomla3/another-multilanguage-and-menu-problem-44229
[/url]
But the problem is only with your template. When I use original template Joomla, it works fine.

Can you help me please?

Thank you
User avatar
Fresh Boarder

teitbite
Wed Jul 29, 2015 10:40 am
Hi

I cannot find a thread I've presented a fix for it, so please send me an access to joomla panel and ftp. I'll make it again.
User avatar
Moderator

GK User
Thu Jul 30, 2015 8:41 am
Thank you, where do I send login data?
User avatar
Fresh Boarder

teitbite
Fri Jul 31, 2015 10:10 am
Hi

You can use my email from a footer of my every post or forum's PM.
User avatar
Moderator

teitbite
Wed Aug 05, 2015 12:48 pm
Hi

I have no idea why is it working like that and also my fix is not working here ;/ Try something different. Add this to /layout/blocks/head.php to change links in logo and home before it will break.

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
var lang = $('html').attr('lang').substring(0,2);
$('#gkLogo').attr('href',$('#gkLogo').attr('href')+'/'+lang);
$('#gkLogoSmall').attr('href',$('#gkLogoSmall').attr('href')+'/'+lang);
$('#menu640').attr('href',$('#menu640').attr('href')+'/'+lang);
$('#menu1084').attr('href',$('#menu1084').attr('href')+'/'+lang);
});})(jQuery)</script>
User avatar
Moderator


cron