Skip to content

AMP Settings in the Wpberita Theme

AMP Support

  • Almost all Idtheme themes support AMP layouts (only the official AMP is supported).
  • Activate the official WordPress AMP plugin. Official AMP plugin link.

Recommendations

  • Use Standard or Transitional mode as needed. Transitional mode is recommended.

Here is a screenshot of Transitional mode settings in Dashboard -> AMP -> Settings:

Screenshot of Transitional mode settings in Dashboard -> AMP -> Settings

  • Do not redirect mobile visitors to AMP.

In other settings, redirect mobile visitor to AMP: enable this option only if you want to send mobile visitors to AMP pages; recommended to leave it disabled. Here is the settings screenshot:

Screenshot of redirect mobile visitor to AMP in Dashboard -> AMP -> Settings

  • Suppress plugins that do not support AMP.

The theme already supports AMP, but some plugins may not and can cause AMP errors. Check whether the plugin supports AMP. If not, suppress that plugin. Here is the suppress plugin settings screenshot:

Screenshot of suppress plugin in Dashboard -> AMP -> Settings

  • Ensure ad components and third‑party scripts are compatible.
  • Test pages with Google AMP Test to confirm validity.

AMP in the Customizer

To simplify certain views, features like widgets and comments are removed on AMP pages.

However, you don’t need to worry: we provide settings to display ads on AMP pages, and if you use page‑level ads, we also include a head script option specific to AMP pages. Settings:

  1. Go to the Customizer, then open the AMP (New) menu. There you can configure ads for your AMP pages. See the screenshot:

AMP Ads Settings in the Customizer

  1. To learn which ad networks are supported and their formats, visit:

https://amp.dev/documentation/components/amp-ad/

If you use AdSense, learn the AdSense formats here:

https://github.com/ampproject/amphtml/blob/master/ads/google/adsense.md

How do I validate my AMP pages? Use:

https://validator.ampproject.org

Adjustments

  • If the theme provides specific AMP settings, enable them in the relevant Customizer or Options.
  • Minimize custom CSS and avoid incompatible inline JS.

FAQ

Q. Why doesn’t my plugin work on AMP pages?

Make sure the plugin supports AMP; ask the plugin developer to confirm it works on AMP pages.

Q. Why doesn’t my JavaScript work on AMP pages?

AMP does not support JavaScript. If you insert JavaScript in posts, it will not work. Disable the AMP plugin if you need JavaScript in posts.

Q. Why are my pages still valid AMP after I disable the AMP plugin?

If you disable the AMP plugin, your pages will no longer have AMP.

Q. Why is my AMP page invalid?

Check for errors in the AMP validator. If errors exist, fix them. Usually errors are caused by scripts or plugins not supported by AMP.

Q. Why is there an AMP Error Index setting?

Usually a plugin causes the index error. Suppress that plugin; see the tutorial above.

Powerfull Plugin and theme wordpress indonesia.