{"id":17615,"date":"2021-03-08T16:16:26","date_gmt":"2021-03-08T16:16:26","guid":{"rendered":"http:\/\/wiki2.plumserver.com\/?post_type=ht_kb&#038;p=17615"},"modified":"2021-09-21T08:52:58","modified_gmt":"2021-09-21T12:52:58","slug":"whole-webpage-or-extra-blocks-loaded-inside-amp-iframe","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-amp\/v2\/troubleshooting\/amp-iframe-extra-blocks","title":{"rendered":"Whole Webpage or Extra Blocks Loaded Inside AMP IFRAME"},"content":{"rendered":"\n<h2>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>Here is an example of this issue on <a href=\"\/magento-amp\">Magento 2 AMP<\/a> page frontend:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1206\" height=\"714\" src=\"\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks.png\" alt=\"Extra-blocks.png\" class=\"wp-image-18962\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks-300x178.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks-1024x606.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks-768x455.png 768w\" sizes=\"(max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<h2>Issue Description<\/h2>\n\n\n\n<p>The issue happens when third-party extensions or themes modify the product page layout and thus add additional content.<\/p>\n\n\n\n<h2>Solution<\/h2>\n\n\n\n<h3><strong>Step 1<\/strong><\/h3>\n\n\n\n<p>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\" width=\"1206\" height=\"823\" src=\"\/docs\/wp-content\/uploads\/2021\/06\/Amp-iframe.png\" alt=\"Amp-iframe.png\" class=\"wp-image-18965\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Amp-iframe.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Amp-iframe-300x205.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Amp-iframe-1024x699.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Amp-iframe-768x524.png 768w\" sizes=\"(max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<h3>Step 2<\/h3>\n\n\n\n<p><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\" width=\"1206\" height=\"823\" src=\"\/docs\/wp-content\/uploads\/2021\/06\/Temp-hints.png\" alt=\"Temp-hints.png\" class=\"wp-image-18963\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Temp-hints.png 1206w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Temp-hints-300x205.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Temp-hints-1024x699.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Temp-hints-768x524.png 768w\" sizes=\"(max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<h3>Step 3<\/h3>\n\n\n\n<p>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\">app\/design\/&lt;Vendor>\/&lt;theme>\/Plumrocket_Amp\/layout\/amp_catalog_product_view_only_options.xml<\/code><\/pre><\/div>\n\n\n\n<h3>Step 4<\/h3>\n\n\n\n<p>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>Step 5<\/h3>\n\n\n\n<p>Clear the\u00a0<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>Step 6<\/h3>\n\n\n\n<p>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 Magento 2 AMP page frontend: Issue Description The issue happens when third-party extensions or themes modify the product page layout and thus add additional content. Solution &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-amp\/v2\/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":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[105],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\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\/whole-webpage-or-extra-blocks-loaded-inside-amp-iframe\" \/>\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\" \/>\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=\"\/docs\/magento-amp\/v3\/troubleshooting\/whole-webpage-or-extra-blocks-loaded-inside-amp-iframe\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-08T16:16:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-21T12:52:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks.png\" \/>\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 Premium 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\/whole-webpage-or-extra-blocks-loaded-inside-amp-iframe","og_locale":"en_US","og_type":"article","og_title":"Whole Webpage or Extra Blocks Loaded Inside AMP IFRAME","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":"\/docs\/magento-amp\/v3\/troubleshooting\/whole-webpage-or-extra-blocks-loaded-inside-amp-iframe","og_site_name":"Plumrocket Documentation","article_published_time":"2021-03-08T16:16:26+00:00","article_modified_time":"2021-09-21T12:52:58+00:00","og_image":[{"url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@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":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"\/docs\/magento-amp\/v3\/troubleshooting\/whole-webpage-or-extra-blocks-loaded-inside-amp-iframe\/#primaryimage","inLanguage":"en-US","url":"\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks.png","contentUrl":"\/docs\/wp-content\/uploads\/2021\/06\/Extra-blocks.png"},{"@type":"WebPage","@id":"\/docs\/magento-amp\/v3\/troubleshooting\/whole-webpage-or-extra-blocks-loaded-inside-amp-iframe\/#webpage","url":"\/docs\/magento-amp\/v3\/troubleshooting\/whole-webpage-or-extra-blocks-loaded-inside-amp-iframe\/","name":"Whole Webpage or Extra Blocks Loaded Inside AMP IFRAME - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"\/docs\/magento-amp\/v3\/troubleshooting\/whole-webpage-or-extra-blocks-loaded-inside-amp-iframe\/#primaryimage"},"datePublished":"2021-03-08T16:16:26+00:00","dateModified":"2021-09-21T12:52:58+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8"},"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":"\/docs\/magento-amp\/v3\/troubleshooting\/whole-webpage-or-extra-blocks-loaded-inside-amp-iframe\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["\/docs\/magento-amp\/v3\/troubleshooting\/whole-webpage-or-extra-blocks-loaded-inside-amp-iframe\/"]}]},{"@type":"BreadcrumbList","@id":"\/docs\/magento-amp\/v3\/troubleshooting\/whole-webpage-or-extra-blocks-loaded-inside-amp-iframe\/#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":"v2","item":"https:\/\/plumrocket.com\/docs\/magento-amp\/v2"},{"@type":"ListItem","position":5,"name":"Troubleshooting","item":"https:\/\/plumrocket.com\/docs\/magento-amp\/v2\/troubleshooting"},{"@type":"ListItem","position":6,"name":"Whole Webpage or Extra Blocks Loaded Inside AMP IFRAME"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","caption":"Plumrocket"}}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/17615"}],"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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=17615"}],"version-history":[{"count":4,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/17615\/revisions"}],"predecessor-version":[{"id":24186,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/17615\/revisions\/24186"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=17615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=17615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=17615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}