Milind More
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] Amp error@padmapadma123 As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.
@ileiaeu As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.
Forum: Plugins
In reply to: [AMP] CSS syntax error in tag ‘style amp-custom’@sp4wn0r As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.
Forum: Plugins
In reply to: [AMP] CSS syntax error in tag ‘style amp-custom’.@fauziatabassum As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.
Forum: Plugins
In reply to: [NSFW] [AMP] Menu in AMP version does not work@eduspace As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.
Forum: Plugins
In reply to: [AMP] Critical error@dyhego As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.
Forum: Plugins
In reply to: [AMP] Service AMP UnavailableHello @vovff
Thank you for reaching out to us, Can you please ensure that your site is currently serving AMP pages, additionally, please send your site health information and PHP error log using this form
If you are not sure where to get PHP error log, please contact your hosting provider, They can provide you with the same.
Forum: Plugins
In reply to: [AMP] Display ‘hreflang’ tag on AMP pageHello @gundemden
I genuinely understand your frustration. It’s disheartening to invest significant time and effort into a project, only to be met with persistent issues. AMP errors can be particularly challenging to troubleshoot, especially when standard solutions don’t yield results.
The solution which I provided is based on the AMP Internationalization guideline and example
<style id="admin-bar-inline-css" type="text/css" data-ampdevmode="">
The
data-ampdevmode
attribute is added to the Admin bar, that should only be visible to logged-in users. If you’re seeing it while logged out, it suggests a caching issue. To resolve this, please flush your site’s cache.Since you are using Elementor, I will recommend using the AMP Enhancer plugin, which adds compatibility for some third-party plugins and themes such as Elementor.
We hope this helps!
Forum: Plugins
In reply to: [AMP] AMP incompatibility issues, errors 152Dear @raval104,
Thank you for sharing the data. Upon analysis, it appears that certain third-party premium plugins may be triggering validation errors.
If these plugins are not critical to your website’s operations, you may disregard the errors.
For further clarification and troubleshooting steps, please consult our documentation or watch the video provided.
What can you do?
1. Contact the plugin or theme support, requesting them to make their plugin or theme AMP compatible.
2 Look for an AMP compatible mini plugin or add-on which can fix validation error or feature and functionalities, you can find a list on our website or your third-party plugin / theme provider may have one.
3. Choose an alternate AMP compatible plugin from the list of AMP ecosystem
We hope this heplps!
Forum: Plugins
In reply to: [AMP] AMP incompatibility issues, errors 152Hello @raval104
Can you please send your site health to this Google Form
Forum: Plugins
In reply to: [AMP] Display ‘hreflang’ tag on AMP pageHello @gundemden
Can you please check the updated code snippet, replace with previous code snippet
Please add the code snippet in child themes functions.php or in a custom plugin.
/** * Add amphtml link. * * @since 1.0 */ function amp_add_amphtml_link_hreflang() { if ( function_exists( 'amp_is_canonical' ) && ! amp_is_canonical() ) { $amp_url = amp_add_paired_endpoint( amp_get_current_url() ); // Get the locale code. $locale_code = get_locale(); // Covert to ISO 639-1 language code. $locale_code = substr( $locale_code, 0, 2 ); // ploylang support. if( function_exists( 'pll_current_language' ) ) { $locale_code = pll_current_language('slug'); } if ( $amp_url ) { $amp_url = remove_query_arg( 'noamp', $amp_url ); printf( '<link rel="amphtml" href="%s" hreflang="%s">', esc_url( $amp_url ), $locale_code ); } if ( function_exists( 'pll_the_languages' ) ) { $languages = pll_the_languages( array( 'raw' => 1 ) ); foreach ( $languages as $language ) { $href = $language['url']; $href = amp_add_paired_endpoint( $href ); $href = remove_query_arg( 'noamp', $href ); printf( '<link rel="alternate" href="%s" hreflang="%s" />', esc_url( $href ), esc_attr( $language['slug'] ) ); } } } } add_action( 'wp_head', 'amp_add_amphtml_link_hreflang' ); add_action( 'template_redirect', static function () { remove_action( 'wp_head', 'amp_add_amphtml_link' ); } ); add_action( 'amp_post_template_head', 'add_polylang_alternate_links' ); /** * Add alternate links for Polylang. * * @return void */ function add_polylang_alternate_links() { if ( function_exists( 'pll_the_languages' ) ) { $languages = pll_the_languages( array( 'raw' => 1 ) ); foreach ( $languages as $language ) { $href = $language['url']; $href = amp_add_paired_endpoint( $href ); $href = remove_query_arg( 'noamp', $href ); printf( '<link rel="alternate" href="%s" hreflang="%s" />', esc_url( $href ), esc_attr( $language['slug'] ) ); } } }
Forum: Plugins
In reply to: [AMP] Amp errorHello @padmapadma123
Thank you for reaching out to us, The Generate Press theme provides an AMP compatibility plugin to fix AMP issues, Please download and install it, the instructions are provided in their documentation
We hope this helps!
Forum: Plugins
In reply to: [AMP] AMP incompatibility issues, errors 152Dear @raval104,
Thank you for reaching out to us. To ensure you receive the best possible support, we kindly request that you update your AMP plugin to version 2.5.5.
Please note that we have transitioned our support services to the official WordPress support forums. We encourage you to post your query here, providing as much detail as possible.
We appreciate your understanding and cooperation.
Hi @ileiaeu,
Thanks for contacting us. The AMP plugin adds scripts and styles to the WordPress admin bar. If your theme doesn’t support the admin bar, it uses a fallback method
_admin_bar_bump_cb
, You can refer to the AMP plugin code for more details.Please check your theme’s support for the admin bar.
WordPress core also uses a similar approach for the admin bar class.
We hope this helps!
Forum: Plugins
In reply to: [AMP] CSS syntax error in tag ‘style amp-custom’Hello @sp4wn0r
Thank you for reaching out to us, It seems there is syntax error in one of the CSS which is added by your theme or any one of plugins which might be causing AMP invalidation error.
I found out that following CSS is responsible for it
:root :where(ul.has-background { padding:1.25em 2.375em }
Please check what is adding this CSS code and remove it replace it with a more specific selector.
We hope this helps!