{"id":18674,"date":"2021-06-15T13:22:21","date_gmt":"2021-06-15T10:22:21","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=18674"},"modified":"2021-09-21T09:14:57","modified_gmt":"2021-09-21T13:14:57","slug":"whole-webpage-or-extra-blocks-loaded-inside-amp-iframe-2","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks","title":{"rendered":"Whole Webpage or Extra Blocks Loaded Inside AMP IFRAME"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">When navigating to the Magento AMP Product page, users may see a whole webpage or extra blocks loaded inside AMP Iframe<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Here is an example of this issue on&nbsp;<a href=\"\/magento-amp\">Magento 2 AMP<\/a>&nbsp;page frontend:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1206\" height=\"714\" src=\"\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks-1.png\" alt=\"Extra-blocks.png\" class=\"wp-image-18967\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks-1.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks-1-300x178.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks-1-1024x606.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks-1-768x455.png 768w\" sizes=\"auto, (max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Issue Description<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The issue happens when third-party extensions or themes modify product page layout and thus add additional content.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Go to your AMP Product page and open Iframe source in a new window:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1206\" height=\"823\" src=\"\/docs\/wp-content\/uploads\/2021\/06\/Amp-iframe-1.png\" alt=\"Amp-iframe.png\" class=\"wp-image-18968\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Amp-iframe-1.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Amp-iframe-1-300x205.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Amp-iframe-1-1024x699.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Amp-iframe-1-768x524.png 768w\" sizes=\"auto, (max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/docs.magento.com\/user-guide\/system\/template-path-hints.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Enable template path hints<\/a>\u00a0and find Magento blocks you want to delete in Iframe.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1206\" height=\"823\" src=\"\/docs\/wp-content\/uploads\/2021\/06\/Temp-hints-1.png\" alt=\"Temp-hints.png\" class=\"wp-image-18969\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Temp-hints-1.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Temp-hints-1-300x205.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Temp-hints-1-1024x699.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Temp-hints-1-768x524.png 768w\" sizes=\"auto, (max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Go to your theme folder and create the following file:<\/p>\n\n\n\n<div class=\"wp-block-prismatic-blocks\"><div><\/div><pre><code class=\"language-bash\" data-line=\"\">app\/design\/&lt;Vendor&gt;\/&lt;amp_theme&gt;\/Plumrocket_AmpCatalog\/layout\/amp_catalog_product_view_only_options.xml<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Remove the extra blocks you found in step 2 using\u00a0<a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/frontend-dev-guide\/layouts\/xml-instructions.html#fedg_layout_xml-instruc_ex_rmv\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">layout instructions<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Clear the&nbsp;<a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/config-guide\/cli\/config-cli-subcommands-cache.html#config-cli-subcommands-cache-clean\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Magento cache<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Now go back to your browser and refresh the AMP product page. The AMP Iframe should be displayed correctly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When navigating to the Magento AMP Product page, users may see a whole webpage or extra blocks loaded inside AMP Iframe Here is an example of this issue on&nbsp;Magento 2 AMP&nbsp;page frontend: Issue Description The issue happens when third-party extensions or themes modify product page layout and thus add additional content. Solution Step 1 Go &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Whole Webpage or Extra Blocks Loaded Inside AMP IFRAME&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[106],"tags":[],"class_list":["post-18674","post","type-post","status-publish","format-standard","hentry","category-troubleshooting-v3","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Whole Webpage or Extra Blocks Loaded Inside AMP IFRAME - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"When navigating to the Magento AMP Product page, users may see a whole webpage or extra blocks loaded inside AMP Iframe Here is an example of this issue\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Whole Webpage or Extra Blocks Loaded Inside AMP IFRAME - Plumrocket Documentation\" \/>\n<meta property=\"og:description\" content=\"When navigating to the Magento AMP Product page, users may see a whole webpage or extra blocks loaded inside AMP Iframe Here is an example of this issue\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2021-06-15T10:22:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-21T13:14:57+00:00\" \/>\n<meta name=\"author\" content=\"Plumrocket\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Whole Webpage or Extra Blocks Loaded Inside AMP IFRAME - Plumrocket Documentation","description":"When navigating to the Magento AMP Product page, users may see a whole webpage or extra blocks loaded inside AMP Iframe Here is an example of this issue","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks","og_locale":"en_US","og_type":"article","og_title":"Whole Webpage or Extra Blocks Loaded Inside AMP IFRAME - Plumrocket Documentation","og_description":"When navigating to the Magento AMP Product page, users may see a whole webpage or extra blocks loaded inside AMP Iframe Here is an example of this issue","og_url":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks","og_site_name":"Plumrocket Documentation","article_published_time":"2021-06-15T10:22:21+00:00","article_modified_time":"2021-09-21T13:14:57+00:00","author":"Plumrocket","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks#article","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks"},"author":{"name":"Plumrocket","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"headline":"Whole Webpage or Extra Blocks Loaded Inside AMP IFRAME","datePublished":"2021-06-15T10:22:21+00:00","dateModified":"2021-09-21T13:14:57+00:00","mainEntityOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks"},"wordCount":143,"articleSection":["Troubleshooting"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks","url":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks","name":"Whole Webpage or Extra Blocks Loaded Inside AMP IFRAME - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"datePublished":"2021-06-15T10:22:21+00:00","dateModified":"2021-09-21T13:14:57+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20"},"description":"When navigating to the Magento AMP Product page, users may see a whole webpage or extra blocks loaded inside AMP Iframe Here is an example of this issue","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting\/amp-iframe-extra-blocks#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/magento-extensions"},{"@type":"ListItem","position":2,"name":"Magento 2 AMP","item":"https:\/\/plumrocket.com\/magento-amp"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-amp"},{"@type":"ListItem","position":4,"name":"v3","item":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3"},{"@type":"ListItem","position":5,"name":"Troubleshooting","item":"https:\/\/plumrocket.com\/docs\/magento-amp\/v3\/troubleshooting"},{"@type":"ListItem","position":6,"name":"Whole Webpage or Extra Blocks Loaded Inside AMP IFRAME"}]},{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/38b360639b934d6c984ee4f3ffce7d20","name":"Plumrocket","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/85ed2f38dbe6a031f443b1949101e9b31bbd6985eae2cac6695629e7ad280aee?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/85ed2f38dbe6a031f443b1949101e9b31bbd6985eae2cac6695629e7ad280aee?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/85ed2f38dbe6a031f443b1949101e9b31bbd6985eae2cac6695629e7ad280aee?s=96&d=mm&r=g","caption":"Plumrocket"},"sameAs":["https:\/\/plumrocket.com\/docs"]}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/18674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=18674"}],"version-history":[{"count":3,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/18674\/revisions"}],"predecessor-version":[{"id":24194,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/18674\/revisions\/24194"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=18674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=18674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=18674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}