Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about "Mobility" Joomla template.

Topic-icon For IPad template

More
6 years 1 month ago #8030 by BoRaptis
BoRaptis created the topic: For IPad template
Hi

Bought your template and like it à lot, Only one thing how can I prevent iphone templates when users use iPad. When I go to My site using iPad the iphone template show up and it looks really nasty.

How can I configure default mobility template for iPad users if it is possible?

Please Log in to join the conversation.

More
6 years 1 month ago #8052 by milos
milos replied the topic: Re: For IPad template
Sorry for delay. I don't have iPad so I can't test it.

Please edit file /templates/hot_mobility/index.php. After line (around line 14):
$current_browser = 1;
add these 2 lines:
$isiPad = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad');
if($isiPad) { $current_browser = 0; }

Test it on your iPad and please let me know if that worked? You should see template in normal state (as on desktop computers) on your iPad.

Please Log in to join the conversation.

More
6 years 1 month ago #8068 by BoRaptis
BoRaptis replied the topic: Re: For IPad template
:woohoo:
Thanks a lot it worked.

Bo.R

Please Log in to join the conversation.

More
6 years 1 month ago - 6 years 1 month ago #8071 by BoRaptis
BoRaptis replied the topic: Re: For IPad template
:)
Last Edit: 6 years 1 month ago by BoRaptis.

Please Log in to join the conversation.

More
6 years 1 month ago #8072 by milos
milos replied the topic: Re: For IPad template
Can you please confirm if it works on both iPhone and ipad after your change?

Please Log in to join the conversation.

More
6 years 1 month ago #8073 by BoRaptis
BoRaptis replied the topic: Re: For IPad template
first it did not worked, then removed all code replaced back the old code and did as you wrote above one more time and now it seems to work.

Its working in both iPhone and iPad. Meaning one view for iPad and another in iPhone.

Thanks a lot!

Please Log in to join the conversation.

Time to create page: 0.127 seconds

Links, Partners and Social Media