Multilanguage site: logo link doesn't work

Support desk for Multipurpose Quark Theme
GK User
Tue Feb 28, 2017 7:54 pm
I have realized a multilanguage website using Quark template (Italian - English)
Italian is the main language.
When i switch to english, everithing work (menu, link etc) but no the logo link.
Logo infact remain linked to italian language (predefined)
How can i solve it?
User avatar
Junior Boarder

teitbite
Thu Mar 02, 2017 12:59 pm
Hi

Please check this thread: https://www.gavick.com/forums/steak-hou ... ge#p265574

And tell me the url to Your site so I'll be able to match selectors in this script.
User avatar
Moderator

GK User
Tue Mar 07, 2017 8:24 am
http:// www . atalia . it
(please remove after reading)

I see the solution proposed on other topic.
On our site, the default languages is Italian, ad we disable the prefix for the main language.

If i add a script, when i upgrade i'll lost it?
User avatar
Junior Boarder

teitbite
Thu Mar 09, 2017 12:38 pm
Hi

Unfortunately You will have to remember to add this script again after update.

Add it to /layout/blocks/head.php

Code: Select all
<script type="text/javascript">(function($) {$(document).ready(function() {
    var varhref = '/en';
    if( $('html').attr('lang') == 'it-it' ) {
        varhref = '/it';
    }

    $('#gkLogo').attr('href', varhref);
});})(jQuery)</script>
User avatar
Moderator


cron