The tag ‘amphtml engine script’ appears more than once in the document.
-
I am getting an error on several (~40 pages) regarding “The tag ‘amphtml engine script’ appears more than once in the document”. I can’t seem to isolate it anywhere, I have loaded in these filtering scripts (into functions.php) in hopes it would help clear up the issue:
add_filter( ‘amp_post_template_data’, function( $data ) {
$data[‘amp_component_scripts’] = array_merge(
$data[‘amp_component_scripts’],
array(
‘amp-iframe’ => ‘https://cdn.ampproject.org/v0/amp-iframe-latest.js’,
‘amp-analytics’ => ‘https://cdn.ampproject.org/v0/amp-analytics-latest.js’,
‘amp-sticky-ad’ => ‘https://cdn.ampproject.org/v0/amp-sticky-ad-latest.js’,
‘amp-form’ => ‘https://cdn.ampproject.org/v0/amp-form-latest.js’,
‘amp-ad’ => ‘https://cdn.ampproject.org/v0/amp-ad-latest.js’,
‘amp’ => ‘https://cdn.ampproject.org/v0.js’
)
);
return $data;
} );Is there a similar way to filter the ‘amphtml engine script’?
However, no such luck. I would appreciate your assistance in getting this cleared up! Thank you!
The page I need help with: [log in to see the link]
- The topic ‘The tag ‘amphtml engine script’ appears more than once in the document.’ is closed to new replies.