I’ve setup two color values, one for “color” and one for “background-color” where my client is able to choose a font-color (on white background) and a background-color (with white font color on top). In the list screen of the custom post type I show both colors and calculate the contrast ratio and check if it fails or passes the WCAG AA level test.
But switching between editing the custom post type and the list view back and forth is quite cumbersome.
But I do not know how to add a box with ACF and performing some PHP inside of it 🙂
Viewing 1 post (of 1 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