Answers for "adding custom classes to ACF field groups"

0

adding custom classes to ACF field groups

jQuery.noConflict()(function($){
    "use strict";
     $(document).ready(function() {
        var layouts = $('.acf-flexible-content .layout');
        layouts.each(function( key, value ) {

                var section_attribute = $(this).attr('data-layout');

                $(this).addClass(section_attribute);

        });

    });
});
Posted by: Guest on March-21-2022

Browse Popular Code Answers by Language