I’m slowly getting the hang of building simple custom modules, but for some reason I’m having real issues trying to create a simple image module.
Basically what I’d like is for the client to be able to upload two images: A foreground image and a background image. I don’t need cropping, a lightbox or custom URL’s. Really all I need is for them to be able to do is pick from the media uploader and then I place those images inside an image tag (here is a working example from ACF that I want to duplicate):
<img src="<?php the_field('home_masthead_animated_gif_mask'); ?>" style="background-image: url(<?php the_field('home_masthead_animated_gif_strobe'); ?>);">
I’m not quite sure where to start from a troubleshooting standpoint because everything I’ve tried isn’t working.
Any ideas or quick snippets of code I could use?