Breakpoints for Hero Image
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.
Need fast email support? Get SiteOrigin Premium
Replies
1Hi 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.