Problems making AMP extension load
-
We’re working with a partner who is trying to load amp-access-scroll by adding it in a filter like so.
add_filter( 'amp_post_template_data', array( $this, 'amp_component_scripts' ), 99 ); public function amp_component_scripts( $data = [] ) { $data['amp_component_scripts']['amp-access'] = 'https://cdn.ampproject.org/v0/amp-access-0.1.js'; $data['amp_component_scripts']['amp-access-scroll'] = 'https://cdn.ampproject.org/v0/amp-access-scroll-0.1.js'; return $data; }However, amp-access loads but amp-access-scroll does not. Is it possible the sanitizer is removing amp-access-scroll because there is no corresponding element or attribute to show that it is being used? If so, is there a way to override this behavior for our extension? Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Problems making AMP extension load’ is closed to new replies.