Hey @osseonews
Thank you so much for using the plugin!
Can you please send us the URL so that I can check and help you.
Regards,
Ahmed
Sure, here is one. https://www.osseonews.com/implant-diameter-effect-strength/amp/
It is actually every post on the site. The same error.
“The extension ‘amp-accordion extension .js script’ was found on this page, but is unused (no ‘amp-accordion’ tag seen). This may become an error in the future.”
Hey @osseonews
We have actually found the problem. We are using that script to display the dropdown menu. If there isn’t any dropdown menu, the script should not be loading but it is still loading. This has been reported at: https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/634
We are hoping to fix it in the next update. Meanwhile, a quick fix would be to add a sub menu item in the navigation menu and that should do the trick.
Regards,
Ahmed
Hi there,
Just updated to the newest version and you still have the bug mentioned here. Please fix. thanks.
I still get this issue with the Custom Theme.
Perhaps you should wrap the menu into the <amp-accordion>?
Warning quote:
The extension ‘amp-accordion extension .js script’ was found on this page, but is unused (no ‘amp-accordion’ tag seen). This may become an error in the future.
If your drop-down menu does not have child elements, you can remove amp-accordion library using the following code in the child-theme:
// Remove AMP-accordion Library
add_filter( ‘amp_post_template_data’, ‘gp_ampforwp_add_design3_required_scripts’, 101 );
function gp_ampforwp_add_design3_required_scripts( $data ) {
unset($data[‘amp_component_scripts’][‘amp-accordion’]);
return $data;
}
Hey @ivanpr,
We apologize for the inconvenience.
We are aware of this issue and will make sure that it get’s resolve as soon as possible.
Regards
Marqas
Hi @ozderem,
I just check the link which you have shared and it is getting validated perfectly.
Are you sure that you are facing this issue?
Ivan Privalov I applied the code that the friend wrote and I think that the error is correct.
Only the main page now has a similar error. https://dizihaberi.tv/amp/
-
This reply was modified 8 years, 9 months ago by
ozderem.