This article is for AMP Theme Framework users.
About this Component
Featured Image Component is responsible for displaying the featured image on your AMP theme.
How to use:
The following are the steps to use this component.
Step 1:
To initiate the support for the component in your theme just add the following code to the functions.php of the theme files.
// Featured Image add_amp_theme_support('AMP-featured-image');
This was the back-end part where we’ve just initiated, now to make it appear in the front-end follow the next step.
step 2:
To display the Featured Image we need to call it where we wanted to display it.
example: add the following code in single.php of the theme files.
<?php amp_featured_image();?>
with this, you’re successfully able to show Featured Image on your theme.
That’s it for this tutorial!
We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.
How do I disable the Featured Image on AMP pages?
https://ambiance.be/alain-ducasse-verkoopt-meerderheidsbelang-in-koksschool/amp/
Hi Christophe,
We have checked your website and found that you are not using our AMPforWP plugin. will you please use our AMPforWP plugin in which we have easy enable /disable options for all including featured Image.
Hello
https://biografia24.pl/jan-olszewski/amp/
Featured image is displayed twice, when I remove – it disappears completely. Any ideas?
Hi Piotr,
We have fixed this issue in 0.9.97.59 version and if you have the same issue after updating also then contact our support team from here – https://ampforwp.com/support/ they will help you and fixed to solve this issue as soon as possible.
Works fine now, thank you!
how to disable feature image on single page?
https://abdulmuhajir.com/cara-mengatasi-dark-mode-instagram-tidak-bisa/amp
Hi Abdul Muhajir,
Will you please follow this tutorial – https://ampforwp.com/tutorials/article/how-to-hide-or-remove-featured-images-from-amp/#2-other-designs-design-three-design-two-design-one And If you have any issues/problems after following this tutorial also then please let us know and we will personally help you.
How can I add thumbnail image along with article heading?
https://sunilblogger.online/amp
please check and suggest!!
Hi Sunil Singh,
If you want to add thumbnail image along with article heading for this follow this enables this “Featured Image from The Content” option. you will find this option in the WordPress admin area -> AMP option panel -> Settings -> Advance settings -> Enable this “Featured Image from The Content” option by using this option it will show the first image of the content as Featured Image if there is no featured image.