Home>Support>Breakpoints for Hero Image

Breakpoints for Hero Image

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].

I would like to have my hero image replaced with a different image on mobile screens. How do I go about doing this using media queries?

Here’s a website I’d like to emulate. The breakpoint for the hero image is 599px.

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 Roger,

    You can do this with some custom CSS. If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Add the following CSS:

    @media (min-width: 601px){
    	.mobile-show {
    		display: none !important;
    	}
    }
    @media (max-width: 600px){
    	.mobile-hide {
    		display: none !important; 
    	}
    }
    
    

    You might also need to install the SiteOrigin CSS Editor.

    Now, please open a widget you would like to hide on mobile and head over to the widget styles sidebar. Open the Attribute settings group and set the Widget CLass to mobile-hide and then save.

    To do the opposite (hide on desktop, show on mobile), set the widget class to mobile-show.

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