Support

Account

Home Forums ACF PRO Before Pseudo Elements Reply To: Before Pseudo Elements

  • You need to get the value of your field and create CSS for it.

    
    <style>
      #my-element:before {
        background-image: url(<?php the_field('image-field-name-that-returns-url'); ?>);
      }
    </style>