Clicky

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:

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.

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.

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 April 18, 2019

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help!
Contact Support

Comments

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

Leave a Comment