Home › Forums › General Issues › Front End Form Validation Error
I am using the front end form and keep getting this error
Line 239, Column 242: Element link is missing required attribute property.
…hunter/wp-includes/css/editor.min.css?ver=3.5.2' type='text/css' media='all' />
I believe it is not validating because it is in the body and not the head. I am trying to deregister the editor.min.css and place it in the head but I have had no luck. I modified the function Elliot had to remove the wp-jquery-ui-dialog and it worked great but I can’t figure out editor. Here is what I have:
function my_deregister_styles() {
wp_deregister_style( 'wp-admin' );
wp_deregister_style( 'wp-jquery-ui-dialog' );
wp_deregister_style( 'wp-editor' );
}
I can’t recall the function to ‘remove the wp-jquery-ui-dialog’. Can you elaborate on this?
I am using the front end form function for ACF to allow users to submit a post on this page: http://caputodesignz.com/job-hunter/post-job/.
Everything is working but I want this page to pass W3C validation. If you look here it finds an error with the css file being called: http://validator.w3.org/check?uri=caputodesignz.com%2Fjob-hunter%2Fpost-job&charset=%28detect+automatically%29&doctype=Inline&group=0
Here is the error:
Validation Output: 1 Error
Error Line 209, Column 242: Element link is missing required attribute property.
…hunter/wp-includes/css/editor.min.css?ver=3.5.2' type='text/css' media='all' />
Attributes for element link:
Global attributes
href
crossorigin
rel
media
hreflang
type
sizes
Also, the title attribute has special semantics on this element.
The editor.min.css call is causing the issue. I am trying to remove this from the page so I can put it in the header when this page is used. That cleared up the same error for the jquery.ui.min.css.
Is there a way to stop this from auto loading with the page when using front end form and calling it yourself?
Sorry mate, I’m actually not sure. I’ll have to wish you good luck in your debugging.
Perhaps start with the ‘core/api.php’ (acf_form_head function) to see if commenting out the enque scripts action helps.
Cheers
Elliot
The topic ‘Front End Form Validation Error’ is closed to new replies.
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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc
— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.
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.