[Resolved] Hiding sidebar on tablet on landscape view

Home Forums Support [Resolved] Hiding sidebar on tablet on landscape view

Home Forums Support Hiding sidebar on tablet on landscape view

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2066603
    Mohammad

    Hello,

    How I can hide the sidebar on a tablet on landscape view?

    Regards,

    #2066701
    Ying
    Staff
    Customer Support

    Hi there,

    We can use CSS to hide the sidebar for certain range of the screen width, but it can’t detect what device is being used or if it’s in landscape view. So based on my knowledge, I don’t think it’s possible.

    #2068049
    Mohammad

    Okay.

    How I can hide right sidebar from all mobile and tab device?

    #2068073
    Ying
    Staff
    Customer Support

    Give this CSS a try:

    @media (max-width: 1024px) {
        .sidebar {
            display: none;
        }
        .site-content .content-area {
            width: 100%;
        }
    }
    #2069254
    Mohammad

    Thanks, it solved the issue.

    #2069300
    Ying
    Staff
    Customer Support

    No problem 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.