Hide Featured Image in AMP

Question

We are using the “Official AMP plugin” by AMP Project Contributors.

Our posts tend to have an image inserted at the top. Sometimes this is creating a duplication with the Featured Image.

How do I remove or deactivate the Featured Image portion of the AMP posts?

In the /plugins/amp/templates/single.php file, there is this line:

?php $this->load_parts( [ ‘featured-image’ ] ); ?

I would just remove this and save the single.php file, but with plugin updates, the custom changes are going to be wiped out.

So, I can edit the functions.php file of our current theme, to “add_action”, for example. Thanks.

0
, user4501876 4 years 2019-11-03T06:09:00-05:00 0 Answers 91 views 0

Leave an answer

Browse
Browse