Support

Account

Home Forums General Issues What would the code be to use an image field as a 'background-image' for a div? Reply To: What would the code be to use an image field as a 'background-image' for a div?

  • What is the return value for the field set to? If it is URL then

    
    <div style="background-image: url(<?php the_field('image_field_name'); ?>);">