{"id":7421,"date":"2019-04-20T06:45:39","date_gmt":"2019-04-20T06:45:39","guid":{"rendered":"https:\/\/ampforwp.com\/tutorials\/?post_type=ht_kb&#038;p=7421"},"modified":"2020-02-14T07:53:28","modified_gmt":"2020-02-14T07:53:28","slug":"how-to-show-hide-featured-images-in-amp","status":"publish","type":"ht_kb","link":"https:\/\/ampforwp.com\/tutorials\/article\/how-to-show-hide-featured-images-in-amp\/","title":{"rendered":"How to show\/hide featured images in AMP"},"content":{"rendered":"\n<p>Featured Image is responsible for displaying the featured image on your AMP Post.<\/p>\n\n\n\n<ol><li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-show-hide-featured-images-in-amp\/#1-swift-design\">Swift Design<\/a><\/li><li><a href=\"https:\/\/ampforwp.com\/tutorials\/article\/how-to-show-hide-featured-images-in-amp\/#2-other-designs-design-three-design-two-design-one\">Other Designs (Design Three, Design Two, Design One)<\/a><\/li><\/ol>\n\n\n\n<h4><mark style=\"background-color: yellow;\">\n1. 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.  <\/strong>Featured images are by going to the post editor. Simply create a new post 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=\"446\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-3-1024x446.png\" alt=\"\" class=\"wp-image-7437\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-3-1024x446.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-3-300x131.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-3-768x335.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-3-50x22.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-3-60x26.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-3-100x44.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/2-3.png 1351w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong> 2.<\/strong> First go to the <strong>WordPress admin area<\/strong> -&gt; <strong>AMP option panel<\/strong> -&gt; <strong>Design<\/strong> -&gt; <strong>Single<\/strong>. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" loading=\"lazy\" width=\"401\" height=\"354\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/13-7.png\" alt=\"\" class=\"wp-image-13242\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/13-7.png 401w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/13-7-300x265.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/13-7-50x44.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/13-7-60x53.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/13-7-100x88.png 100w\" sizes=\"(max-width: 401px) 100vw, 401px\" \/><\/figure><\/div>\n\n\n\n<p>Scroll down a little to see this option <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"922\" height=\"215\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/25-1.png\" alt=\"\" class=\"wp-image-13244\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/25-1.png 922w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/25-1-300x70.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/25-1-768x179.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/25-1-50x12.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/25-1-60x14.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/07\/25-1-100x23.png 100w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/figure>\n\n\n\n<p><strong>Featured Image:\u00a0<\/strong>If you enable this option featured image will be shown in a single post in AMP. <\/p>\n\n\n\n<p><strong>Featured Image Type: <\/strong>In this filed we have two option will display \u201c<strong>Full-screen image<\/strong>\u201d or \u201c<strong>Image fit above the content<\/strong>\u201d as per your requirement you can select and then click on the \u201c<strong>Save Changes<\/strong>\u201d button. <\/p>\n\n\n\n<ul><li><strong>Full Screen image:<\/strong> Once you select &#8220;<strong>Full Screen image<\/strong>&#8221; option in single page featured image will be displayed in full screen.<\/li><li><strong>Image fit above the content: <\/strong>If you select this option featured image will be displayed in above the content. <\/li><\/ul>\n\n\n\n<p><strong>Size:<\/strong> In this field, you can select featured image size like thumbnail, Medium, Medium Large, large and full as per your requirement you can select and then click on the \u201c<strong>Save Changes<\/strong>\u201d button.  <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>The output of Featured image:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"477\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-2-1024x477.png\" alt=\"\" class=\"wp-image-7442\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-2-1024x477.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-2-300x140.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-2-768x357.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-2-50x23.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-2-60x28.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-2-100x47.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/3-2.png 1345w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If you don&#8217;t 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> -&gt; <strong>AMP option panel<\/strong> -&gt; <strong>Settings<\/strong> -&gt; <strong>Advance settings<\/strong>.  <\/p>\n\n\n\n<p>Scroll down a little to see these options.<\/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><li><strong>Featured Image from The Content: <\/strong>Show the first image of the content as Featured Image if there is no featured image <\/li><li> <strong>Duplicate Featured Image: <\/strong>Turn On the support if you don&#8217;t want to show the Featured Image if it already exists in post content. <\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"790\" height=\"285\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-2.png\" alt=\"\" class=\"wp-image-7455\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-2.png 790w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-2-300x108.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-2-768x277.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-2-50x18.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-2-60x22.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/04\/4-2-100x36.png 100w\" sizes=\"(max-width: 790px) 100vw, 790px\" \/><\/figure>\n\n\n\n<h4><mark style=\"background-color: yellow;\"> 2. Other Designs (Design Three, Design Two, Design One)<\/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>First, you need to go<strong> WordPress Dashboard<\/strong> -&gt; <strong>Appearance<\/strong> -&gt; Click on the &#8220;<strong>AMP<\/strong>&#8221; option like below the screenshot. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" loading=\"lazy\" width=\"325\" height=\"190\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/7-2.png\" alt=\"\" class=\"wp-image-13691\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/7-2.png 325w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/7-2-300x175.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/7-2-50x29.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/7-2-60x35.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/7-2-100x58.png 100w\" sizes=\"(max-width: 325px) 100vw, 325px\" \/><\/figure><\/div>\n\n\n\n<p>Once you click on the AMP option it will redirect to Customize page you need to click on AMP like below the screenshot.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" loading=\"lazy\" width=\"307\" height=\"276\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/8-3.png\" alt=\"\" class=\"wp-image-13694\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/8-3.png 307w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/8-3-300x270.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/8-3-50x45.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/8-3-60x54.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/8-3-100x90.png 100w\" sizes=\"(max-width: 307px) 100vw, 307px\" \/><\/figure><\/div>\n\n\n\n<p>Click on the Design Option like below the screenshot<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" loading=\"lazy\" width=\"309\" height=\"261\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/9-2.png\" alt=\"\" class=\"wp-image-13696\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/9-2.png 309w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/9-2-300x253.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/9-2-50x42.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/9-2-60x51.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/9-2-100x84.png 100w\" sizes=\"(max-width: 309px) 100vw, 309px\" \/><figcaption><br><\/figcaption><\/figure><\/div>\n\n\n\n<p>If you want to show Featured Images in AMP then you need to check &#8220;<strong>Featured images<\/strong>&#8221; option if you want to hide featured images then you need to uncheck this option and if you want to change the order of the element you can drag and drop this option after that click on the &#8220;<strong>Publish<\/strong>&#8221; button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"496\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/10-1-1024x496.png\" alt=\"\" class=\"wp-image-13698\" srcset=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/10-1-1024x496.png 1024w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/10-1-300x145.png 300w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/10-1-768x372.png 768w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/10-1-50x24.png 50w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/10-1-60x29.png 60w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/10-1-100x48.png 100w, https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2019\/08\/10-1.png 1361w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\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 Post. Swift Design Other Designs (Design Three, Design Two, Design One) 1. Swift Design Follow these steps to add a featured image in AMP 1. Featured images are by going to the post editor. Simply create a new&#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\/7421"}],"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=7421"}],"version-history":[{"count":84,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/7421\/revisions"}],"predecessor-version":[{"id":16396,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb\/7421\/revisions\/16396"}],"wp:attachment":[{"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/media?parent=7421"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-category?post=7421"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ampforwp.com\/tutorials\/wp-json\/wp\/v2\/ht-kb-tag?post=7421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}