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' );
}
Hi @caputodesignz
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?
Hi @caputodesignz
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