before I opened this new ticket I did consult the documentation thoroughly .
I did not find support for the following question:
My Goal is to overwrite the below line as soon as I am on a mobile device so my intention is to establish a CSS Rule inside of a media query , in order to overwrite:
<div class="hero-container white-text" style="background-image:url({{ backgroundImage }})">
I tried to
background-image: url('{{backgroundImageMobile}}') !important;
but that did not work within the CSS-Pane.
I cannot remember the best practice-Way to accomplish this.
My goal is to inject a Field-name (Image-URL) into the CSS-Section.
Any other way to solve this is equally welcome.
On https://anymod.com/projects/86N4N3/dashboard (private mod balana: I cannot add Tyler due to the limited number of 5 Editors allowed for this project (and I am happy to be allowed those 5 editors ; )
I cloned the mod into a public Project for you to help me with more ease:
https://anymod.com/mod/mobile-productpage-hero-section-ralbdd
I played around with handlebars #IF mobile, then add class isMobile . I wanted to establish a helper. But I failed. I also played around with dropping the {{field-Content}} into the CSS. I tried various ways but I failed .