{"id":3843,"date":"2017-09-15T15:07:20","date_gmt":"2017-09-15T15:07:20","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=3843"},"modified":"2018-04-05T12:34:40","modified_gmt":"2018-04-05T12:34:40","slug":"validating-amp-pages","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/validating-amp-pages\/","title":{"rendered":"Validating the AMP Pages"},"content":{"rendered":"<p>After installing the AMP on a Website, everyone will be worried about the AMP Validations.<\/p>\n<p>There are two major parts in this article one is <strong>Validation<\/strong> and the other is\u00a0<strong>What Next?<\/strong>.<\/p>\n<p>Let&#8217;s get down to it.<\/p>\n<h3>Validation<\/h3>\n<p>what is mean by <strong>Validation<\/strong> in <strong>AMP<\/strong> and why it is so <strong>necessary<\/strong> to the implementation of AMP.<\/p>\n<p>As you must be having an idea about what AMP is and if now this <a href=\"https:\/\/ampforwp.com\/tutorials\/article\/auto-magically-make-everything-amp\/\">article<\/a> might help you a bit.<\/p>\n<p>To have all the benefits of AMP on your site you need to follow the set of rules and regulation that AMP has set. As the AMP have lot&#8217;s of restriction with regards to the way methods or content is used such as scripts, heavy stylings etc.<\/p>\n<p>Google Index the pages which are AMP Validated or it will show you where the Validation\u00a0fails<\/p>\n<p>If It&#8217;s Important then <strong>where<\/strong> and <strong>how<\/strong> to check the Validation of AMP? Just follow ahead!<\/p>\n<h4>Google WebMaster Tools (GWT \/ Search Console)<\/h4>\n<p>in GWT you&#8217;ll be having a section dedicated to AMP where it will show all the index pages and the errors if any.<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/gwt.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3871\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/gwt.png\" alt=\"GWT search cansole\" width=\"1353\" height=\"572\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/gwt.png 1353w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/gwt-300x127.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/gwt-768x325.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/gwt-1024x433.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/gwt-50x21.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/gwt-60x25.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/gwt-100x42.png 100w\" sizes=\"(max-width: 1353px) 100vw, 1353px\" \/><\/a><\/p>\n<p>In the above image, we can see the number of Indexed AMP pages and those with the errors.<\/p>\n<p>GWT helps us to get the complete status of the AMP pages on our site and to lock down where the errors are.<\/p>\n<p>There is one thing to keep in mind that the report you get from GWT is not current report but when Google last checked your site so it would be better to check the pages on AMP Validation sites such as <a href=\"https:\/\/validator.ampproject.org\/\">Validator<\/a>\u00a0by ampproject\u00a0and <a href=\"https:\/\/search.google.com\/test\/amp\">AMP Test<\/a> by Google.<\/p>\n<p>Once you get to know the status of AMP on your site and if there are errors then comes the following section to help you out.<\/p>\n<h3>What Next?<\/h3>\n<p>If you found out that there are errors on your AMP pages and you want to solve them to get the AMP Validated pages\/site.<\/p>\n<p>I&#8217;ll be showing you how to debug the AMP errors in the following paragraphs.<\/p>\n<p>First, find the nature of the errors such as invalid tags, authored scripts etc it will help you to lock down from where and what is causing the issue.<\/p>\n<p><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/error.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3883\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/error.png\" alt=\"Invalid css\" width=\"759\" height=\"493\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/error.png 759w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/error-300x195.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/error-50x32.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/error-60x39.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/09\/error-100x65.png 100w\" sizes=\"(max-width: 759px) 100vw, 759px\" \/><\/a><\/p>\n<p>In the above image, you can see the above part is the categorizing the type of error and below the details.<\/p>\n<p>Sometimes the errors come from the code that we put while writing the page\/post and mostly generated dynamically from some 3rd party plugins.<\/p>\n<p>If you cannot locate where it is coming from then try deactivating some plugins and test them on the Validation tools as mentioned above.<\/p>\n<p>and still, if you are not able to resolve or figure out the issue try <a href=\"https:\/\/ampforwp.com\/support\/\">this<\/a>.<\/p>\n<p><strong>That&#8217;s it for this article!<\/strong><\/p>\n<p>We hope it helped you. If you have any feedback or questions, then please share them in the comments section below<\/p>\n<div id=\"div-1\" class=\"hkb-feedback\">\n\t\t\t<strong class=\"ht-mobile-exit__title\">Ask your Questions Directly!<\/strong><br>\n\t\t\t<div class=\"hkb_widget_exit__content\" style=\"font-size: 14px;\">If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!<\/div>\n\t\t\t<a href=\"https:\/\/ampforwp.com\/support\/#contact\" id=\"button\" target=\"_blank\" rel=\"noopener noreferrer\"><button>Yes, I have a Question<\/button><\/a>\n\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>After installing the AMP on a Website, everyone will be worried about the AMP Validations. There are two major parts in this article one is Validation and the other is\u00a0What Next?. Let&#8217;s get down to it. Validation what is mean by Validation in AMP and why it is so necessary&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[83],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/3843"}],"collection":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=3843"}],"version-history":[{"count":3,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/3843\/revisions"}],"predecessor-version":[{"id":4111,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/3843\/revisions\/4111"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=3843"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=3843"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=3843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}