- Posts: 8
- Thank you received: 0
different template for mobile devices?
-
flawless
Inactive member - Topic Author
- New Member
Less
More
10 years 2 months ago #42678
by flawless
different template for mobile devices? was created by flawless
Hi, I was wondering if I could have a different template (copy of the original HOT ONE PAGE or another template) for mobile devices.
The problem is that I have a nice carousel imageshow on the home page that is not quite responsive (fixed height) and it does not show nice on mobile devices.
I was thinking of having a completely different home page, based on a different template, for loading on mobile devices.
Thanks in advance.
You can check my site here
fagaki.demos.my-portal.gr/demo4/
The problem is that I have a nice carousel imageshow on the home page that is not quite responsive (fixed height) and it does not show nice on mobile devices.
I was thinking of having a completely different home page, based on a different template, for loading on mobile devices.
Thanks in advance.
You can check my site here
fagaki.demos.my-portal.gr/demo4/
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 2 months ago #42684
by ivan.milic
Replied by ivan.milic on topic different template for mobile devices?
You can use multiple templates in joomla and specify which one is used for each menu item. You can have two home pages only problem is how you would do redirection. One simple dirty solution is to add script to do redirection based on screen width.
Install this:
extensions.joomla.org/extensions/core-en...code-in-modules/4971
Use it to put this script on PC page:
<script type="text/javascript">
if(jQuery(window).width() < 768)
window.location = 'url to your mobile page';
</script>
Install this:
extensions.joomla.org/extensions/core-en...code-in-modules/4971
Use it to put this script on PC page:
<script type="text/javascript">
if(jQuery(window).width() < 768)
window.location = 'url to your mobile page';
</script>
The following user(s) said Thank You: flawless
Please Log in to join the conversation.
Time to create page: 0.159 seconds