{"id":16391,"date":"2020-02-14T09:48:20","date_gmt":"2020-02-14T09:48:20","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=16391"},"modified":"2020-02-14T09:48:41","modified_gmt":"2020-02-14T09:48:41","slug":"how-to-show-hide-featured-images-on-pages-in-amp","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-show-hide-featured-images-on-pages-in-amp\/","title":{"rendered":"How to show\/hide featured images on Pages in AMP"},"content":{"rendered":"\n<p>Featured Image is responsible for displaying the featured image on your AMP Pages.<\/p>\n\n\n\n<ol><li><strong>Featured Image on Page<\/strong><\/li><li><strong>Featured Image on Pagebuilder<\/strong><\/li><\/ol>\n\n\n\n<h4><mark style=\"background-color: yellow;\"> 1. Featured Image on Page (Swift Design)<\/mark><\/h4>\n\n\n\n<p><strong>Follow these steps to add a featured image in AMP<\/strong><\/p>\n\n\n\n<p><strong>1.&nbsp;<\/strong>Featured images are by going to the pages editor. Simply create a new page and scroll down a little to see if there is a meta box called featured images on the right-hand side of the screen.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"499\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/1-2-1024x499.png\" alt=\"\" class=\"wp-image-16393\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/1-2-1024x499.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/1-2-300x146.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/1-2-768x374.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/1-2-50x24.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/1-2-60x29.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/1-2-100x49.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/1-2.png 1349w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>2.<\/strong>&nbsp;First go to the&nbsp;<strong>WordPress admin area<\/strong>&nbsp;-&gt;&nbsp;<strong>AMP option panel<\/strong>&nbsp;-&gt;&nbsp;<strong>Design<\/strong>&nbsp;-&gt;&nbsp;<strong>Page -&gt; <\/strong>Enable &#8220;<strong>Featured Image<\/strong>&#8221; option and then click on the &#8220;<strong>Save Changes<\/strong>&#8221; button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"506\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/2-5-1024x506.png\" alt=\"\" class=\"wp-image-16394\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/2-5-1024x506.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/2-5-300x148.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/2-5-768x379.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/2-5-50x25.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/2-5-60x30.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/2-5-100x49.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/2-5.png 1223w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Featured Image:<\/strong> If you enable this option featured image will be shown on a single page in AMP. <\/p>\n\n\n\n<h4><strong>The output of the Featured image on pages<\/strong><\/h4>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/Desktop-2020-02-14-13-27-22.png\" alt=\"\" class=\"wp-image-16399\" width=\"261\" height=\"522\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/Desktop-2020-02-14-13-27-22.png 328w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/Desktop-2020-02-14-13-27-22-150x300.png 150w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/Desktop-2020-02-14-13-27-22-25x50.png 25w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/Desktop-2020-02-14-13-27-22-30x60.png 30w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/Desktop-2020-02-14-13-27-22-50x100.png 50w\" sizes=\"(max-width: 261px) 100vw, 261px\" \/><\/figure><\/div>\n\n\n\n<p>If you don\u2019t want to set featured images from meta box then you can follow below the steps.<\/p>\n\n\n\n<p><strong>1.<\/strong> First, go to the <strong>WordPress admin area<\/strong>&nbsp;-&gt;&nbsp;<strong>AMP option panel<\/strong>&nbsp;-&gt;&nbsp;<strong>Settings<\/strong>&nbsp;-&gt;&nbsp;<strong>Advance settings -&gt;<\/strong>Enable &#8220;<strong>Featured Image from Custom Fields<\/strong>&#8221; option and in this field add &#8220;<strong>Custom Field For Featured Image<\/strong>&#8220;<\/p>\n\n\n\n<ul><li><strong>Featured Image from Custom Fields:&nbsp;<\/strong> This will allow you to add Featured Image from Custom Fields.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"846\" height=\"267\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/3-3.png\" alt=\"\" class=\"wp-image-16403\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/3-3.png 846w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/3-3-300x95.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/3-3-768x242.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/3-3-50x16.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/3-3-60x19.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/3-3-100x32.png 100w\" sizes=\"(max-width: 846px) 100vw, 846px\" \/><\/figure>\n\n\n\n<h4><mark style=\"background-color: yellow;\"> 2. Featured Image on Pagebuilder<\/mark><\/h4>\n\n\n\n<p>If you want Featured Image on Pagebuilder Pages for this to follow these steps to add a featured image on Pagebuilder Pages in AMP<\/p>\n\n\n\n<p><strong>1.<\/strong>&nbsp;First go to the&nbsp;<strong>WordPress admin area<\/strong>&nbsp;-&gt;&nbsp;<strong>AMP option panel<\/strong>&nbsp;-&gt;&nbsp;<strong>Design<\/strong>&nbsp;-&gt;&nbsp;<strong>Page -&gt;&nbsp;<\/strong>Enable \u201c<strong>Featured Image<\/strong>\u201d option.<\/p>\n\n\n\n<p><strong>2.<\/strong> Once you enable the \u201c<strong>Featured Image<\/strong>\u201d option inside this option &#8220;<strong>Featured Image on Pagebuilder<\/strong>&#8221; option will display you need to enable this option and then click on the \u201c<strong>Save Changes<\/strong>\u201d button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"502\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/4-3-1024x502.png\" alt=\"\" class=\"wp-image-16408\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/4-3-1024x502.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/4-3-300x147.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/4-3-768x377.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/4-3-50x25.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/4-3-60x29.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/4-3-100x49.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/4-3.png 1223w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4>The Output of the featured image on Pagebuilder Pages in AMP <\/h4>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/Desktop-2020-02-14-13-55-06.png\" alt=\"\" class=\"wp-image-16412\" width=\"271\" height=\"529\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/Desktop-2020-02-14-13-55-06.png 334w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/Desktop-2020-02-14-13-55-06-154x300.png 154w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/Desktop-2020-02-14-13-55-06-26x50.png 26w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/Desktop-2020-02-14-13-55-06-31x60.png 31w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2020\/02\/Desktop-2020-02-14-13-55-06-51x100.png 51w\" sizes=\"(max-width: 271px) 100vw, 271px\" \/><\/figure><\/div>\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>Featured Image is responsible for displaying the featured image on your AMP Pages. Featured Image on Page Featured Image on Pagebuilder 1. Featured Image on Page (Swift Design) Follow these steps to add a featured image in AMP 1.&nbsp;Featured images are by going to the pages editor. Simply create a&#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\/16391"}],"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=16391"}],"version-history":[{"count":17,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/16391\/revisions"}],"predecessor-version":[{"id":16415,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/16391\/revisions\/16415"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=16391"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=16391"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=16391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}