Hi, how to add class or id in field via acf plugin setting?
What i mean? When i creating the new field, it’s got setting fields like “Wrapper Attributes”: width, class and id – inputs.
I adding my own class into input field “class”. When i display my fields in front-end. My class didn’t add.
I use child Twenty Nineteen theme for local test. Included all functions acf_form_head, then acf_from.
Why Wrapper Attributes didn’t work? What i did wrong?
ACF will not automatically add any custom settings that you create to anything. You need to create other filters to alter the way the field behaves. For example, if you want to somehow use the new setting on the front end then you’d create an acf/format_value filter https://www.advancedcustomfields.com/resources/acf-format_value/
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users