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
5 years 10 months ago #8030 by BoRaptis
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
5 years 10 months ago #8052 by milos
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
5 years 10 months ago #8068 by BoRaptis
:woohoo:
Thanks a lot it worked.

Bo.R

Please Log in to join the conversation.

More
5 years 10 months ago - 5 years 10 months ago #8071 by BoRaptis
:)
Last Edit: 5 years 10 months ago by BoRaptis.

Please Log in to join the conversation.

More
5 years 10 months ago #8072 by milos
Can you please confirm if it works on both iPhone and ipad after your change?

Please Log in to join the conversation.

More
5 years 10 months ago #8073 by BoRaptis
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.134 seconds

Links, Partners and Social Media