{"id":12410,"date":"2019-07-13T10:35:04","date_gmt":"2019-07-13T10:35:04","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=12410"},"modified":"2019-08-01T11:32:30","modified_gmt":"2019-08-01T11:32:30","slug":"how-to-remove-the-gap-between-header-and-amp-pagebuilder-module","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-remove-the-gap-between-header-and-amp-pagebuilder-module\/","title":{"rendered":"How to remove the Gap between Header and AMP Pagebuilder module"},"content":{"rendered":"\n<p>If you are facing the problem with <strong>AMP Layout<\/strong> by the value of margin-top:-20px as type of issue like below the screenshot.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"917\" height=\"450\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/photo_2019-07-13_15-19-52.jpg\" alt=\"\" class=\"wp-image-12413\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/photo_2019-07-13_15-19-52.jpg 917w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/photo_2019-07-13_15-19-52-300x147.jpg 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/photo_2019-07-13_15-19-52-768x377.jpg 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/photo_2019-07-13_15-19-52-50x25.jpg 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/photo_2019-07-13_15-19-52-60x29.jpg 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/photo_2019-07-13_15-19-52-100x49.jpg 100w\" sizes=\"(max-width: 917px) 100vw, 917px\" \/><\/figure>\n\n\n\n<p><strong>You can resolve the issue by following the below steps: <\/strong><\/p>\n\n\n\n<p><strong><mark style=\"background-color: yellow;\">\nStep 1:<\/mark><\/strong> First, edit page which you are using the AMP layout after that click on the AMP page builder &#8220;<strong>hamburger icon<\/strong>&#8221; like below the screenshot.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"379\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/7-2-1024x379.png\" alt=\"\" class=\"wp-image-12414\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/7-2-1024x379.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/7-2-300x111.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/7-2-768x284.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/7-2-50x18.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/7-2-60x22.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/7-2-100x37.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/7-2.png 1046w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong><mark style=\"background-color: yellow;\">\nStep 2:<\/mark><\/strong> Now click on the <strong>Advance<\/strong> option and you can see the set margin option, change that value -20px to 0px.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"474\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/8-2-1024x474.png\" alt=\"\" class=\"wp-image-12416\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/8-2-1024x474.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/8-2-300x139.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/8-2-768x356.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/8-2-50x23.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/8-2-60x28.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/8-2-100x46.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/8-2.png 1297w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong><mark style=\"background-color: yellow;\">\nStep 3:<\/mark> <\/strong>You need to set margin-top: 0px like below the screenshot<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"471\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/9-1-1024x471.png\" alt=\"\" class=\"wp-image-12418\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/9-1-1024x471.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/9-1-300x138.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/9-1-768x353.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/9-1-50x23.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/9-1-60x28.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/9-1-100x46.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/9-1.png 1295w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Then you can see the proper output of  AMP Layout like below screenshot.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"437\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/SamplePage_MyWebsite-GoogleChrome2019-07-1315.22.27-1024x437.png\" alt=\"\" class=\"wp-image-12421\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/SamplePage_MyWebsite-GoogleChrome2019-07-1315.22.27-1024x437.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/SamplePage_MyWebsite-GoogleChrome2019-07-1315.22.27-300x128.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/SamplePage_MyWebsite-GoogleChrome2019-07-1315.22.27-768x328.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/SamplePage_MyWebsite-GoogleChrome2019-07-1315.22.27-50x21.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/SamplePage_MyWebsite-GoogleChrome2019-07-1315.22.27-60x26.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/SamplePage_MyWebsite-GoogleChrome2019-07-1315.22.27-100x43.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/SamplePage_MyWebsite-GoogleChrome2019-07-1315.22.27.png 1589w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\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>If you are facing the problem with AMP Layout by the value of margin-top:-20px as type of issue like below the screenshot. You can resolve the issue by following the below steps: Step 1: First, edit page which you are using the AMP layout after that click on the AMP&#8230;<\/p>\n","protected":false},"author":18,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[34],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/12410"}],"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\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/comments?post=12410"}],"version-history":[{"count":10,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/12410\/revisions"}],"predecessor-version":[{"id":13332,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/12410\/revisions\/13332"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=12410"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=12410"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=12410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}