Hi
How can I hide one specific page of my site on mobile phones?
Thanks for your help.
Hi baiker!
You can add following code to Quick CSS
@media only screen and (max-width: 480px) {
#menu-item-59 { display: none !important; }}
You can right click on Chrome or Firefox to inspect elements to find menu item ID http://i.imgur.com/HyPTCRg.jpg
Best regards,
Yigit
Hi Yigit
Wow, what a fast response, thank you very much!!
It helps me to hide the menu items. Is it possible to deactivate the whole site on mobiles instead of hiding just the menu items? I tried with:
@media only screen and (max-width: 480px) {
#page-id-88{ display: none !important; }}
..but does’nt work.
And the other question: may I put different menu-item-id’s in one line? What would be the separator?
Thanks again!
Hey!
The code doesn’t work because the page-id is not an ID but a class:
@media only screen and (max-width: 480px) {
.page-id-88{ display: none !important; }}
To make it multiple, use commas:
.page-id-xx, .page-id-zz
Regards,
Josue