Support

Account

Home Forums General Issues Add class to acf fields Reply To: Add class to acf fields

  • do you talk about backend, or about frontend?

    at backend there is the wrapper attribute with class/id, use that to do whatever you need

    at frontend you could do whatever you wish:

    $your_field = get_field('your_field');
    echo '<div class="something">'; //whatever you like to wrap around(pre) your field
    echo $your_field; //your field value
    echo '</div>'; //whatever you like to wrap around(after) your field