problem with mobile

Demonstrate your product attractively using clean and distinctive coffe shop Joomla template.
GK User
Tue Aug 06, 2013 10:00 am
I have questions about this template on mobile

* How I can do override in the file android.css, iphone.css, etc..?
* How I can display a module only for mobile?
* if I use android 4.2.2, the template used detects NO android. How I can fix it?

Excuse my English, is google translator.
User avatar
Junior Boarder

GK User
Tue Aug 06, 2013 3:15 pm
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.
User avatar
Moderator

GK User
Tue Aug 06, 2013 7:25 pm
1.
ok, but when updating the template line deletes the inserted new?
$ this-> addCSS ($ this-> URLtemplate (). '/ css / override.mobile.iphone.css');

2.
I can't show a module in the template for mobiles. Do you have different positions?

3.
the address / templates / gk_coffe / lib / framework / gk.browser.php shows nothing, in desktop or mobile.

4.
Can you add a home page to a different one for desktop and mobile?

Excuse my english, is google translator.
User avatar
Junior Boarder

GK User
Tue Aug 06, 2013 9:21 pm
Could You provide exact user agent of your mobile?
User avatar
Moderator

GK User
Wed Aug 07, 2013 8:37 am
my telephone is samsung galaxy s-iv with android 4.2.2 in vodafone Spain.
User avatar
Junior Boarder

GK User
Wed Aug 07, 2013 3:58 pm
From the things You are writing - it seems You really need a help of profesional developer - It seems You don know anything about editing template files (either php nor css), so it will be much easier if You ask freelancer for help considering those modifications.
User avatar
Moderator

GK User
Wed Aug 07, 2013 5:44 pm
excuse me, but if I have CSS and programming knowledge. Maybe I did not explain well in english.

finally...

1.
when updating the template line deletes the inserted new?
$ this-> addCSS ($ this-> URLtemplate (). '/ css / override.mobile.iphone.css');

3.
the address is not operating

/templates/gk_coffe/lib/framework/gk.browser.php
User avatar
Junior Boarder

GK User
Wed Aug 07, 2013 9:32 pm
1. both add Css should be in that file, they will load original css and your new override one
3. You should not open that in browser, but search for that file on ftp server ;)
User avatar
Moderator

GK User
Thu Aug 08, 2013 8:02 am
I think I do not understand well.

I Search For the solution on the other hand

Close and delete this post
User avatar
Junior Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.