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