Featured Image

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

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.

Ask your Questions Directly!
If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!
Updated on May 7, 2020

    Are you still looking for a solution?

    Then fill out the below form and we will reach out to you within a few hours.

    Was this article helpful?

    Related Articles


      1. 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.

      1. Hi Piotr,

        We have fixed this issue in version and if you have the same issue after updating also then contact our support team from here – they will help you and fixed to solve this issue as soon as possible.

      1. 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.

    Leave a Comment