Module position in mobile version

Professional Joomla restaurant template comes with a custom animated modules and advanced typography elements.
GK User
Wed Oct 09, 2013 6:24 pm
I'm having some problems with the mobile version of my site http://www.oswaldolopez.es. Some of the menu elements are not showing up, and I can't set any module on the homepage.

I know that module positions are not the same as the desktop version so, can you tell me please which are these module positions for the mobile site and how can I change them?

Thank you!
User avatar
Expert Boarder

teitbite
Thu Oct 10, 2013 9:45 am
Hi

For mobile You have just 2 options:

<!-- MOBILE Module Positions -->
<position>mobile_top</position>
<position>mobile_bottom</position>

What do You mean that not all menu options are showing ? I can see them on my phone.
User avatar
Moderator

GK User
Wed Oct 16, 2013 4:44 pm
I mean, if you go to Galería, nothing is showing up. I'm using the JFlickr module, and I have set it to mobile_bottom position. With the contact form (another external module) there is no problem now.
Maybe it could be a JFlicker problem?
User avatar
Expert Boarder

teitbite
Thu Oct 17, 2013 5:54 pm
Hi

It's possible than that some modules are not mobile ready. To check that You will need to change in template settings where default layout is to show mobile template, than open Your site and resize the browser to about 300px. If module will be visible for all the time and dissapear only when browser is small than this is a module issue. If it's not the case show me the site after layout set to mobile.
User avatar
Moderator

GK User
Fri Oct 18, 2013 6:29 pm
Uhmm, I believe that Restaurant template only have the option to Enable or Disable mobile version, and I think it depends on the browser type. In my smartphone I can see the mobile version, but in my desktop browser, even when resizing it, it's only shown the desktop version

Anyway, this module is the only module that is not showing up in mobile version, so I think it is not compatible.
User avatar
Expert Boarder

teitbite
Sat Oct 19, 2013 5:53 pm
Hi

Restaurant is not a responsive template. It detects a device and display default of mobile template only. But if You will configure to use mobile template when desktop is detected You may be able to see if this module is showing. Tell me when You will make this change and I'll see if this module's code is there and if this can be fixed.
User avatar
Moderator

GK User
Wed Oct 23, 2013 1:21 pm
Ok, it's done, but the module can't be viewed yet. Please tell me what do you think.

I also need to know how to show the last items, because I can only access to them through search button.

Thanks!
User avatar
Expert Boarder

teitbite
Thu Oct 24, 2013 9:53 pm
HI

Ok. Now it's clear that the module is not loaded at all in this position, so it's not a problem that module is not good fit for mobile. Unfortunately to resolve it I will require an access to joomla panel. Can You please send it to me ?
User avatar
Moderator

teitbite
Sun Oct 27, 2013 4:11 pm
Hi

I know what the problem is finally. Flickr module You have is using a javascript to work. Most of the mobile devices were still not supporting javascripts so it was stripped for mobile templates. Please go to /layout/blocks/mobile/head.smartphone.php and remove this code:

Code: Select all
if($k2option != 'com_k2') {
   GKParser::$customRules['/<script type="text\/javascript">(.*?)<\/script>/mis'] = '';
   GKParser::$customRules['/<script type="text\/javascript" src="(.*?)media\/system\/js(.*?)"><\/script>/mi'] = '';
}
User avatar
Moderator

GK User
Wed Oct 30, 2013 2:27 pm
Thanks for your help, teitbite! So this code you told me to remove, it was disabling javascript for the smartphone template, isn't it? It works now. But I realized a curious thing:

now when the gallery appears in the mobile device, all pics are repeated such as four or five times.

Thanks again for your help :)
User avatar
Expert Boarder

teitbite
Mon Nov 04, 2013 1:29 am
Hi

Yes this code is removing javascript on mobiles. This template is over 2 years old and back than most of the mobile devices was not supporting javascripts anyway so it was better to remove it for all.
User avatar
Moderator


cron