Archived topic
Select background image with CSS
3 replies · Started by Stewart on November 26, 2020
I added a background image to my all pages on a client's site through the Customize link. It works fine but I'd like to turn it off when the site is viewed on a mobile phone. There doesn't seem to be a CSS selector available.
You can see the site here: http://www.amarackfinancial.com
Thanks!
Hi there,
Try this CSS:
@media (max-width: 768px) {
body.separate-containers .inside-article {
background-image: none;
}
}
Adding CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps :)
Thanks for the quick response AND for solving the problem! I tried for about an hour and couldn't figure it out.
No problem :)