This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Trouble Hiding Vantage Sidebar on mobile with CSS

8 years ago · Last reply by Alex S 8 years ago

Hi – I have tried several CSS queries and I cannot get my sidebar to hide on mobile. I am using a site origin editor widget in my sidebar, but I want the entire sidebar to disappear on screens <780 px. The site origin editor widget in sidebar does not allow me to give it a CSS class or I would call out to it directly.

See here: jordandowell.com/workshops

Any thoughts?

I've tried:

@media screen and (max-width: 1140px) { #sidebar { display: none !important; } }
@media(min-width: 780px) {
	#sidebar { display: none; }
}
@media (min-width: 780px) {
    .sidebar {
        display: none;
    }
}

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 8 years, 6 months ago

    Hi Jordan,

    Please try replacing the CSS you mentioned in your post with the following CSS:

    @media(max-width: 780px) {
    	#secondary {
    		display: none;
    	}
    }

    How does that look?

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread