different template for mobile devices?

  • flawless
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 2 months ago #42678 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/

Please Log in to join the conversation.

More
10 years 2 months ago #42684 by ivan.milic
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>
The following user(s) said Thank You: flawless

Please Log in to join the conversation.

  • flawless
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 2 months ago #42687 by flawless
Thanks for the quick response.
I'll give it a try

Please Log in to join the conversation.

Time to create page: 0.159 seconds
Powered by Kunena Forum