Home>Support>Trouble Hiding Vantage Sidebar on mobile with CSS

Trouble Hiding Vantage Sidebar on mobile with CSS

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 11 months ago Alex S
    Hi, I Work Here

    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.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More