Mohammad Jangda
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] Google Analytics with AMPWhat specifically is not working?
Forum: Plugins
In reply to: [AMP] Amp pages not working after 0.3.1 updateCan you please check to see if there are any errors in your PHP error log?
Forum: Plugins
In reply to: [AMP] google console Don't Show Up AMP postsdndgh: I see the
amphtmltags in the source as well and the pages validate correctly. Might just take some time for Google to pick them up.Forum: Plugins
In reply to: [AMP] Issues with GoogleI think another plugin, maybe WP-Rocket is stripping the scheme (
https:) from the stylesheet URL, which is breaking validation:<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic%7COpen+Sans:400,700,400italic,700italic" />leads to this error:
The attribute 'href' in tag 'link rel=stylesheet for fonts' is set to the invalid value '//fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic%7COpen+Sans:400,700,400italic,700italic'. (see https://github.com/ampproject/amphtml/blob/master/spec/amp-html-format.md#custom-fonts)Forum: Plugins
In reply to: [AMP] fopen errorsGlad to hear it’s working now!
Forum: Plugins
In reply to: [AMP] problem working with mobile viewDo you have some sort of full page caching plugin in place? You may need to flush that.
Also, please note that your template includes some
scripttags which will fail validation.Forum: Plugins
In reply to: [AMP] Not working with custom wp-content folder or ?It’s likely due to some custom validation we do to check the path of the template. It’s probably not matching up with what the WP_CONTENT_DIR is set to.
Can you confirm that the value of
WP_CONTENT_DIRis/site.ooo/wire/assets?Forum: Plugins
In reply to: [AMP] amp plugin installed but posts with /amp/ are blankSeamoose37: can you check to see if there are any errors in your PHP error log?
Forum: Plugins
In reply to: [AMP] Images in post body not loadingmattmaldre: there was a bug with
content_widththat’s been fixed in 0.3.1. Can you update and see if the images show up?Coptic-Treasures: you need to add featured image support manually (see https://github.com/Automattic/amp-wp/blob/master/readme.md#featured-image)
Forum: Plugins
In reply to: [AMP] fopen errors0.3.1 should hopefully fix this.
Forum: Plugins
In reply to: [AMP] Issues with GoogleCan you share a link to your site?
Forum: Plugins
In reply to: [AMP] PHP Notice when viewing AMP pagesWhat is the value of your
WP_CONTENT_DIRconstant?Forum: Plugins
In reply to: [AMP] google console Don't Show Up AMP postsThat is odd because both those pages have the required
<link rel=amphtmltags.Forum: Plugins
In reply to: [AMP] Plugin Not Working, Redirecting to non AMP URLYes, Pages support is being worked on and hopefully will be released in the next version.
Forum: Plugins
In reply to: [AMP] AMP Plugin active, but…Something is injecting extra scripts and styles into the AMP page which is not allowed in the spec which is why validation fails:
<script type="text/javascript"> //<![CDATA[ try{(function(a){var b="https://",c="www.salzburg12.at",d="/cdn-cgi/cl/",e="img.gif",f=new a;f.src=[b,c,d,e].join("")})(Image)}catch(e){} //]]> </script>FYI: you can see these errors by navigating to an AMP page, adding
#development=1to the URL, refreshing the page, and then viewing errors in the javascript console in Developer Tools.