- This topic has 10 replies, 2 voices, and was last updated 7 years, 4 months ago by Mahesh.
-
AuthorPosts
-
January 5, 2017 at 8:56 pm #106484skynetParticipant
Hello great CatchThemes Is there any way to disable sidebar on mobile? Not ipad or tablet but just mobile like iphone, samsung galaxy etc.
January 6, 2017 at 9:37 am #106527MaheshKeymaster@skynet: Go to Dashboard=> Appearance=> Customize=> Additional CSS box and add the following CSS:
@media screen and (max-width: 767px) { #secondary { display: none; } }
Regards,
MaheshJanuary 6, 2017 at 10:13 am #106529skynetParticipantThank you Great Maheseh! You are a CSS King!!
Work perfect!January 7, 2017 at 1:31 am #106600skynetParticipantCan i also disable sidebar on vertical IPAD mini and IPAD and other tablets? not on horizontal but only on vertical. Please help Mahesh.
January 7, 2017 at 9:02 am #106616MaheshKeymaster@skynet: Add the following CSS:
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1) { #secondary: { display: none; } }
Note: Remove the previous one.
Regards,
MaheshJanuary 7, 2017 at 10:01 am #106619skynetParticipantUnfortunatly the code don’t work because if i remove first CSS code you gived me, the second code don’t remove the sidebar on iphone. It’also don’t work on ipad vertical sidebar is here everywhere with this new CSS.
January 7, 2017 at 7:03 pm #106635MaheshKeymaster@skynet: Sorry, forgot about those, add the following CSS.
@media only screen and (max-width: 768px) and (orientation: portrait) { #secondary: { display: none; } } @media only screen and (max-width: 736px) { #secondary: { display: none; } }
Regards,
MaheshJanuary 7, 2017 at 7:05 pm #106636skynetParticipantHi Mahesh don’t know why but this CSS don’t work and im able too see sidebar on mobile
January 8, 2017 at 9:29 am #106679MaheshKeymaster@skynet: Have you fixed this issue? I just checked your site on a mobile device, and sidebar is not displaying.
Regards,
MaheshJanuary 8, 2017 at 5:50 pm #106692skynetParticipantHi Mahesh, the sidebar is gone because i used the first css you give me but work only on mobile.
Other two css for stop display sidebar on vertical ipad still no working.January 9, 2017 at 11:53 am #106732MaheshKeymaster@skynet: Please refer to the following link.
https://css-tricks.com/snippets/css/media-queries-for-standard-devices/#ipad-queriesRegarsd,
Mahesh -
AuthorPosts
- The topic ‘Disable Sidebar on Mobile’ is closed to new replies.