onlymobile problem

GK User
Thu Dec 11, 2014 12:13 pm
i made a custom html module with some text for "onlymobile"
Now the module name is displayed but the content text not.

I did try some solutions on the forum but din't work!
I did try "nodesktop" to but the module was still displayed on the desktop (i deleted cache)
Any idea?

http://www.sesamband.nl

Best regards,
Stef
User avatar
Expert Boarder

GK User
Thu Dec 11, 2014 3:06 pm
Hoi, can you show me where you have it ?

Did you add one space before suffix name ?
User avatar
Platinum Boarder

GK User
Thu Dec 11, 2014 5:12 pm
Oscar E wrote:Hoi, can you show me where you have it ?
On mobile you can see the "name" of the module (info sesam sensation) the text underneath is not visible. (main body position)

Did you add one space before suffix name ?
Yes i did, if i delete onlymobile the text is visible on mobile but also on the desktop i don't want (mobile only)
User avatar
Expert Boarder

GK User
Thu Dec 11, 2014 5:23 pm
try this:
Code: Select all
.custom.onlymobile {
    display: block;
}
User avatar
Platinum Boarder

GK User
Thu Dec 11, 2014 5:32 pm
Yeah that was the trick!

Excellent thank you very much Oscar!!!!

Stef,
User avatar
Expert Boarder


cron