Home › Forums › Feature Requests › Custom body class setting for WYSIWYG fields › Reply To: Custom body class setting for WYSIWYG fields
I had needed to do this a couple months ago for a client. Rather than having class names entered into the administration of the fields as hereswhatidid did, I simply added the field name, field key, Flexible Content name (if any) and Flexible Content layout name (if any) to the body tag classes.
I decided to make a plugin to enable this functionality, though on the plugin page I also provide code that will do the same thing (FAQ tab).
https://wordpress.org/plugins/acf-wysiwyg-styling/
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.