PYMECORREO wrote:I have questions about this template on mobile
1. How I can do override in the file android.css, iphone.css, etc..?
2. How I can display a module only for mobile?
3. if I use android 4.2.2, the template used detects NO android. How I can fix it?
Excuse my English, is google translator.
1. Right now You should edit those files inside tempaltes/gk_coffe/css/mobile folder, or You could edit mobile header files, for example: tempaltes/gk_coffe/layouts/block/mobile/head.iphone.php
and add there another override file of Your chosing, for example:
- Code: Select all
defined('_JEXEC') or die;
$this->addCSS($this->URLtemplate() . '/css/mobile/iphone.css');
$this->addCSS($this->URLtemplate() . '/css/override.mobile.iphone.css');
// include JavaScript
Then You could insert your overrides into override.mobile.iphone.css file (You need to creat it first).
Do same for other header files (head.android.php, headn.handheld.php with specific override.xxx.yyy.css files just for those devices)
2. If You create a class in main override.css (which is not used in mobile sites) file:
- Code: Select all
.onlymobile {display: none}
and add module suffix onlymobile - it will be shown on all devices beside desktop (on all, where main override.css is not loaded).
3. Right now I cant test it on that kind of device, but You could check file:
/templates/gk_coffe/lib/framework/gk.browser.php
why it doesnt detect that device.
Ill also report that to our devteam.