Back to Community

Troubleshooting Common AMP Plugin Issues: Language, CSS, and Compatibility

29 threads Sep 16, 2025 PluginAmp

Content

Common AMP Plugin Challenges and How to Resolve Them

The official AMP for WordPress plugin is a powerful tool for creating fast, mobile-friendly pages. However, users sometimes encounter issues related to language, theme compatibility, and CSS limitations. Based on common community support threads, this guide outlines the most frequent problems and their solutions.

1. Language and RTL (e.g., Persian) Display Issues

The Problem: Users report that plugin configuration wizards, counters, or other elements appear broken or "messy" when their site language is set to Persian or other Right-to-Left (RTL) languages. The issue often resolves when switching to English.

Why It Happens: This is typically caused by a CSS overbudget error. The AMP framework enforces a strict limit of 75KB of CSS per page. When a site uses an RTL language, it often loads additional CSS files to handle the RTL styling. If the combined CSS from the theme and plugins exceeds this limit, the AMP plugin's sanitizer will remove the excess, breaking the layout.

The Solution:

  1. Identify the source of the excess CSS. Navigate to AMP > CSS in your WordPress admin dashboard. This validation tool will show you which plugins or themes are contributing the most CSS.
  2. Work to reduce CSS bloat. This may involve:
    • Contacting your theme author and asking them to optimize their AMP-compatible CSS.
    • Deactivating non-essential plugins that add large amounts of CSS.
    • Using a more lightweight, AMP-optimized theme.

2. JSON File Errors During Setup Wizard

The Problem: Users get stuck in the configuration wizard with an error referencing a problem with a JSON file.

Why It Happens: This error is frequently related to a caching plugin or server-level caching that is corrupting the JSON response needed for the wizard to communicate properly. It has also been a known bug in specific plugin versions (e.g., 2.2.2) that was later patched.

The Solution:

  1. Update the AMP Plugin: Ensure you are running the latest version of the AMP plugin to benefit from bug fixes.
  2. Disable Caching Temporarily: Clear all your caches and temporarily disable any caching plugins (e.g., WP Rocket) or server-side caching. Try running the setup wizard again.
  3. Check PHP Version: While the plugin works with PHP 5.6, it is always recommended to use a newer, supported PHP version (7.4 or higher) for better performance and security.

3. Theme and Plugin Compatibility Problems

The Problem: Features like social sharing buttons, scroll-to-top functions, galleries, or review plugins stop working after enabling AMP. A common example is themes like Jannah or Newspaper that have their own custom AMP implementations.

Why It Happens: AMP pages do not allow most custom JavaScript, which is what many plugins and complex themes rely on for their functionality. If a theme (like Jannah) is not fully AMP-compatible, the plugin will default to using its simpler "Reader" mode template, which may not support all features.

The Solution:

  1. Check for AMP Compatibility: Before using a plugin or theme, verify it is advertised as AMP-compatible.
  2. Use AMP-Compatible Alternatives: For features like chat, use components like amp-facebook-page or services like tawk.to. For cookie banners, consider the Complianz plugin, which has some AMP support.
  3. Exclude Incompatible Pages: You can exclude specific pages or post types from AMP. Go to AMP > Settings > Supported Templates to configure this. You can also exclude individual pages from the post editor settings.
  4. Contact the Theme/Plugin Author: The best long-term solution is to contact the author of the incompatible product (e.g., Jannah support) and request they make their product fully compatible with the official AMP plugin.

4. The fetchpriority="high" Validation Error

The Problem: A validation error appears for the fetchpriority="high" attribute on images.

Why It Happens: This is a known issue where the AMP specification had not yet approved this attribute. The AMP plugin's validator flags it as an error.

The Solution: This is generally a harmless warning that can be ignored. If the error messages are bothersome, you can suppress them using a filter in your theme's functions.php file:

add_filter( 'amp_validation_error_sanitized', function( $sanitized, $error ) { if ( false !== strpos( $error['message'], 'fetchpriority' ) ) { return true; } return $sanitized; }, 10, 2 );

Always back up your site before editing theme files.

Conclusion

Many common AMP plugin issues stem from three core areas: CSS limits, JavaScript incompatibility, and conflicts with specific themes. The first steps toward a solution are almost always to update all software, use compatible products, and utilize the plugin's built-in validation tools to identify the root cause. For further assistance, the WordPress support forums are an excellent community resource.

Related Support Threads Support