Support

Account

Home Forums Front-end Issues Adding a class to an element depending on Checkbox or Radio Button Reply To: Adding a class to an element depending on Checkbox or Radio Button

  • UPDATE: Actually already figured it out, I used the TRUE/FALSE ACF field with an IF statement inside the link’s class.

    <div class="link-item <?php if( get_sub_field('featured_link') ): ?> <?php echo 'featured'; ?><?php endif; ?>">