Recommended update (Error in validator)
-
Hi,
My AMP pages have just started to be index by google and the validator is throwing error back at me so I made a small modification to the template adding a function around
do_shortcode(MAMP_Render::replaceForAMP($postContent))
to replace a few attributes of elements.I imagine you can come up with a cleaner solution than this, but below is what I am using remove errors from forms and schema.
$Result1 = preg_replace('#\s(property|typeof)="[^"]+"#', '', $Content); $Result2 = str_replace("action=\"","action-xhr=\"",$Result1);
Thanks, Luke.
Free Spirit Development.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Recommended update (Error in validator)’ is closed to new replies.