Hi there,

I have 2 issues with GK Royal template.

  1. I installed a second language - spanish - https://lifeasturias.com/index.php/es/
    The problem is that, since the template does not have a module position assigned to "Main Menu Left" and "Main Menu Righ" on top of the website, I don't see a way to have the Menus working in Spanish as they are in English. I suppose the problem is related with the fact there is no module position assigned to it, but I am not sure.

  2. Module "The Royal Luxury HotelRoyal Operate The Finest Independent Luxury Hotel In Bali, indonesia" in Spanish language has exactly same setting as the english version (it has been duplicated from english) but somehow, part of the content is beyond the Header slide show module as you see attached.

Thank you for your help. Ruben

    Hi Ruben
    Concerning mainmenu, it seems that american designers have forgotten other languages.
    I got this multi-language mainmenu problem on gkroyal and gkstorefront.
    The mainmenu left and right display is linked to the system mainmenu name.
    it's not necessary to link a mainmenu module to left and right template mainmenu
    To solve the problem, rename the system menu names in mainmenu-left-en, mainmenu-right-en for English main menus and mainmenu-left-es, mainmenu-right-es for Spanish main menus.
    Then replace default.php in gkroyal/layouts by the one attached.
    regards
    Claude

    Not shure that file was uploaded.
    Solution is to load the right and left menu contents depending on language choosen.
    Anyway, in default.php
    Replace line 107 $this->mainmenu->loadMenu($this->API->get('menuname','mainmenu-left'));
    by
    $lang = JFactory::getLanguage()->getTag();
    $menuName = ($lang === 'en-GB') ? 'mainmenu-left-en' : 'mainmenu-left-es';
    $this->mainmenu->loadMenu($this->API->get('menuname', $menuName));
    then
    Replace line 122 $this->mainmenu->loadMenu($this->API->get('menuname','mainmenu-right'));
    by
    $lang = JFactory::getLanguage()->getTag();
    $menuNameRight = ($lang === 'en-GB') ? 'mainmenu-right-en' : 'mainmenu-right-es';
    $this->mainmenu->loadMenu($this->API->get('menuname', $menuNameRight));
    then
    do the same modification on line 329 and 334 for asidemenu used on mobiles

      Concerning the second problem, have a look on module menu link assignation.

      sophieb Thank you so much Claude, I followed your steps regarding the menu: renaming + replacing those lines on default.php file and it worked!! I thought this would also fix another issue but seams not. Please check screenshot attached. The english Main Menu are showing nicely on top of the slide show image. But the Spanish has a grey bar and the logo + Menus (right+left) don`t display on top of the slide show image.

      I think this is why the module "The Royal Luxury HotelRoyal Operate The Finest Independent Luxury Hotel In Bali, indonesia" is not showing fine. On my side is not fine. I think you checked on the english but you need to access spanish: https://lifeasturias.com/index.php/es/
      Maybe once the menu problem on spanish is fixed, the module will show well.

      Thank you for your support. Ruben

      Hi Ruben

      Go to GK Royal settings >> Features tab >> Template elements overrides >> and add the suffix: frontpage nav-transparent for the home menu item of ES - just like EN homepage

      Write a Reply...
      You need to Login to view replies.