Milind More
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] Display ‘hreflang’ tag on AMP pageHello @gundemden
Thank you for reaching out to us, Yes hreflang attribute was not being added to link tags added by AMP plugin, can you please try adding the following code snippet at end of your child themes function.php file
/** * 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 ); } } } add_action( 'wp_head', 'amp_add_amphtml_link_hreflang' ); add_action( 'template_redirect', static function () { remove_action( 'wp_head', 'amp_add_amphtml_link' ); } );
Please try above code and let me know if that works for you
Forum: Plugins
In reply to: [AMP] CSS syntax error in tag ‘style amp-custom’.Hello @fauziatabassum
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 plugin 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 more specific option.
We hope this helps!
Forum: Plugins
In reply to: [NSFW] [AMP] Menu in AMP version does not workHello @eduspace,
Thank you for your inquiry. To enable full functionality of your menus within the AMP framework, we recommend installing the mini plugin developed by GeneratePress. We’re pleased to hear you’ve resolved the issue.
The empty space you’ve mentioned is designated for advertisements. To maximize utilization of this area, we suggest implementing responsive ads.
I hope this is helpful!
Forum: Plugins
In reply to: [NSFW] [AMP] Menu in AMP version does not workHello @cryptoja1, Please create a new support topic and describe your issues in newly created support topic so we can guide you better.
Forum: Plugins
In reply to: [AMP] No Google CMP or In Page Adsense Auto AdsAs 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 errorHello @dyhego
Sorry for the delayed response, it appears that you deactivated the jetpack plugin, the “jba spark” is a different plugin which is located on
/public_html/wp-content/plugins/jbaspark-master/
path can you please check if you can deactivate it.Forum: Plugins
In reply to: [AMP] My GeneratePress Theme Isn’t Competible with AMPHello @allusefulinfo
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] Remove “/amp” for URL without AMP ativatedGlad you found the solution to your issues, I will mark this support topic as resolved.
Forum: Plugins
In reply to: [AMP] Remove “/amp” for URL without AMP ativatedHello @nicolaspl
I understand you wanted AMP pages, but you don’t want pagination links to be AMP
Please try adding the following code snippet in your theme functions.php or in a custom plugin
add_filter( 'amp_to_amp_linking_element_excluded', function( $excluded, $url ) { // find pagination urls. if ( strpos( $url, 'page/' ) !== false ) { return true; } return $excluded; }, 10, 2 );
Forum: Plugins
In reply to: [AMP] Critical errorHello @dyhego
Thank you for getting back to us with error logs, it seems plugin
jbaspark-master
is causing the issues on AMP pages, can you please deactivate the plugin and check if it’s working for you without errors?In case the jbaspark plugin is causing issues, I will recommend reaching out to their support and getting those errors fixed
We hope this helps you!
Forum: Plugins
In reply to: [AMP] Remove “/amp” for URL without AMP ativatedHello @nicolaspl
As I mentioned in my previous reply, you can toggle off the templates where you do not want AMP pages
To deactivate, Login as Admin->Dashboard->AMP->Settings->Supported templates and toggle off categories/ tags archive to remove those pages from AMP.
We hope this helps!
Forum: Plugins
In reply to: [AMP] Error in social sharing@sadignet 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] How to disable on single page@mark8888 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] custom url@farihkh 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] Remove “/amp” for URL without AMP ativatedHello @nicolaspl
Thank you for reaching out to us, it seems the AMP is active on pagination page as we can find
<link rel="amphtml" href="https://www.monpetitforfait.com/actualites/page/2/amp">
on non-AMP pages,if you want to disable the amp on pagination, we will recommend checking Dashboard->AMP->Supported templates settings, please check our documentation to learn more.
We hope this helps!