Hi,
I have some fields set up on pages that include an image for mobile. The standard page displays a featured image in the hero and I want to change it out by css so a different image displays on mobile.
On a page by page basis this is obviously relatively simple with code like;
@media (max-width: 767px) {
.page-hero .product-page-hero {
background-image:url(/image-name.jpg);
}
}
Is there a way I can reference the metabox page image field in css so I can use a template rather than have to write separate media queries for every page?
i.e. my metabox field is 'mobile_image', I want to use that instead of the url in css.