Mohammad Jangda
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] Image Missing (Google’s Structured Data Testing Tool)You could use the metadata filter and add the image through that: https://github.com/Automattic/amp-wp/blob/master/readme.md#schemaorg-json-metadata (the example shows logo, but you could insert the
[image]key instead of the['publisher']['logo'])Forum: Plugins
In reply to: [AMP] Too many data missing on custom post typesYou can use any of the options noted in the template tweaks section here: https://github.com/Automattic/amp-wp/blob/master/readme.md#template-tweaks
For example, you can include a custom template that outputs your custom info.
Forum: Plugins
In reply to: [AMP] Google Search ConsoleLooks like another plugin might be modifying the output of the AMP pages which is leading to the following issues:
1)
media="all"is being added to the stylesheet<link>tag, which is not allowed.
2) The AMP boilerplate is being stripped out.Forum: Plugins
In reply to: [AMP] problem with google adsenseYou have to use the
amp-adelement for displaying ads; standard ad code does not work with AMP pages.Forum: Plugins
In reply to: [AMP] The attribute 'type' may not appear in tag 'author stylesheet'.I don’t see the error on the page. Did you manage to fix it?
Forum: Plugins
In reply to: [AMP] Google WMT errors reportedLooks like other plugins are injecting scripts and stylesheets into the templates which is breaking the validation.
Forum: Plugins
In reply to: [AMP] set featured image not workingThe plugin currently doesn’t do anything on the admin side so it may have been a conflict with a different plugin or theme.
Forum: Plugins
In reply to: [AMP] Google Analytics with AMPppsthane and Rooibos: please do not edit the plugin files directly. Please see this section on where to put code: https://github.com/Automattic/amp-wp/blob/master/readme.md#where-do-i-put-my-code
Forum: Plugins
In reply to: [AMP] Google Analytics with AMPWebdados: to view errors, go to any AMP page, open your browser’s javascript console (usually right-click > “Inspect Element” > “Console” tab). Add
#development=1to the end of the URL and then refresh the page. Any AMP errors will show up in the Javascript console.Forum: Plugins
In reply to: [AMP] post settings (e.g. no tags) not conservedI’m not sure what settings you’re referring to. Can you share a screenshot of these settings please?
Forum: Plugins
In reply to: [AMP] Image Missing (Google’s Structured Data Testing Tool)You can either set a featured image for the post or upload an attachment to the post (do not have to insert into content).
Forum: Plugins
In reply to: [AMP] Issues with GoogleLooks much better now!
Forum: Plugins
In reply to: [AMP] Google Analytics with AMPThe error on the page is:
amp-analytics-0.1.max.js:243 AmpAnalytics analytics1 Analytics config could not be parsed. Is it in a valid JSON format? SyntaxError: Unexpected token /You need to remove the comments like
// Trigger names can be any string. trackPageview is not a required name.Forum: Plugins
In reply to: [AMP] Blank pages since updating from 0.2That’s odd. Can you try deactivating and reactivating the plugin?
If that doesn’t work, can you try updating the
is_valid_templatefunction inincludes/class-amp-post-template.phptoreturn true;and see if that fixes it?Forum: Plugins
In reply to: [Liveblog] Key Events Documentation?Some docs are available here: https://github.com/Automattic/liveblog#overview