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