- Posts: 60
- Thank you received: 0
[SOLVED] Mobile View
- Manuel Kuhs
- Topic Author
- Offline
- Senior Member
Less
More
15 Sep 2012 12:02 - 15 Sep 2012 17:14 #2524
by Manuel Kuhs
[SOLVED] Mobile View was created by Manuel Kuhs
Hey,
So I'm working on a mobile version of my site ( www.limerickreformed.com ).
Currently, the sermons table is a problem - it has too many columns to display neatly on a mobile device. I want that many columns for the desktop version, but I can't think of a way to specify less columns for only a certain page (in this case, a page used by the mobile site)? If I understand it correctly, currently the number of columns can only be determined system-wide in the SermonSpeaker Parameters.
Regards & keep up the GREAT work!
So I'm working on a mobile version of my site ( www.limerickreformed.com ).
Currently, the sermons table is a problem - it has too many columns to display neatly on a mobile device. I want that many columns for the desktop version, but I can't think of a way to specify less columns for only a certain page (in this case, a page used by the mobile site)? If I understand it correctly, currently the number of columns can only be determined system-wide in the SermonSpeaker Parameters.
Regards & keep up the GREAT work!
Last edit: 15 Sep 2012 17:14 by Manuel Kuhs.
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
15 Sep 2012 12:49 #2525
by Thomas Hunziker
Replied by Thomas Hunziker on topic Mobile View
Are you using a special template for the mobile version? Then you could use template overrides to show less columns. Just copy the layout to the appropriate folder in your template directory and delete the columns you don't want.
The following user(s) said Thank You: Manuel Kuhs
Please Log in or Create an account to join the conversation.
- Manuel Kuhs
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 0
15 Sep 2012 13:17 #2526
by Manuel Kuhs
Replied by Manuel Kuhs on topic Mobile View
Thanks!
Unfortunately I am not using a special template for mobile. I'm using the mobile feature of the Gantry framework. AFAIK it calls a template-mobile.css override as part of the normal (desktop) template, so it uses the same folder. I guess this is therefore a Gantry issue? Or is there a simple line to put into the template-mobile.css to delete some columns?
Unfortunately I am not using a special template for mobile. I'm using the mobile feature of the Gantry framework. AFAIK it calls a template-mobile.css override as part of the normal (desktop) template, so it uses the same folder. I guess this is therefore a Gantry issue? Or is there a simple line to put into the template-mobile.css to delete some columns?
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
15 Sep 2012 16:14 - 15 Sep 2012 16:15 #2527
by Thomas Hunziker
Replied by Thomas Hunziker on topic Mobile View
It shoudl also be possible using CSS:
Every table cell has at least one class assigned. And there is a unique container class for each view. You can use this to hide the cells you want using display:none. So if you want to hide the "scripture" and "hits" on the sermons listing you can use this CSS in your template-mobile.css:
Every table cell has at least one class assigned. And there is a unique container class for each view. You can use this to hide the cells you want using display:none. So if you want to hide the "scripture" and "hits" on the sermons listing you can use this CSS in your template-mobile.css:
Code:
div.ss-sermons-container .ss-scripture, div.ss-sermons-container .ss-hits{
display:none;
}
Last edit: 15 Sep 2012 16:15 by Thomas Hunziker.
The following user(s) said Thank You: Manuel Kuhs
Please Log in or Create an account to join the conversation.
- Manuel Kuhs
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 0
15 Sep 2012 17:14 #2528
by Manuel Kuhs
Replied by Manuel Kuhs on topic Mobile View
It works perfectly! You're awesome!
Please Log in or Create an account to join the conversation.
- Thomas Hunziker
- Offline
- Administrator
15 Sep 2012 17:14 #2529
by Thomas Hunziker
Replied by Thomas Hunziker on topic Mobile View
Glad it worked :blush:
Please Log in or Create an account to join the conversation.
Time to create page: 0.101 seconds