Suffix "onlymobile" not working

Responsive Joomla template for Entertainment and Music purpose with clean and lightweight design.
GK User
Mon Mar 11, 2013 5:03 pm
Hi there!

On my Website I already using the suffixes notablet and nomobile. They are working correct.

Now I tried to use "onlymobile" and it´s not working.

See http://www.90minuten.at and scroll down the main page to Module with the name "90minuten.at aktuell" (4th Module in Mainbody). This module is classified with "onlymobile" but is also shown at PC-Browser.

please give me a hint - thx!
User avatar
Fresh Boarder

teitbite
Wed Mar 13, 2013 2:02 pm
Hi

Please add this code to override.css and remember to allow using this file in template settings:

Code: Select all
/* tablet/mobile suffixes */
.notablet {
    display: block;
}
.nomobile {
    display: block;
}
.onlytablet {
    display: block;
}
.onlymobile {
    display: block;
}

@media only screen and (min-width:720px) and (max-width: 985px) {
.onlytablet {
    display: block;
}

.notablet {
    display: none;
}
}

@media only screen and (max-width:719px) {
.nomobile {
    display: none;
}

.onlymobile {
    display: block;
}
}
User avatar
Moderator

GK User
Thu Mar 14, 2013 4:26 pm
teitbite wrote:Hi

Please add this code to override.css and remember to allow using this file in template settings:



this code already has been in the override.css - the suffixes nomobile and notablet are working correct, but "onlymobile" isnt ...
User avatar
Fresh Boarder

teitbite
Fri Mar 15, 2013 1:07 pm
Hi

Yes, there is a mistake in my code, please change the first .onlymobile to display: none;
User avatar
Moderator


cron