1. GF
  2. Sherlock Holmes
  3. Commercial Templates
  4. Friday, 07 March 2014
  5.  Subscribe via email
Hello Ciarán,

I'm using the built-in positions for mobile and normal menus'. So I don't use the 'convert-to' possibility. (and I rather not do that because of the complexity of it in a 6-languages site ;)

I use an iframe in a module position. The content of that Iframe is also available in a mobile version. What I want is to show that content when using a mobile device and the normal content on a pc. So in fact an auto-switch for that content.

Do you see possibilities?
Accepted Answer Pending Moderation
0
Votes
Undo
It should be possible. You will need to create media query classes for both, mobile and desktop and then apply these classes to your modules using the 'Module Class Suffix' field. Do you wish to have the 'mobile' version visible for all mobile devices (tablets inc.) or just phones?

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Good evening Ciarán, Just phones I think.
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Try adding the following to the Custom CSS field of your templates parameters...


.mobile_display {display: none !important;}
@media only screen and (max-width: 767px) {
.mobile_display {display: inline !important;}
}
@media only screen and (max-width: 767px) {
.mobile_hide {display: none !important;}
}


Using the module class suffix field you can then add' 'mobile_hide' to hide a module on a mobile and 'module_display' to display a module on just a mobile.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you!

(great service as always (-;)
  1. more than a month ago
  2. Commercial Templates
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!