最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

images - Adding Post Thumbnail to Metro Pro Theme

programmeradmin1浏览0评论

I am trying to add a post thumbnail so that when users land on my homepage queenmypawn, they see an image to the right of the text, like in the website /.

Currently my website doesn't do this. I tried using this guide: /. I added a featured image and the php code, but I am confused at this very stage:

To display featured images in your theme, you need to edit your templates and add this line of code where you want to display the featured image:

<?php the_post_thumbnail(); ?>

The files you add the above code in will vary based on your theme. You will want to add the code inside your post loop.

Which types of files are those?

I am trying to add a post thumbnail so that when users land on my homepage queenmypawn, they see an image to the right of the text, like in the website https://totalreporter/.

Currently my website doesn't do this. I tried using this guide: https://www.wpbeginner/beginners-guide/how-to-add-featured-image-or-post-thumbnails-in-wordpress/. I added a featured image and the php code, but I am confused at this very stage:

To display featured images in your theme, you need to edit your templates and add this line of code where you want to display the featured image:

<?php the_post_thumbnail(); ?>

The files you add the above code in will vary based on your theme. You will want to add the code inside your post loop.

Which types of files are those?

Share Improve this question asked Jun 16, 2020 at 19:56 Jossie CalderonJossie Calderon 1051 silver badge6 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

This post on the StudioPress forums mentions going to the Theme Settings in Genesis.

Inside the Content Archives, click the checkbox that says "Display the featured image?".

On doing so, the featured image pops up.

发布评论

评论列表(0)

  1. 暂无评论