Home › Forums › General Issues › Change validatation message's div position › Reply To: Change validatation message's div position
These messages are added using JavaScript. It may be possible to move it, but it won’t be pretty. You’ll need to add custom JS, see this https://www.advancedcustomfields.com/resources/adding-custom-javascript-fields/
There is an action fired when the error message is added add_field_error
and one fired when it is removed. remove_field_error
. The main problem that I see is that if you move it then ACF won’t be able to find it to remove so the remove action won’t fire. You’d basically need to add your own error message when ACF adds it and then remove your error message when ACF removes it and hide the ACF messages with custom CSS.
That’s the best information I can tell you, I have not dealt with the error messages before. I can say that it is possible, I just can give you any code that will accomplish it.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.